From 73f6360c505778fa4ef8a3fbc24f9ef53cda40c6 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 7 Apr 2009 03:19:44 +0000 Subject: [PATCH] (ns-pop-up-frames): Make it a defcustom. --- lisp/ChangeLog | 2 ++ lisp/term/ns-win.el | 11 ++++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 13f68c6d6c8..c318b8744a9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,7 @@ 2009-04-07 Glenn Morris + * term/ns-win.el (ns-pop-up-frames): Make it a defcustom. + * mail/rmail.el (rmail-expunge-and-save): Let rmail-expunge show the message. (rmail-quit): Mark summary unmodified. diff --git a/lisp/term/ns-win.el b/lisp/term/ns-win.el index 1cc97aed78f..9a560b81ed0 100644 --- a/lisp/term/ns-win.el +++ b/lisp/term/ns-win.el @@ -955,10 +955,15 @@ Lines are highlighted according to `ns-input-line'." (message ns-output-file) (if ns-output-file (write-file ns-output-file)))) -(defvar ns-pop-up-frames 'fresh - "*Non-nil means open files upon request from the Workspace in a new frame. +(defcustom ns-pop-up-frames 'fresh + "Non-nil means open files upon request from the Workspace in a new frame. If t, always do so. Any other non-nil value means open a new frame -unless the current buffer is a scratch buffer.") +unless the current buffer is a scratch buffer." + :type '(choice (const :tag "Never" nil) + (const :tag "Always" t) + (other :tag "Except for scratch buffer" fresh)) + :version "23.1" + :group 'ns) (declare-function ns-hide-emacs "nsfns.m" (on)) -- 2.39.5