aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuanma Barranquero2014-04-25 18:11:07 +0200
committerJuanma Barranquero2014-04-25 18:11:07 +0200
commitdff4a9f6a4e9e42de6177e29faa7e3524b47e6d4 (patch)
tree60924b65da522416f928b436f8525f5bc8bfc3d7 /lisp
parent8de17fac97652d77bffd24e41b0097c863bd752b (diff)
parent844465d6cac7c243e37e446067b1a2e06be293da (diff)
downloademacs-dff4a9f6a4e9e42de6177e29faa7e3524b47e6d4.tar.gz
emacs-dff4a9f6a4e9e42de6177e29faa7e3524b47e6d4.zip
Merge from emacs-24; up to 2014-04-25T10:35:01Z!michael.albinus@gmx.de
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog34
-rw-r--r--lisp/comint.el5
-rw-r--r--lisp/emacs-lisp/cl.el1
-rw-r--r--lisp/emacs-lisp/lisp-mode.el2
-rw-r--r--lisp/progmodes/idlwave.el2
-rw-r--r--lisp/progmodes/perl-mode.el2
-rw-r--r--lisp/simple.el14
-rw-r--r--lisp/term.el5
-rw-r--r--lisp/term/xterm.el6
-rw-r--r--lisp/tooltip.el8
10 files changed, 63 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f1128b0f98d..4568c88c8d6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,37 @@
12014-04-25 Eli Zaretskii <eliz@gnu.org>
2
3 * tooltip.el (tooltip-show-help-non-mode, tooltip-show-help): Use
4 equal-including-properties to compare help-echo strings. (Bug#17331)
5
62014-04-25 Leo Liu <sdl.web@gmail.com>
7
8 * emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table):
9 Fix syntax for @. (Bug#17325)
10
112014-04-25 Daniel Colascione <dancol@dancol.org>
12
13 * emacs-lisp/cl.el (gv): Require gv early to break eager
14 macro-expansion cycles.
15
162014-04-25 Stefan Monnier <monnier@iro.umontreal.ca>
17
18 * simple.el (region-active-p): Check there's a mark (bug#17324).
19
20 * simple.el (completion-list-mode-map): Use choose-completion for the
21 mouse binding as well (bug#17302).
22 (completion-list-mode, completion-setup-function): Adjust docstring and
23 echo area message accordingly.
24 * progmodes/idlwave.el (idlwave-choose-completion): Adjust to new
25 calling convention of choose-completion.
26 * comint.el (comint-dynamic-list-completions):
27 * term.el (term-dynamic-list-completions): Accept choose-completion.
28
29 * progmodes/perl-mode.el (perl-syntax-propertize-function): Slash after
30 &, |, +, - and * can't be a division (bug#17317).
31
32 * term/xterm.el (xterm--version-handler): Don't use modern xterm
33 features on gnome-terminal (bug#16988).
34
12014-04-25 Thien-Thi Nguyen <ttn@gnu.org> 352014-04-25 Thien-Thi Nguyen <ttn@gnu.org>
2 36
3 Improve Scheme font-locking for (define ((foo ...) ...) ...). 37 Improve Scheme font-locking for (define ((foo ...) ...) ...).
diff --git a/lisp/comint.el b/lisp/comint.el
index dfc3fee0884..da3782717c0 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -3332,8 +3332,9 @@ the completions."
3332 (and (consp first) (consp (event-start first)) 3332 (and (consp first) (consp (event-start first))
3333 (eq (window-buffer (posn-window (event-start first))) 3333 (eq (window-buffer (posn-window (event-start first)))
3334 (get-buffer "*Completions*")) 3334 (get-buffer "*Completions*"))
3335 (eq (key-binding key) 'mouse-choose-completion))) 3335 (memq (key-binding key)
3336 ;; If the user does mouse-choose-completion with the mouse, 3336 '(mouse-choose-completion choose-completion))))
3337 ;; If the user does choose-completion with the mouse,
3337 ;; execute the command, then delete the completion window. 3338 ;; execute the command, then delete the completion window.
3338 (progn 3339 (progn
3339 (choose-completion first) 3340 (choose-completion first)
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el
index fc09ff004e1..d99166e41c1 100644
--- a/lisp/emacs-lisp/cl.el
+++ b/lisp/emacs-lisp/cl.el
@@ -29,6 +29,7 @@
29 29
30(require 'cl-lib) 30(require 'cl-lib)
31(require 'macroexp) 31(require 'macroexp)
32(require 'gv)
32 33
33;; (defun cl--rename () 34;; (defun cl--rename ()
34;; (let ((vdefs ()) 35;; (let ((vdefs ())
diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el
index 30df19d5f63..7e00d0b2cf9 100644
--- a/lisp/emacs-lisp/lisp-mode.el
+++ b/lisp/emacs-lisp/lisp-mode.el
@@ -74,7 +74,7 @@ It has `lisp-mode-abbrev-table' as its parent."
74 (modify-syntax-entry ?` "' " table) 74 (modify-syntax-entry ?` "' " table)
75 (modify-syntax-entry ?' "' " table) 75 (modify-syntax-entry ?' "' " table)
76 (modify-syntax-entry ?, "' " table) 76 (modify-syntax-entry ?, "' " table)
77 (modify-syntax-entry ?@ "' " table) 77 (modify-syntax-entry ?@ "_ p" table)
78 ;; Used to be singlequote; changed for flonums. 78 ;; Used to be singlequote; changed for flonums.
79 (modify-syntax-entry ?. "_ " table) 79 (modify-syntax-entry ?. "_ " table)
80 (modify-syntax-entry ?# "' " table) 80 (modify-syntax-entry ?# "' " table)
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index 8d4320669a1..86a16036e10 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -7170,7 +7170,7 @@ If these don't exist, a letter in the string is automatically selected."
7170 7170
7171(defun idlwave-choose-completion (&rest args) 7171(defun idlwave-choose-completion (&rest args)
7172 "Choose the completion that point is in or next to." 7172 "Choose the completion that point is in or next to."
7173 (interactive) 7173 (interactive (list last-nonmenu-event))
7174 (apply 'idlwave-choose 'choose-completion args)) 7174 (apply 'idlwave-choose 'choose-completion args))
7175 7175
7176(defun idlwave-mouse-choose-completion (&rest args) 7176(defun idlwave-mouse-choose-completion (&rest args)
diff --git a/lisp/progmodes/perl-mode.el b/lisp/progmodes/perl-mode.el
index f89fec7b1e0..ef372a34fdb 100644
--- a/lisp/progmodes/perl-mode.el
+++ b/lisp/progmodes/perl-mode.el
@@ -281,7 +281,7 @@
281 ((concat "\\(?:\\(?:^\\|[^$@&%[:word:]]\\)" 281 ((concat "\\(?:\\(?:^\\|[^$@&%[:word:]]\\)"
282 (regexp-opt '("split" "if" "unless" "until" "while" "split" 282 (regexp-opt '("split" "if" "unless" "until" "while" "split"
283 "grep" "map" "not" "or" "and" "for" "foreach")) 283 "grep" "map" "not" "or" "and" "for" "foreach"))
284 "\\|[?:.,;=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)") 284 "\\|[-?:.,;|&+*=!~({[]\\|\\(^\\)\\)[ \t\n]*\\(/\\)")
285 (2 (ignore 285 (2 (ignore
286 (if (and (match-end 1) ; / at BOL. 286 (if (and (match-end 1) ; / at BOL.
287 (save-excursion 287 (save-excursion
diff --git a/lisp/simple.el b/lisp/simple.el
index 17aba8e6a40..e3bae58a380 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4503,7 +4503,12 @@ Some commands act specially on the region when Transient Mark
4503mode is enabled. Usually, such commands should use 4503mode is enabled. Usually, such commands should use
4504`use-region-p' instead of this function, because `use-region-p' 4504`use-region-p' instead of this function, because `use-region-p'
4505also checks the value of `use-empty-active-region'." 4505also checks the value of `use-empty-active-region'."
4506 (and transient-mark-mode mark-active)) 4506 (and transient-mark-mode mark-active
4507 ;; FIXME: Somehow we sometimes end up with mark-active non-nil but
4508 ;; without the mark being set (e.g. bug#17324). We really should fix
4509 ;; that problem, but in the mean time, let's make sure we don't say the
4510 ;; region is active when there's no mark.
4511 (mark)))
4507 4512
4508 4513
4509(defvar redisplay-unhighlight-region-function 4514(defvar redisplay-unhighlight-region-function
@@ -6872,7 +6877,7 @@ With a prefix argument, set VARIABLE to VALUE buffer-locally."
6872 6877
6873(defvar completion-list-mode-map 6878(defvar completion-list-mode-map
6874 (let ((map (make-sparse-keymap))) 6879 (let ((map (make-sparse-keymap)))
6875 (define-key map [mouse-2] 'mouse-choose-completion) 6880 (define-key map [mouse-2] 'choose-completion)
6876 (define-key map [follow-link] 'mouse-face) 6881 (define-key map [follow-link] 'mouse-face)
6877 (define-key map [down-mouse-2] nil) 6882 (define-key map [down-mouse-2] nil)
6878 (define-key map "\C-m" 'choose-completion) 6883 (define-key map "\C-m" 'choose-completion)
@@ -7121,8 +7126,7 @@ back on `completion-list-insert-choice-function' when nil."
7121 "Major mode for buffers showing lists of possible completions. 7126 "Major mode for buffers showing lists of possible completions.
7122Type \\<completion-list-mode-map>\\[choose-completion] in the completion list\ 7127Type \\<completion-list-mode-map>\\[choose-completion] in the completion list\
7123 to select the completion near point. 7128 to select the completion near point.
7124Use \\<completion-list-mode-map>\\[mouse-choose-completion] to select one\ 7129Or click to select one with the mouse.
7125 with the mouse.
7126 7130
7127\\{completion-list-mode-map}" 7131\\{completion-list-mode-map}"
7128 (set (make-local-variable 'completion-base-size) nil)) 7132 (set (make-local-variable 'completion-base-size) nil))
@@ -7180,7 +7184,7 @@ Called from `temp-buffer-show-hook'."
7180 (goto-char (point-min)) 7184 (goto-char (point-min))
7181 (if (display-mouse-p) 7185 (if (display-mouse-p)
7182 (insert (substitute-command-keys 7186 (insert (substitute-command-keys
7183 "Click \\[mouse-choose-completion] on a completion to select it.\n"))) 7187 "Click on a completion to select it.\n")))
7184 (insert (substitute-command-keys 7188 (insert (substitute-command-keys
7185 "In this buffer, type \\[choose-completion] to \ 7189 "In this buffer, type \\[choose-completion] to \
7186select the completion near point.\n\n")))))) 7190select the completion near point.\n\n"))))))
diff --git a/lisp/term.el b/lisp/term.el
index 97108c330a8..ce6125e2790 100644
--- a/lisp/term.el
+++ b/lisp/term.el
@@ -4137,8 +4137,9 @@ Typing SPC flushes the help buffer."
4137 (and (consp first) 4137 (and (consp first)
4138 (eq (window-buffer (posn-window (event-start first))) 4138 (eq (window-buffer (posn-window (event-start first)))
4139 (get-buffer "*Completions*")) 4139 (get-buffer "*Completions*"))
4140 (eq (key-binding key) 'mouse-choose-completion))) 4140 (memq (key-binding key)
4141 ;; If the user does mouse-choose-completion with the mouse, 4141 '(mouse-choose-completion choose-completion))))
4142 ;; If the user does choose-completion with the mouse,
4142 ;; execute the command, then delete the completion window. 4143 ;; execute the command, then delete the completion window.
4143 (progn 4144 (progn
4144 (choose-completion first) 4145 (choose-completion first)
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index 33eb61dac1e..f8ff0cc91dc 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -530,6 +530,12 @@ The relevant features are:
530 ;; Since xterm-280, the terminal type (NUMBER1) is now 41 instead of 0. 530 ;; Since xterm-280, the terminal type (NUMBER1) is now 41 instead of 0.
531 (when (string-match "\\([0-9]+\\);\\([0-9]+\\);0" str) 531 (when (string-match "\\([0-9]+\\);\\([0-9]+\\);0" str)
532 (let ((version (string-to-number (match-string 2 str)))) 532 (let ((version (string-to-number (match-string 2 str))))
533 (when (and (> version 2000) (equal (match-string 1 str) "1"))
534 ;; Hack attack! bug#16988: gnome-terminal reports "1;NNNN;0"
535 ;; with a large NNNN but is based on a rather old xterm code.
536 ;; Gnome terminal 3.6.1 reports 1;3406;0
537 ;; Gnome terminal 2.32.1 reports 1;2802;0
538 (setq version 200))
533 ;; If version is 242 or higher, assume the xterm supports 539 ;; If version is 242 or higher, assume the xterm supports
534 ;; reporting the background color (TODO: maybe earlier 540 ;; reporting the background color (TODO: maybe earlier
535 ;; versions do too...) 541 ;; versions do too...)
diff --git a/lisp/tooltip.el b/lisp/tooltip.el
index 059370f2eee..9d0954fc5dc 100644
--- a/lisp/tooltip.el
+++ b/lisp/tooltip.el
@@ -343,10 +343,10 @@ It is also called if Tooltip mode is on, for text-only displays."
343 ((stringp help) 343 ((stringp help)
344 (setq help (replace-regexp-in-string "\n" ", " help)) 344 (setq help (replace-regexp-in-string "\n" ", " help))
345 (unless (or tooltip-previous-message 345 (unless (or tooltip-previous-message
346 (string-equal help (current-message)) 346 (equal-including-properties help (current-message))
347 (and (stringp tooltip-help-message) 347 (and (stringp tooltip-help-message)
348 (string-equal tooltip-help-message 348 (equal-including-properties tooltip-help-message
349 (current-message)))) 349 (current-message))))
350 (setq tooltip-previous-message (current-message))) 350 (setq tooltip-previous-message (current-message)))
351 (setq tooltip-help-message help) 351 (setq tooltip-help-message help)
352 (let ((message-truncate-lines t) 352 (let ((message-truncate-lines t)
@@ -369,7 +369,7 @@ MSG is either a help string to display, or nil to cancel the display."
369 ;; Cancel display. This also cancels a delayed tip, if 369 ;; Cancel display. This also cancels a delayed tip, if
370 ;; there is one. 370 ;; there is one.
371 (tooltip-hide)) 371 (tooltip-hide))
372 ((equal previous-help msg) 372 ((equal-including-properties previous-help msg)
373 ;; Same help as before (but possibly the mouse has moved). 373 ;; Same help as before (but possibly the mouse has moved).
374 ;; Keep what we have. 374 ;; Keep what we have.
375 ) 375 )