aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2000-10-06 22:19:23 +0000
committerStefan Monnier2000-10-06 22:19:23 +0000
commit39250ec387bc9c4f06641ec708dde396723f5182 (patch)
tree6478a8f275ac7cfbfc0f6ff12fc66dbd6797d61b
parent742c182294f78cd38edf29b44150525a2e235fcc (diff)
downloademacs-39250ec387bc9c4f06641ec708dde396723f5182.tar.gz
emacs-39250ec387bc9c4f06641ec708dde396723f5182.zip
(fancy-splash-screens): Use local rather than global map.
Don't use `update-menu-bindings' any more. Get rid of assumptions about keymap representation.
-rw-r--r--lisp/ChangeLog24
-rw-r--r--lisp/startup.el20
2 files changed, 28 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bce13665692..85acae57ef7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12000-10-06 Stefan Monnier <monnier@cs.yale.edu>
2
3 * startup.el (fancy-splash-screens): Use local rather than global map.
4 Don't use `update-menu-bindings' any more.
5 Get rid of assumptions about keymap representation.
6
12000-10-06 Dave Love <fx@gnu.org> 72000-10-06 Dave Love <fx@gnu.org>
2 8
3 * textmodes/fill.el (sentence-end-double-space) 9 * textmodes/fill.el (sentence-end-double-space)
@@ -8,8 +14,7 @@
8 14
9 * net/eudc-vars.el (eudc): Add :version, :link. 15 * net/eudc-vars.el (eudc): Add :version, :link.
10 16
11 * international/mule-conf.el (file-coding-system-alist): Use \', 17 * international/mule-conf.el (file-coding-system-alist): Use \', not $.
12 not $.
13 18
14 * emacs-lisp/find-func.el (find-function-regexp): Remove spurion. 19 * emacs-lisp/find-func.el (find-function-regexp): Remove spurion.
15 Fix for define-minor-mode. 20 Fix for define-minor-mode.
@@ -23,6 +28,21 @@
23 image-file-name-regexps. 28 image-file-name-regexps.
24 (image-file-name-extensions): Add pbm. 29 (image-file-name-extensions): Add pbm.
25 30
312000-10-06 Stefan Monnier <monnier@cs.yale.edu>
32
33 * smerge-mode.el (smerge-diff): Setup the buffer's default-directory
34 and add filename to the names so that diff-mode can jump to source.
35
36 * font-lock.el (font-lock-defaults-alist): Remove the TeX entries.
37 (tex-font-lock-keywords, tex-font-lock-keywords-2)
38 (tex-font-lock-keywords-1): Remove.
39 (font-lock-turn-on-thing-lock): Use jit-lock-register.
40 (font-lock-turn-off-thing-lock): Use jit-lock-unregister.
41 (font-lock-default-fontify-region): Expand beg..end correctly
42 when just following a multiline region.
43 (font-lock-fontify-anchored-keywords):
44 Include the anchor text as part of the multiline.
45
262000-10-06 Gerd Moellmann <gerd@gnu.org> 462000-10-06 Gerd Moellmann <gerd@gnu.org>
27 47
28 * loadup.el (toplevel): Load `loaddefs' before `help' because the 48 * loadup.el (toplevel): Load `loaddefs' before `help' because the
diff --git a/lisp/startup.el b/lisp/startup.el
index 7ce43e20898..ceb5211d697 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -480,7 +480,8 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'."
480 (run-hooks 'window-setup-hook)) 480 (run-hooks 'window-setup-hook))
481 (or menubar-bindings-done 481 (or menubar-bindings-done
482 (if (memq window-system '(x w32)) 482 (if (memq window-system '(x w32))
483 (precompute-menubar-bindings))))))) 483 (precompute-menubar-bindings)
484 ))))))
484 485
485;; Precompute the keyboard equivalents in the menu bar items. 486;; Precompute the keyboard equivalents in the menu bar items.
486(defun precompute-menubar-bindings () 487(defun precompute-menubar-bindings ()
@@ -1013,23 +1014,15 @@ where FACE is a valid face specification, as it can be used with
1013 "Display fancy splash screens when Emacs starts." 1014 "Display fancy splash screens when Emacs starts."
1014 (setq fancy-splash-help-echo (startup-echo-area-message)) 1015 (setq fancy-splash-help-echo (startup-echo-area-message))
1015 (switch-to-buffer "GNU Emacs") 1016 (switch-to-buffer "GNU Emacs")
1016 (let ((old-global-map (current-global-map)) 1017 (let ((old-busy-cursor display-busy-cursor)
1017 (old-busy-cursor display-busy-cursor)
1018 (splash-buffer (current-buffer)) 1018 (splash-buffer (current-buffer))
1019 ;; Don't update menu bindings in the following. Since
1020 ;; C-x etc. are not bound in the map installed below,
1021 ;; there wouldn't be any bindings shown otherwise.
1022 (update-menu-bindings nil)
1023 timer) 1019 timer)
1024 (unwind-protect 1020 (unwind-protect
1025 (let ((map (nconc (make-sparse-keymap) 1021 (let ((map (make-sparse-keymap))
1026 '((t . fancy-splash-default-action))))
1027 (show-help-function nil)) 1022 (show-help-function nil))
1028 (use-global-map map) 1023 (use-local-map map)
1029 (use-local-map nil) 1024 (define-key map [t] 'fancy-splash-default-action)
1030 (define-key map [mouse-movement] 'ignore) 1025 (define-key map [mouse-movement] 'ignore)
1031 (define-key map [menu-bar] (lookup-key old-global-map [menu-bar]))
1032 (define-key map [tool-bar] (lookup-key old-global-map [tool-bar]))
1033 (setq cursor-type nil 1026 (setq cursor-type nil
1034 display-busy-cursor nil 1027 display-busy-cursor nil
1035 mode-line-format 1028 mode-line-format
@@ -1040,7 +1033,6 @@ where FACE is a valid face specification, as it can be used with
1040 (recursive-edit)) 1033 (recursive-edit))
1041 (cancel-timer timer) 1034 (cancel-timer timer)
1042 (remove-hook 'pre-command-hook 'fancy-splash-pre-command) 1035 (remove-hook 'pre-command-hook 'fancy-splash-pre-command)
1043 (use-global-map old-global-map)
1044 (setq display-busy-cursor old-busy-cursor) 1036 (setq display-busy-cursor old-busy-cursor)
1045 (kill-buffer splash-buffer)))) 1037 (kill-buffer splash-buffer))))
1046 1038