aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJoakim Verona2013-04-24 08:30:55 +0200
committerJoakim Verona2013-04-24 08:30:55 +0200
commit5877a57a3c3da1395cff267c06bb9690fd7f44e4 (patch)
tree6d2f227e83366f0707404a5c1dd30450d0fbf1b3 /lisp
parent8ee071b733e7b83ab6e793389dce7c6e2393f891 (diff)
parent6933cefc4834cc5ef8d8c46fd2379578240c4f1e (diff)
downloademacs-5877a57a3c3da1395cff267c06bb9690fd7f44e4.tar.gz
emacs-5877a57a3c3da1395cff267c06bb9690fd7f44e4.zip
auto upstream
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog23
-rw-r--r--lisp/jit-lock.el25
-rw-r--r--lisp/minibuffer.el4
-rw-r--r--lisp/startup.el69
-rw-r--r--lisp/textmodes/reftex-vars.el10
5 files changed, 68 insertions, 63 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b0cad6454c3..c0b20fdbd63 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,26 @@
12013-04-23 Glenn Morris <rgm@gnu.org>
2
3 * startup.el (normal-no-mouse-startup-screen, normal-about-screen):
4 Remove venerable code attempting to avoid substitute-command-keys.
5
62013-04-23 Tassilo Horn <tsdh@gnu.org>
7
8 * textmodes/reftex-vars.el (reftex-label-regexps): Call
9 `reftex-compile-variables' after changes to this variable.
10
112013-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12
13 * jit-lock.el: Fix signals in jit-lock-force-redisplay.
14 Use lexical-binding.
15 (jit-lock-force-redisplay): Use markers, check buffer's continued
16 existence and beware narrowed buffers.
17 (jit-lock-fontify-now): Adjust call accordingly.
18
192013-04-22 Stefan Monnier <monnier@iro.umontreal.ca>
20
21 * minibuffer.el (minibuffer-completion-contents): Fix obsolescence info
22 to avoid misleading the user.
23
12013-04-22 Leo Liu <sdl.web@gmail.com> 242013-04-22 Leo Liu <sdl.web@gmail.com>
2 25
3 * info-look.el: Prefer latex2e.info. (Bug#14240) 26 * info-look.el: Prefer latex2e.info. (Bug#14240)
diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el
index d879735c344..9359a65a1b8 100644
--- a/lisp/jit-lock.el
+++ b/lisp/jit-lock.el
@@ -1,4 +1,4 @@
1;;; jit-lock.el --- just-in-time fontification 1;;; jit-lock.el --- just-in-time fontification -*- lexical-binding: t -*-
2 2
3;; Copyright (C) 1998, 2000-2013 Free Software Foundation, Inc. 3;; Copyright (C) 1998, 2000-2013 Free Software Foundation, Inc.
4 4
@@ -412,21 +412,24 @@ Defaults to the whole buffer. END can be out of bounds."
412 ;; eagerly extend the refontified region with 412 ;; eagerly extend the refontified region with
413 ;; jit-lock-after-change-extend-region-functions. 413 ;; jit-lock-after-change-extend-region-functions.
414 (when (< start orig-start) 414 (when (< start orig-start)
415 (run-with-timer 0 nil 'jit-lock-force-redisplay 415 (run-with-timer 0 nil #'jit-lock-force-redisplay
416 (current-buffer) start orig-start)) 416 (copy-marker start) (copy-marker orig-start)))
417 417
418 ;; Find the start of the next chunk, if any. 418 ;; Find the start of the next chunk, if any.
419 (setq start (text-property-any next end 'fontified nil)))))))) 419 (setq start (text-property-any next end 'fontified nil))))))))
420 420
421(defun jit-lock-force-redisplay (buf start end) 421(defun jit-lock-force-redisplay (start end)
422 "Force the display engine to re-render buffer BUF from START to END." 422 "Force the display engine to re-render buffer BUF from START to END."
423 (with-current-buffer buf 423 (when (marker-buffer start)
424 (with-buffer-prepared-for-jit-lock 424 (with-current-buffer (marker-buffer start)
425 ;; Don't cause refontification (it's already been done), but just do 425 (with-buffer-prepared-for-jit-lock
426 ;; some random buffer change, so as to force redisplay. 426 (when (> end (point-max))
427 (put-text-property start end 'fontified t)))) 427 (setq end (point-max) start (min start end)))
428 428 (when (< start (point-min))
429 429 (setq start (point-min) end (max start end)))
430 ;; Don't cause refontification (it's already been done), but just do
431 ;; some random buffer change, so as to force redisplay.
432 (put-text-property start end 'fontified t)))))
430 433
431;;; Stealth fontification. 434;;; Stealth fontification.
432 435
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 978b3a5b130..ef949f7482e 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -638,8 +638,8 @@ If ARGS are provided, then pass MESSAGE through `format'."
638 638
639(defun minibuffer-completion-contents () 639(defun minibuffer-completion-contents ()
640 "Return the user input in a minibuffer before point as a string. 640 "Return the user input in a minibuffer before point as a string.
641That used to be what completion commands operate on." 641In Emacs-22, that was what completion commands operated on."
642 (declare (obsolete minibuffer-contents "24.4")) 642 (declare (obsolete nil "24.4"))
643 (buffer-substring (field-beginning) (point))) 643 (buffer-substring (field-beginning) (point)))
644 644
645(defun delete-minibuffer-contents () 645(defun delete-minibuffer-contents ()
diff --git a/lisp/startup.el b/lisp/startup.el
index dc21005ab94..b7b4c156f02 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -1856,11 +1856,8 @@ To quit a partially entered command, type Control-g.\n")
1856 (insert "\n" (emacs-version) 1856 (insert "\n" (emacs-version)
1857 "\n" emacs-copyright)) 1857 "\n" emacs-copyright))
1858 1858
1859;; No mouse menus, so give help using kbd commands.
1860(defun normal-no-mouse-startup-screen () 1859(defun normal-no-mouse-startup-screen ()
1861 1860 "Show a splash screen suitable for displays without mouse support."
1862 ;; If keys have their default meanings,
1863 ;; use precomputed string to save lots of time.
1864 (let* ((c-h-accessible 1861 (let* ((c-h-accessible
1865 ;; If normal-erase-is-backspace is used on a tty, there's 1862 ;; If normal-erase-is-backspace is used on a tty, there's
1866 ;; no way to invoke C-h and you have to use F1 instead. 1863 ;; no way to invoke C-h and you have to use F1 instead.
@@ -1938,47 +1935,24 @@ If you have no Meta key, you may instead type ESC followed by the character.)")
1938 'follow-link t) 1935 'follow-link t)
1939 (insert "\n") 1936 (insert "\n")
1940 (insert "\n" (emacs-version) "\n" emacs-copyright "\n") 1937 (insert "\n" (emacs-version) "\n" emacs-copyright "\n")
1941 1938 (insert (substitute-command-keys
1942 (if (and (eq (key-binding "\C-h\C-c") 'describe-copying) 1939 "
1943 (eq (key-binding "\C-h\C-o") 'describe-distribution)
1944 (eq (key-binding "\C-h\C-w") 'describe-no-warranty))
1945 (progn
1946 (insert
1947 "
1948GNU Emacs comes with ABSOLUTELY NO WARRANTY; type C-h C-w for ")
1949 (insert-button "full details"
1950 'action (lambda (_button) (describe-no-warranty))
1951 'follow-link t)
1952 (insert ".
1953Emacs is Free Software--Free as in Freedom--so you can redistribute copies
1954of Emacs and modify it; type C-h C-c to see ")
1955 (insert-button "the conditions"
1956 'action (lambda (_button) (describe-copying))
1957 'follow-link t)
1958 (insert ".
1959Type C-h C-d for information on ")
1960 (insert-button "getting the latest version"
1961 'action (lambda (_button) (describe-distribution))
1962 'follow-link t)
1963 (insert "."))
1964 (insert (substitute-command-keys
1965 "
1966GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for ")) 1940GNU Emacs comes with ABSOLUTELY NO WARRANTY; type \\[describe-no-warranty] for "))
1967 (insert-button "full details" 1941 (insert-button "full details"
1968 'action (lambda (_button) (describe-no-warranty)) 1942 'action (lambda (_button) (describe-no-warranty))
1969 'follow-link t) 1943 'follow-link t)
1970 (insert (substitute-command-keys ". 1944 (insert (substitute-command-keys ".
1971Emacs is Free Software--Free as in Freedom--so you can redistribute copies 1945Emacs is Free Software--Free as in Freedom--so you can redistribute copies
1972of Emacs and modify it; type \\[describe-copying] to see ")) 1946of Emacs and modify it; type \\[describe-copying] to see "))
1973 (insert-button "the conditions" 1947 (insert-button "the conditions"
1974 'action (lambda (_button) (describe-copying)) 1948 'action (lambda (_button) (describe-copying))
1975 'follow-link t) 1949 'follow-link t)
1976 (insert (substitute-command-keys". 1950 (insert (substitute-command-keys".
1977Type \\[describe-distribution] for information on ")) 1951Type \\[describe-distribution] for information on "))
1978 (insert-button "getting the latest version" 1952 (insert-button "getting the latest version"
1979 'action (lambda (_button) (describe-distribution)) 1953 'action (lambda (_button) (describe-distribution))
1980 'follow-link t) 1954 'follow-link t)
1981 (insert "."))) 1955 (insert "."))
1982 1956
1983(defun normal-about-screen () 1957(defun normal-about-screen ()
1984 (insert "\n" (emacs-version) "\n" emacs-copyright "\n\n") 1958 (insert "\n" (emacs-version) "\n" emacs-copyright "\n\n")
@@ -2027,14 +2001,11 @@ Type \\[describe-distribution] for information on "))
2027 (insert "\tBuying printed manuals from the FSF\n")) 2001 (insert "\tBuying printed manuals from the FSF\n"))
2028 2002
2029(defun startup-echo-area-message () 2003(defun startup-echo-area-message ()
2030 (cond ((daemonp) 2004 (if (daemonp)
2031 "Starting Emacs daemon.") 2005 "Starting Emacs daemon."
2032 ((eq (key-binding "\C-h\C-a") 'about-emacs) 2006 (substitute-command-keys
2033 "For information about GNU Emacs and the GNU system, type C-h C-a.") 2007 "For information about GNU Emacs and the GNU system, type \
2034 (t 2008\\[about-emacs].")))
2035 (substitute-command-keys
2036 "For information about GNU Emacs and the GNU system, type \
2037\\[about-emacs]."))))
2038 2009
2039(defun display-startup-echo-area-message () 2010(defun display-startup-echo-area-message ()
2040 (let ((resize-mini-windows t)) 2011 (let ((resize-mini-windows t))
diff --git a/lisp/textmodes/reftex-vars.el b/lisp/textmodes/reftex-vars.el
index c00cf36c79e..7343d86b06f 100644
--- a/lisp/textmodes/reftex-vars.el
+++ b/lisp/textmodes/reftex-vars.el
@@ -873,7 +873,15 @@ DOWNCASE t: Downcase words before using them."
873The default value matches usual \\label{...} definitions and 873The default value matches usual \\label{...} definitions and
874keyval style [..., label = {...}, ...] label definitions. It is 874keyval style [..., label = {...}, ...] label definitions. It is
875assumed that the regexp group 1 matches the label text, so you 875assumed that the regexp group 1 matches the label text, so you
876have to define it using \\(?1:...\\) when adding new regexps." 876have to define it using \\(?1:...\\) when adding new regexps.
877
878When changed from Lisp, make sure to call
879`reftex-compile-variables' afterwards to make the change
880effective."
881 :set (lambda (symbol value)
882 (set symbol value)
883 (when (fboundp 'reftex-compile-variables)
884 (reftex-compile-variables)))
877 :group 'reftex-defining-label-environments 885 :group 'reftex-defining-label-environments
878 :type '(repeat (regexp :tag "Regular Expression"))) 886 :type '(repeat (regexp :tag "Regular Expression")))
879 887