aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2011-06-15 11:07:38 -0700
committerPaul Eggert2011-06-15 11:07:38 -0700
commitff672d2c8785de6faba84a400fb8153e9fa07cd2 (patch)
tree4c5dc68b7a92e54c86e47f3bd9a804c14be57091 /lisp
parente69dafade3ccd5c2997a3f6fd6c7bea29e75ad8e (diff)
parentb96e6cde3e311cd79f8ad134291d41c8c64cc6ad (diff)
downloademacs-ff672d2c8785de6faba84a400fb8153e9fa07cd2.tar.gz
emacs-ff672d2c8785de6faba84a400fb8153e9fa07cd2.zip
Merge from trunk.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog33
-rw-r--r--lisp/progmodes/cfengine.el2
-rw-r--r--lisp/progmodes/ld-script.el2
-rw-r--r--lisp/progmodes/mixal-mode.el2
-rw-r--r--lisp/progmodes/ps-mode.el2
-rw-r--r--lisp/progmodes/python.el2
-rw-r--r--lisp/subr.el2
-rw-r--r--lisp/window.el46
8 files changed, 61 insertions, 30 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2cf968505af..622831cb31f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,36 @@
12011-06-15 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * subr.el (process-live-p): Renamed from `process-alive-p' for
4 consistency with other `-live-p' functions.
5
62011-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
7
8 * window.el (same-window-buffer-names, same-window-regexps)
9 (special-display-frame-alist, special-display-popup-frame)
10 (special-display-function, special-display-buffer-names)
11 (special-display-regexps, pop-up-frame-alist)
12 (pop-up-frame-function, pop-up-frames, display-buffer-reuse-frames)
13 (pop-up-windows, split-window-preferred-function)
14 (split-height-threshold, split-width-threshold, even-window-heights)
15 (display-buffer-mark-dedicated): Don't encourage the use of
16 display-buffer-alist from Elisp code.
17
182011-06-15 Dan Nicolaescu <dann@ics.uci.edu>
19
20 * progmodes/python.el (python-mode): Derive from prog-mode.
21 * progmodes/ps-mode.el (ps-mode):
22 * progmodes/mixal-mode.el (mixal-mode):
23 * progmodes/cfengine.el (cfengine-mode):
24 * progmodes/ld-script.el (ld-script-mode): Likewise.
25
262011-06-15 Martin Rudalics <rudalics@gmx.at>
27
28 * window.el (display-buffer-alist): Trim default value to avoid
29 popping up a new frame (Bug#8857) or reusing an arbitrary window
30 on another frame.
31 (display-buffer): Do not fall back on popping up a new frame in
32 batch mode (Bug#8857).
33
12011-06-14 Chong Yidong <cyd@stupidchicken.com> 342011-06-14 Chong Yidong <cyd@stupidchicken.com>
2 35
3 * cus-theme.el (describe-theme-1): Use custom-theme-p. 36 * cus-theme.el (describe-theme-1): Use custom-theme-p.
diff --git a/lisp/progmodes/cfengine.el b/lisp/progmodes/cfengine.el
index a475bbd5932..22ece17cb28 100644
--- a/lisp/progmodes/cfengine.el
+++ b/lisp/progmodes/cfengine.el
@@ -198,7 +198,7 @@ Intended as the value of `indent-line-function'."
198 t)) 198 t))
199 199
200;;;###autoload 200;;;###autoload
201(define-derived-mode cfengine-mode fundamental-mode "Cfengine" 201(define-derived-mode cfengine-mode prog-mode "Cfengine"
202 "Major mode for editing cfengine input. 202 "Major mode for editing cfengine input.
203There are no special keybindings by default. 203There are no special keybindings by default.
204 204
diff --git a/lisp/progmodes/ld-script.el b/lisp/progmodes/ld-script.el
index 8bdac61d4ab..c682bfa0280 100644
--- a/lisp/progmodes/ld-script.el
+++ b/lisp/progmodes/ld-script.el
@@ -168,7 +168,7 @@
168 "Default font-lock-keywords for `ld-script-mode'.") 168 "Default font-lock-keywords for `ld-script-mode'.")
169 169
170;;;###autoload 170;;;###autoload
171(define-derived-mode ld-script-mode nil "LD-Script" 171(define-derived-mode ld-script-mode prog-mode "LD-Script"
172 "A major mode to edit GNU ld script files" 172 "A major mode to edit GNU ld script files"
173 (set (make-local-variable 'comment-start) "/* ") 173 (set (make-local-variable 'comment-start) "/* ")
174 (set (make-local-variable 'comment-end) " */") 174 (set (make-local-variable 'comment-end) " */")
diff --git a/lisp/progmodes/mixal-mode.el b/lisp/progmodes/mixal-mode.el
index 0d8cdd9f9b1..103c7be7d3c 100644
--- a/lisp/progmodes/mixal-mode.el
+++ b/lisp/progmodes/mixal-mode.el
@@ -1103,7 +1103,7 @@ Assumes that file has been compiled with debugging support."
1103 (error "mixvm.el needs to be loaded to run `mixvm'"))) 1103 (error "mixvm.el needs to be loaded to run `mixvm'")))
1104 1104
1105;;;###autoload 1105;;;###autoload
1106(define-derived-mode mixal-mode fundamental-mode "mixal" 1106(define-derived-mode mixal-mode prog-mode "mixal"
1107 "Major mode for the mixal asm language." 1107 "Major mode for the mixal asm language."
1108 (set (make-local-variable 'comment-start) "*") 1108 (set (make-local-variable 'comment-start) "*")
1109 (set (make-local-variable 'comment-start-skip) "^\\*[ \t]*") 1109 (set (make-local-variable 'comment-start-skip) "^\\*[ \t]*")
diff --git a/lisp/progmodes/ps-mode.el b/lisp/progmodes/ps-mode.el
index cade56a194c..d60e7513651 100644
--- a/lisp/progmodes/ps-mode.el
+++ b/lisp/progmodes/ps-mode.el
@@ -485,7 +485,7 @@ If nil, use `temporary-file-directory'."
485;; PostScript mode. 485;; PostScript mode.
486 486
487;;;###autoload 487;;;###autoload
488(define-derived-mode ps-mode fundamental-mode "PostScript" 488(define-derived-mode ps-mode prog-mode "PostScript"
489 "Major mode for editing PostScript with GNU Emacs. 489 "Major mode for editing PostScript with GNU Emacs.
490 490
491Entry to this mode calls `ps-mode-hook'. 491Entry to this mode calls `ps-mode-hook'.
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index b99cad1d081..3d243f14f07 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2420,7 +2420,7 @@ without confirmation."
2420(defvar python-mode-running) ;Dynamically scoped var. 2420(defvar python-mode-running) ;Dynamically scoped var.
2421 2421
2422;;;###autoload 2422;;;###autoload
2423(define-derived-mode python-mode fundamental-mode "Python" 2423(define-derived-mode python-mode prog-mode "Python"
2424 "Major mode for editing Python files. 2424 "Major mode for editing Python files.
2425Turns on Font Lock mode unconditionally since it is currently required 2425Turns on Font Lock mode unconditionally since it is currently required
2426for correct parsing of the source. 2426for correct parsing of the source.
diff --git a/lisp/subr.el b/lisp/subr.el
index d0ef38c1140..b328b7e17b7 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -1805,7 +1805,7 @@ Signal an error if the program returns with a non-zero exit status."
1805 (forward-line 1)) 1805 (forward-line 1))
1806 (nreverse lines))))) 1806 (nreverse lines)))))
1807 1807
1808(defun process-alive-p (process) 1808(defun process-live-p (process)
1809 "Returns non-nil if PROCESS is alive. 1809 "Returns non-nil if PROCESS is alive.
1810A process is considered alive if its status is `run', `open', 1810A process is considered alive if its status is `run', `open',
1811`listen', `connect' or `stop'." 1811`listen', `connect' or `stop'."
diff --git a/lisp/window.el b/lisp/window.el
index cad4e15507d..5493893d4c1 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -3505,9 +3505,7 @@ buffer display specifiers.")
3505 reuse-window (reuse-window nil same visible) 3505 reuse-window (reuse-window nil same visible)
3506 pop-up-window 3506 pop-up-window
3507 (pop-up-window (largest . nil) (lru . nil)) 3507 (pop-up-window (largest . nil) (lru . nil))
3508 pop-up-frame 3508 reuse-window (reuse-window other other nil)
3509 (pop-up-frame)
3510 reuse-window (reuse-window nil other visible)
3511 (reuse-window-even-sizes . t))) 3509 (reuse-window-even-sizes . t)))
3512 "List associating buffer identifiers with display specifiers. 3510 "List associating buffer identifiers with display specifiers.
3513The car of each element of this list is built from a set of cons 3511The car of each element of this list is built from a set of cons
@@ -5303,12 +5301,12 @@ this list as arguments."
5303 ;; Try reusing a window not showing BUFFER on any visible or 5301 ;; Try reusing a window not showing BUFFER on any visible or
5304 ;; iconified frame. 5302 ;; iconified frame.
5305 (display-buffer-reuse-window buffer '(nil other 0)) 5303 (display-buffer-reuse-window buffer '(nil other 0))
5306 ;; Try making a new frame. 5304 ;; Try making a new frame (but not in batch mode).
5307 (display-buffer-pop-up-frame buffer) 5305 (and (not noninteractive) (display-buffer-pop-up-frame buffer))
5308 ;; Try using weakly dedicated windows. 5306 ;; Try using a weakly dedicated window.
5309 (display-buffer-reuse-window 5307 (display-buffer-reuse-window
5310 buffer '(nil nil t) '((reuse-window-dedicated . weak))) 5308 buffer '(nil nil t) '((reuse-window-dedicated . weak)))
5311 ;; Try using strongly dedicated windows. 5309 ;; Try using a strongly dedicated window.
5312 (display-buffer-reuse-window 5310 (display-buffer-reuse-window
5313 buffer '(nil nil t) '((reuse-window-dedicated . t))))))) 5311 buffer '(nil nil t) '((reuse-window-dedicated . t)))))))
5314 5312
@@ -5583,7 +5581,7 @@ See also `same-window-regexps'."
5583 :group 'windows) 5581 :group 'windows)
5584(make-obsolete-variable 5582(make-obsolete-variable
5585 'same-window-buffer-names 5583 'same-window-buffer-names
5586 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5584 "use 2nd arg of `display-buffer' instead." "24.1")
5587 5585
5588(defcustom same-window-regexps nil 5586(defcustom same-window-regexps nil
5589 "List of regexps saying which buffers should appear in the \"same\" window. 5587 "List of regexps saying which buffers should appear in the \"same\" window.
@@ -5601,7 +5599,7 @@ See also `same-window-buffer-names'."
5601 :group 'windows) 5599 :group 'windows)
5602(make-obsolete-variable 5600(make-obsolete-variable
5603 'same-window-regexps 5601 'same-window-regexps
5604 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5602 "use 2nd arg of `display-buffer' instead." "24.1")
5605 5603
5606(defun same-window-p (buffer-name) 5604(defun same-window-p (buffer-name)
5607 "Return non-nil if a buffer named BUFFER-NAME would be shown in the \"same\" window. 5605 "Return non-nil if a buffer named BUFFER-NAME would be shown in the \"same\" window.
@@ -5647,7 +5645,7 @@ These supersede the values given in `default-frame-alist'."
5647 :group 'frames) 5645 :group 'frames)
5648(make-obsolete-variable 5646(make-obsolete-variable
5649 'special-display-frame-alist 5647 'special-display-frame-alist
5650 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5648 "use 2nd arg of `display-buffer' instead." "24.1")
5651 5649
5652(defun special-display-popup-frame (buffer &optional args) 5650(defun special-display-popup-frame (buffer &optional args)
5653 "Display BUFFER in a special frame and return the window chosen. 5651 "Display BUFFER in a special frame and return the window chosen.
@@ -5695,7 +5693,7 @@ and (cdr ARGS) as second."
5695 (frame-selected-window frame)))))) 5693 (frame-selected-window frame))))))
5696(make-obsolete 5694(make-obsolete
5697 'special-display-popup-frame 5695 'special-display-popup-frame
5698 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5696 "use 2nd arg of `display-buffer' instead." "24.1")
5699 5697
5700(defcustom special-display-function 'special-display-popup-frame 5698(defcustom special-display-function 'special-display-popup-frame
5701 "Function to call for displaying special buffers. 5699 "Function to call for displaying special buffers.
@@ -5714,7 +5712,7 @@ A buffer is special when its name is either listed in
5714 :group 'frames) 5712 :group 'frames)
5715(make-obsolete-variable 5713(make-obsolete-variable
5716 'special-display-function 5714 'special-display-function
5717 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5715 "use 2nd arg of `display-buffer' instead." "24.1")
5718 5716
5719(defcustom special-display-buffer-names nil 5717(defcustom special-display-buffer-names nil
5720 "List of names of buffers that should be displayed specially. 5718 "List of names of buffers that should be displayed specially.
@@ -5781,7 +5779,7 @@ See also `special-display-regexps'."
5781 :group 'frames) 5779 :group 'frames)
5782(make-obsolete-variable 5780(make-obsolete-variable
5783 'special-display-buffer-names 5781 'special-display-buffer-names
5784 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5782 "use 2nd arg of `display-buffer' instead." "24.1")
5785 5783
5786;;;###autoload 5784;;;###autoload
5787(put 'special-display-buffer-names 'risky-local-variable t) 5785(put 'special-display-buffer-names 'risky-local-variable t)
@@ -5852,7 +5850,7 @@ See also `special-display-buffer-names'."
5852 :group 'frames) 5850 :group 'frames)
5853(make-obsolete-variable 5851(make-obsolete-variable
5854 'special-display-regexps 5852 'special-display-regexps
5855 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5853 "use 2nd arg of `display-buffer' instead." "24.1")
5856 5854
5857(defun special-display-p (buffer-name) 5855(defun special-display-p (buffer-name)
5858 "Return non-nil if a buffer named BUFFER-NAME gets a special frame. 5856 "Return non-nil if a buffer named BUFFER-NAME gets a special frame.
@@ -5904,7 +5902,7 @@ affected by this variable."
5904 :group 'frames) 5902 :group 'frames)
5905(make-obsolete-variable 5903(make-obsolete-variable
5906 'pop-up-frame-alist 5904 'pop-up-frame-alist
5907 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5905 "use 2nd arg of `display-buffer' instead." "24.1")
5908 5906
5909(defcustom pop-up-frame-function 5907(defcustom pop-up-frame-function
5910 (lambda () (make-frame pop-up-frame-alist)) 5908 (lambda () (make-frame pop-up-frame-alist))
@@ -5916,7 +5914,7 @@ frame. The default value calls `make-frame' with the argument
5916 :group 'frames) 5914 :group 'frames)
5917(make-obsolete-variable 5915(make-obsolete-variable
5918 'pop-up-frame-function 5916 'pop-up-frame-function
5919 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5917 "use 2nd arg of `display-buffer' instead." "24.1")
5920 5918
5921(defcustom pop-up-frames 'unset ; nil 5919(defcustom pop-up-frames 'unset ; nil
5922 "Whether `display-buffer' should make a separate frame. 5920 "Whether `display-buffer' should make a separate frame.
@@ -5936,7 +5934,7 @@ Any other non-nil value means always make a separate frame."
5936 :group 'frames) 5934 :group 'frames)
5937(make-obsolete-variable 5935(make-obsolete-variable
5938 'pop-up-frames 5936 'pop-up-frames
5939 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5937 "use 2nd arg of `display-buffer' instead." "24.1")
5940 5938
5941(defcustom display-buffer-reuse-frames 'unset ; nil 5939(defcustom display-buffer-reuse-frames 'unset ; nil
5942 "Set and non-nil means `display-buffer' should reuse frames. 5940 "Set and non-nil means `display-buffer' should reuse frames.
@@ -5948,7 +5946,7 @@ that frame."
5948 :group 'frames) 5946 :group 'frames)
5949(make-obsolete-variable 5947(make-obsolete-variable
5950 'display-buffer-reuse-frames 5948 'display-buffer-reuse-frames
5951 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5949 "use 2nd arg of `display-buffer' instead." "24.1")
5952 5950
5953(defcustom pop-up-windows 'unset ; t 5951(defcustom pop-up-windows 'unset ; t
5954 "Set and non-nil means `display-buffer' should make a new window." 5952 "Set and non-nil means `display-buffer' should make a new window."
@@ -5957,7 +5955,7 @@ that frame."
5957 :group 'windows) 5955 :group 'windows)
5958(make-obsolete-variable 5956(make-obsolete-variable
5959 'pop-up-windows 5957 'pop-up-windows
5960 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5958 "use 2nd arg of `display-buffer' instead." "24.1")
5961 5959
5962(defcustom split-window-preferred-function 'split-window-sensibly 5960(defcustom split-window-preferred-function 'split-window-sensibly
5963 "Function called by `display-buffer' to split a window. 5961 "Function called by `display-buffer' to split a window.
@@ -5986,7 +5984,7 @@ not want to split the selected window."
5986 :group 'windows) 5984 :group 'windows)
5987(make-obsolete-variable 5985(make-obsolete-variable
5988 'split-window-preferred-function 5986 'split-window-preferred-function
5989 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 5987 "use 2nd arg of `display-buffer' instead." "24.1")
5990 5988
5991(defcustom split-height-threshold 80 5989(defcustom split-height-threshold 80
5992 "Minimum height for splitting a window to display a buffer. 5990 "Minimum height for splitting a window to display a buffer.
@@ -6000,7 +5998,7 @@ split it vertically disregarding the value of this variable."
6000 :group 'windows) 5998 :group 'windows)
6001(make-obsolete-variable 5999(make-obsolete-variable
6002 'split-height-threshold 6000 'split-height-threshold
6003 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 6001 "use 2nd arg of `display-buffer' instead." "24.1")
6004 6002
6005(defcustom split-width-threshold 160 6003(defcustom split-width-threshold 160
6006 "Minimum width for splitting a window to display a buffer. 6004 "Minimum width for splitting a window to display a buffer.
@@ -6012,7 +6010,7 @@ is nil, `display-buffer' cannot split windows horizontally."
6012 :group 'windows) 6010 :group 'windows)
6013(make-obsolete-variable 6011(make-obsolete-variable
6014 'split-width-threshold 6012 'split-width-threshold
6015 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 6013 "use 2nd arg of `display-buffer' instead." "24.1")
6016 6014
6017(defcustom even-window-heights t 6015(defcustom even-window-heights t
6018 "If non-nil `display-buffer' will try to even window heights. 6016 "If non-nil `display-buffer' will try to even window heights.
@@ -6024,7 +6022,7 @@ window that appears above or below the selected window."
6024 :group 'windows) 6022 :group 'windows)
6025(make-obsolete-variable 6023(make-obsolete-variable
6026 'even-window-heights 6024 'even-window-heights
6027 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 6025 "use 2nd arg of `display-buffer' instead." "24.1")
6028 6026
6029(defvar display-buffer-mark-dedicated 'unset ; nil 6027(defvar display-buffer-mark-dedicated 'unset ; nil
6030 "Set and non-nil means `display-buffer' marks the windows it creates as dedicated. 6028 "Set and non-nil means `display-buffer' marks the windows it creates as dedicated.
@@ -6032,7 +6030,7 @@ The actual non-nil value of this variable will be copied to the
6032`window-dedicated-p' flag.") 6030`window-dedicated-p' flag.")
6033(make-obsolete-variable 6031(make-obsolete-variable
6034 'display-buffer-mark-dedicated 6032 'display-buffer-mark-dedicated
6035 "use `display-buffer-alist' or 2nd arg of `display-buffer' instead." "24.1") 6033 "use 2nd arg of `display-buffer' instead." "24.1")
6036 6034
6037(defun window-splittable-p (window &optional horizontal) 6035(defun window-splittable-p (window &optional horizontal)
6038 "Return non-nil if `split-window-sensibly' may split WINDOW. 6036 "Return non-nil if `split-window-sensibly' may split WINDOW.