aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorPaul Eggert2012-01-16 19:43:00 -0800
committerPaul Eggert2012-01-16 19:43:00 -0800
commit78df1fb1d46d556bfc2698ca1802972b13613ba8 (patch)
tree114803047bb77b06e149d9218cd4540b9f287e65 /lisp
parent807f82fcebc7d946baa23f1d29ff5b0cf336f08e (diff)
parent1b0880d5f1b478fe097aef8b702a5c7c70bd9f18 (diff)
downloademacs-78df1fb1d46d556bfc2698ca1802972b13613ba8.tar.gz
emacs-78df1fb1d46d556bfc2698ca1802972b13613ba8.zip
Merge from trunk.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog82
-rw-r--r--lisp/minibuffer.el4
-rw-r--r--lisp/net/tramp-sh.el1
-rw-r--r--lisp/window.el64
4 files changed, 92 insertions, 59 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 76728fdbc5b..2813d80d9ff 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,20 @@
12012-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * minibuffer.el (completion--replace): Strip properties (bug#10062).
4
52012-01-16 Martin Rudalics <rudalics@gmx.at>
6
7 * window.el (window-state-ignored-parameters): Remove variable.
8 (window--state-get-1): Rename argument MARKERS to IGNORE.
9 Handle persistent window parameters. Make copy of clone-of
10 parameter only if requested. (Bug#10348)
11 (window--state-put-2): Install a window parameter only if it has
12 a non-nil value or an existing parameter shall be overwritten.
13
142012-01-15 Michael Albinus <michael.albinus@gmx.de>
15
16 * net/tramp-sh.el (tramp-remote-path): Set tramp-autoload cookie.
17
12012-01-14 Eli Zaretskii <eliz@gnu.org> 182012-01-14 Eli Zaretskii <eliz@gnu.org>
2 19
3 * info.el (Info-toc-build): If the Info file has no "Up" pointer, 20 * info.el (Info-toc-build): If the Info file has no "Up" pointer,
@@ -34,7 +51,7 @@
34 51
35 Fix Emacs bug #10463 - put `widen's around the critical spots. 52 Fix Emacs bug #10463 - put `widen's around the critical spots.
36 53
37 * progmodes/cc-engine.el (c-in-literal, c-literal-limits): put a 54 * progmodes/cc-engine.el (c-in-literal, c-literal-limits): Put a
38 widen around each invocation of c-state-pp-to-literal. Remove an 55 widen around each invocation of c-state-pp-to-literal. Remove an
39 unused let variable. 56 unused let variable.
40 57
@@ -45,8 +62,8 @@
45 62
462012-01-10 Chong Yidong <cyd@gnu.org> 632012-01-10 Chong Yidong <cyd@gnu.org>
47 64
48 * net/network-stream.el (network-stream-open-starttls): Avoid 65 * net/network-stream.el (network-stream-open-starttls):
49 emitting a confusing error message when the server gives a bad 66 Avoid emitting a confusing error message when the server gives a bad
50 response to the capability command. 67 response to the capability command.
51 68
522012-01-10 Glenn Morris <rgm@gnu.org> 692012-01-10 Glenn Morris <rgm@gnu.org>
@@ -139,8 +156,8 @@
139 156
140 * custom.el (enable-theme): Don't set custom-safe-themes. 157 * custom.el (enable-theme): Don't set custom-safe-themes.
141 158
142 * cus-theme.el (custom-theme-merge-theme): Ignore 159 * cus-theme.el (custom-theme-merge-theme):
143 custom-enabled-themes and custom-safe-themes. 160 Ignore custom-enabled-themes and custom-safe-themes.
144 161
1452012-01-05 Michael R. Mauger <mmaug@yahoo.com> 1622012-01-05 Michael R. Mauger <mmaug@yahoo.com>
146 163
@@ -163,8 +180,8 @@
163 180
1642012-01-03 Chong Yidong <cyd@gnu.org> 1812012-01-03 Chong Yidong <cyd@gnu.org>
165 182
166 * shell.el (shell-dynamic-complete-functions): Put 183 * shell.el (shell-dynamic-complete-functions):
167 pcomplete-completions-at-point, so as to try 184 Put pcomplete-completions-at-point, so as to try
168 comint-filename-completion first (Bug#10417). 185 comint-filename-completion first (Bug#10417).
169 186
1702012-01-02 Richard Stallman <rms@gnu.org> 1872012-01-02 Richard Stallman <rms@gnu.org>
@@ -189,8 +206,8 @@
189 206
1902012-01-01 Eli Zaretskii <eliz@gnu.org> 2072012-01-01 Eli Zaretskii <eliz@gnu.org>
191 208
192 * term/w32-win.el (dynamic-library-alist) <gnutls>: Load 209 * term/w32-win.el (dynamic-library-alist) <gnutls>:
193 libgnutls-28.dll, from GnuTLS version 3.x, in preference to 210 Load libgnutls-28.dll, from GnuTLS version 3.x, in preference to
194 libgnutls-26.dll. 211 libgnutls-26.dll.
195 212
1962011-12-31 Andreas Schwab <schwab@linux-m68k.org> 2132011-12-31 Andreas Schwab <schwab@linux-m68k.org>
@@ -242,11 +259,10 @@
2422011-12-24 Alan Mackenzie <acm@muc.de> 2592011-12-24 Alan Mackenzie <acm@muc.de>
243 260
244 Introduce a mechanism to widen the region used in context font 261 Introduce a mechanism to widen the region used in context font
245 locking. Use this to protect declarations from losing their 262 locking. Use this to protect declarations from losing their contexts.
246 contexts.
247 263
248 * progmodes/cc-langs.el (c-before-font-lock-functions): Replace 264 * progmodes/cc-langs.el (c-before-font-lock-functions):
249 c-set-fl-decl-start with c-change-set-fl-decl-start (Renaming). 265 Replace c-set-fl-decl-start with c-change-set-fl-decl-start (Renaming).
250 (c-before-context-fontification-functions): New defvar, a list of 266 (c-before-context-fontification-functions): New defvar, a list of
251 functions to be run just before context (etc.) font locking. 267 functions to be run just before context (etc.) font locking.
252 268
@@ -398,22 +414,19 @@
398 414
399 * progmodes/cc-langs (c-label-kwds): Let AWK take the same 415 * progmodes/cc-langs (c-label-kwds): Let AWK take the same
400 expression as the rest. 416 expression as the rest.
401 (c-nonlabel-token-key): Allow string literals for AWK. Refactor 417 (c-nonlabel-token-key): Allow string literals for AWK.
402 for the other modes. 418 Refactor for the other modes.
403 419
404 Large brace-block initialisation makes CC Mode slow: Fix. 420 Large brace-block initialisation makes CC Mode slow: Fix.
405 Tidy up and accelerate c-in-literal, etc. by using the 421 Tidy up and accelerate c-in-literal, etc. by using the c-parse-state
406 c-parse-state
407 routines. Limit backward searching in c-font-lock-enclosing.decl. 422 routines. Limit backward searching in c-font-lock-enclosing.decl.
408 423
409 * progmodes/cc-engine.el (c-state-pp-to-literal): Return the 424 * progmodes/cc-engine.el (c-state-pp-to-literal): Return the
410 pp-state and literal type in addition to the limits. 425 pp-state and literal type in addition to the limits.
411 (c-state-safe-place): New defun, extracted from 426 (c-state-safe-place): New defun, extracted from c-state-literal-at.
412 c-state-literal-at.
413 (c-state-literal-at): Use the above new defun. 427 (c-state-literal-at): Use the above new defun.
414 (c-slow-in-literal, c-fast-in-literal): Removed. 428 (c-slow-in-literal, c-fast-in-literal): Remove.
415 (c-in-literal, c-literal-limits): Amended to use 429 (c-in-literal, c-literal-limits): Amend to use c-state-pp-to-literal.
416 c-state-pp-to-literal.
417 430
418 * progmodes/cc-fonts.el (c-font-lock-enclosing-decls): Check for 431 * progmodes/cc-fonts.el (c-font-lock-enclosing-decls): Check for
419 being in a literal. Add a limit for backward searching. 432 being in a literal. Add a limit for backward searching.
@@ -487,8 +500,8 @@
4872011-12-10 Eli Zaretskii <eliz@gnu.org> 5002011-12-10 Eli Zaretskii <eliz@gnu.org>
488 501
489 * mail/rmailsum.el (rmail-header-summary): RFC2047 decode the 502 * mail/rmailsum.el (rmail-header-summary): RFC2047 decode the
490 `from' or `to' address before taking its substring. Fixes 503 `from' or `to' address before taking its substring.
491 incorrect display in Rmail summary buffer whereby an RFC2047 504 Fixes incorrect display in Rmail summary buffer whereby an RFC2047
492 encoded name is chopped in the middle of the encoded string, and 505 encoded name is chopped in the middle of the encoded string, and
493 thus displayed encoded. 506 thus displayed encoded.
494 507
@@ -707,8 +720,8 @@
707 (verilog-uvm-statement-re): Support UVM indentation and 720 (verilog-uvm-statement-re): Support UVM indentation and
708 highlighting, with old OVM keywords only. 721 highlighting, with old OVM keywords only.
709 (verilog-auto-tieoff, verilog-auto-tieoff-declaration): 722 (verilog-auto-tieoff, verilog-auto-tieoff-declaration):
710 Support AUTOTIEOFF creating non-wire data types. Suggested by Jonathan 723 Support AUTOTIEOFF creating non-wire data types.
711 Greenlaw. 724 Suggested by Jonathan Greenlaw.
712 (verilog-auto-insert-lisp, verilog-delete-to-paren) 725 (verilog-auto-insert-lisp, verilog-delete-to-paren)
713 (verilog-forward-sexp-cmt, verilog-forward-sexp-ign-cmt) 726 (verilog-forward-sexp-cmt, verilog-forward-sexp-ign-cmt)
714 (verilog-inject-sense, verilog-read-inst-pins) 727 (verilog-inject-sense, verilog-read-inst-pins)
@@ -794,11 +807,11 @@
794 Andrew Drake. 807 Andrew Drake.
795 (verilog-auto-star-safe, verilog-delete-auto-star-implicit) 808 (verilog-auto-star-safe, verilog-delete-auto-star-implicit)
796 (verilog-inst-comment-re): Fix not deleting Interfaced comment 809 (verilog-inst-comment-re): Fix not deleting Interfaced comment
797 when expanding .* in interfaces, bug320. Reported by Pierre-David 810 when expanding .* in interfaces, bug320.
798 Pfister. 811 Reported by Pierre-David Pfister.
799 (verilog-read-module-name): Fix import statements between module 812 (verilog-read-module-name): Fix import statements between module
800 name and open parenthesis, bug317. Reported by Pierre-David 813 name and open parenthesis, bug317.
801 Pfister. 814 Reported by Pierre-David Pfister.
802 (verilog-simplify-range-expression): Fix simplification of 815 (verilog-simplify-range-expression): Fix simplification of
803 multiplications inside AUTOWIRE connections, bug303. 816 multiplications inside AUTOWIRE connections, bug303.
804 (verilog-auto-inst-port): Support parameter expansion in 817 (verilog-auto-inst-port): Support parameter expansion in
@@ -1052,8 +1065,7 @@
1052 1065
10532011-11-19 Andreas Schwab <schwab@linux-m68k.org> 10662011-11-19 Andreas Schwab <schwab@linux-m68k.org>
1054 1067
1055 * progmodes/sh-script.el (sh-assignment-regexp): Add entry for 1068 * progmodes/sh-script.el (sh-assignment-regexp): Add entry for bash.
1056 bash.
1057 1069
10582011-11-19 Juri Linkov <juri@jurta.org> 10702011-11-19 Juri Linkov <juri@jurta.org>
1059 1071
@@ -1178,8 +1190,7 @@
1178 1190
1179 * window.el (window-resize, delete-window, split-window): 1191 * window.el (window-resize, delete-window, split-window):
1180 Replace window-splits by window-combination-resize. 1192 Replace window-splits by window-combination-resize.
1181 * cus-start.el (window-splits): Replace by 1193 * cus-start.el (window-splits): Replace by window-combination-resize.
1182 window-combination-resize.
1183 1194
11842011-11-17 Glenn Morris <rgm@gnu.org> 11952011-11-17 Glenn Morris <rgm@gnu.org>
1185 1196
@@ -1244,8 +1255,7 @@
1244 * window.el (split-window, window-state-get-1) 1255 * window.el (split-window, window-state-get-1)
1245 (window-state-put-1, window-state-put-2): Rename occurrences of 1256 (window-state-put-1, window-state-put-2): Rename occurrences of
1246 window-nest to window-combination-limit. 1257 window-nest to window-combination-limit.
1247 * cus-start.el (window-nest): Rename to 1258 * cus-start.el (window-nest): Rename to window-combination-limit.
1248 window-combination-limit.
1249 1259
12502011-11-16 Chong Yidong <cyd@gnu.org> 12602011-11-16 Chong Yidong <cyd@gnu.org>
1251 1261
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 756010160d2..3d9b30bcbb3 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -571,6 +571,10 @@ in the last `cdr'."
571(defun completion--replace (beg end newtext) 571(defun completion--replace (beg end newtext)
572 "Replace the buffer text between BEG and END with NEWTEXT. 572 "Replace the buffer text between BEG and END with NEWTEXT.
573Moves point to the end of the new text." 573Moves point to the end of the new text."
574 ;; The properties on `newtext' include things like
575 ;; completions-first-difference, which we don't want to include
576 ;; upon insertion.
577 (set-text-properties 0 (length newtext) nil newtext)
574 ;; Maybe this should be in subr.el. 578 ;; Maybe this should be in subr.el.
575 ;; You'd think this is trivial to do, but details matter if you want 579 ;; You'd think this is trivial to do, but details matter if you want
576 ;; to keep markers "at the right place" and be robust in the face of 580 ;; to keep markers "at the right place" and be robust in the face of
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index 02f933be367..2478253841f 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -512,6 +512,7 @@ detected as prompt when being sent on echoing hosts, therefore.")
512;; GNU/Linux (Debian, Suse): /bin:/usr/bin 512;; GNU/Linux (Debian, Suse): /bin:/usr/bin
513;; FreeBSD: /usr/bin:/bin:/usr/sbin:/sbin: - beware trailing ":"! 513;; FreeBSD: /usr/bin:/bin:/usr/sbin:/sbin: - beware trailing ":"!
514;; IRIX64: /usr/bin 514;; IRIX64: /usr/bin
515;;;###tramp-autoload
515(defcustom tramp-remote-path 516(defcustom tramp-remote-path
516 '(tramp-default-remote-path "/bin" "/usr/bin" "/usr/sbin" "/usr/local/bin" 517 '(tramp-default-remote-path "/bin" "/usr/bin" "/usr/sbin" "/usr/local/bin"
517 "/local/bin" "/local/freeware/bin" "/local/gnu/bin" 518 "/local/bin" "/local/freeware/bin" "/local/gnu/bin"
diff --git a/lisp/window.el b/lisp/window.el
index 8eb0ac3575b..54e5ec9c74c 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -3568,10 +3568,7 @@ specific buffers."
3568 )) 3568 ))
3569 3569
3570;;; Window states, how to get them and how to put them in a window. 3570;;; Window states, how to get them and how to put them in a window.
3571(defvar window-state-ignored-parameters '(quit-restore) 3571(defun window--state-get-1 (window &optional ignore)
3572 "List of window parameters ignored by `window-state-get'.")
3573
3574(defun window--state-get-1 (window &optional markers)
3575 "Helper function for `window-state-get'." 3572 "Helper function for `window-state-get'."
3576 (let* ((type 3573 (let* ((type
3577 (cond 3574 (cond
@@ -3589,12 +3586,27 @@ specific buffers."
3589 (normal-width . ,(window-normal-size window t)) 3586 (normal-width . ,(window-normal-size window t))
3590 (combination-limit . ,(window-combination-limit window)) 3587 (combination-limit . ,(window-combination-limit window))
3591 ,@(let (list) 3588 ,@(let (list)
3592 (dolist (parameter (window-parameters window)) 3589 ;; Make copies of persistent window parameters whose cdr
3593 (unless (memq (car parameter) 3590 ;; is either t or, when IGNORE is non-nil, is either nil
3594 window-state-ignored-parameters) 3591 ;; or `state'.
3595 (setq list (cons parameter list)))) 3592 (dolist (pers window-persistent-parameters)
3596 (unless (window-parameter window 'clone-of) 3593 (when (and (consp pers)
3597 ;; Make a clone-of parameter. 3594 (or (eq (cdr pers) t)
3595 (and (memq (cdr pers) '(state nil))
3596 (not ignore))))
3597 (let ((par (assq (car pers) (window-parameters window))))
3598 (setq list (cons (cons (car pers) (when par (cdr par)))
3599 list)))))
3600 ;; Save `clone-of' parameter unless IGNORE or
3601 ;; `window-persistent-parameters' prevail.
3602 (when (and (not (assq 'clone-of (window-parameters window)))
3603 (let ((clone-of
3604 (assq 'clone-of
3605 window-persistent-parameters)))
3606 (when clone-of
3607 (if ignore
3608 (eq (cdr clone-of) t)
3609 (memq (cdr clone-of) '(state nil))))))
3598 (setq list (cons (cons 'clone-of window) list))) 3610 (setq list (cons (cons 'clone-of window) list)))
3599 (when list 3611 (when list
3600 `((parameters . ,list)))) 3612 `((parameters . ,list))))
@@ -3616,30 +3628,31 @@ specific buffers."
3616 (scroll-bars . ,(window-scroll-bars window)) 3628 (scroll-bars . ,(window-scroll-bars window))
3617 (vscroll . ,(window-vscroll window)) 3629 (vscroll . ,(window-vscroll window))
3618 (dedicated . ,(window-dedicated-p window)) 3630 (dedicated . ,(window-dedicated-p window))
3619 (point . ,(if markers (copy-marker point) point)) 3631 (point . ,(if ignore point (copy-marker point)))
3620 (start . ,(if markers (copy-marker start) start)) 3632 (start . ,(if ignore start (copy-marker start)))
3621 ,@(when mark 3633 ,@(when mark
3622 `((mark . ,(if markers 3634 `((mark . ,(if ignore
3623 (copy-marker mark) mark))))))))))) 3635 mark (copy-marker mark))))))))))))
3624 (tail 3636 (tail
3625 (when (memq type '(vc hc)) 3637 (when (memq type '(vc hc))
3626 (let (list) 3638 (let (list)
3627 (setq window (window-child window)) 3639 (setq window (window-child window))
3628 (while window 3640 (while window
3629 (setq list (cons (window--state-get-1 window markers) list)) 3641 (setq list (cons (window--state-get-1 window ignore) list))
3630 (setq window (window-right window))) 3642 (setq window (window-right window)))
3631 (nreverse list))))) 3643 (nreverse list)))))
3632 (append head tail))) 3644 (append head tail)))
3633 3645
3634(defun window-state-get (&optional window markers) 3646(defun window-state-get (&optional window ignore)
3635 "Return state of WINDOW as a Lisp object. 3647 "Return state of WINDOW as a Lisp object.
3636WINDOW can be any window and defaults to the root window of the 3648WINDOW can be any window and defaults to the root window of the
3637selected frame. 3649selected frame.
3638 3650
3639Optional argument MARKERS non-nil means use markers for sampling 3651Optional argument IGNORE non-nil means do not use markers for
3640positions like `window-point' or `window-start'. MARKERS should 3652sampling positions like `window-point' or `window-start' and do
3641be non-nil only if the value is used for putting the state back 3653not record parameters unless `window-persistent-parameters'
3642in the same session (note that markers slow down processing). 3654requests it. IGNORE should be non-nil when the return value
3655shall be written to a file and read back in another session.
3643 3656
3644The return value can be used as argument for `window-state-put' 3657The return value can be used as argument for `window-state-put'
3645to put the state recorded here into an arbitrary window. The 3658to put the state recorded here into an arbitrary window. The
@@ -3665,7 +3678,7 @@ value can be also stored on disk and read back in a new session."
3665 ;; These are probably not needed. 3678 ;; These are probably not needed.
3666 ,@(when (window-size-fixed-p window) `((fixed-height . t))) 3679 ,@(when (window-size-fixed-p window) `((fixed-height . t)))
3667 ,@(when (window-size-fixed-p window t) `((fixed-width . t)))) 3680 ,@(when (window-size-fixed-p window t) `((fixed-width . t))))
3668 (window--state-get-1 window markers))) 3681 (window--state-get-1 window ignore)))
3669 3682
3670(defvar window-state-put-list nil 3683(defvar window-state-put-list nil
3671 "Helper variable for `window-state-put'.") 3684 "Helper variable for `window-state-put'.")
@@ -3744,10 +3757,15 @@ value can be also stored on disk and read back in a new session."
3744 (state (cdr (assq 'buffer item)))) 3757 (state (cdr (assq 'buffer item))))
3745 (when combination-limit 3758 (when combination-limit
3746 (set-window-combination-limit window combination-limit)) 3759 (set-window-combination-limit window combination-limit))
3747 ;; Process parameters. 3760 ;; Assign saved window parameters. If a parameter's value is nil,
3761 ;; don't assign it unless the new window has it set already (which
3762 ;; shouldn't happen unless some `window-configuration-change-hook'
3763 ;; function installed it).
3748 (when parameters 3764 (when parameters
3749 (dolist (parameter parameters) 3765 (dolist (parameter parameters)
3750 (set-window-parameter window (car parameter) (cdr parameter)))) 3766 (when (or (cdr parameter)
3767 (window-parameter window (car parameter)))
3768 (set-window-parameter window (car parameter) (cdr parameter)))))
3751 ;; Process buffer related state. 3769 ;; Process buffer related state.
3752 (when state 3770 (when state
3753 ;; We don't want to raise an error here so we create a buffer if 3771 ;; We don't want to raise an error here so we create a buffer if