diff options
| author | Stefan Monnier | 2008-01-04 06:29:12 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-01-04 06:29:12 +0000 |
| commit | 48d33090d0c796fd04b70ddd74ebfa16a94922c9 (patch) | |
| tree | b774bb1218b3a9694ff2a46a1c91acbe4b5543f5 | |
| parent | 3da360a745b3835504e7ac426dfec5f0908dcb3a (diff) | |
| download | emacs-48d33090d0c796fd04b70ddd74ebfa16a94922c9.tar.gz emacs-48d33090d0c796fd04b70ddd74ebfa16a94922c9.zip | |
* erc-ibuffer.el (erc-channel-modes):
* bs.el (bs--sort-by-mode, bs--get-mode-name):
* imenu.el (imenu-add-to-menubar):
* makesum.el (make-command-summary):
* mouse.el (mouse-major-mode-menu, mouse-popup-menubar, mouse-buffer-menu):
* msb.el (msb--mode-menu-cond):
* calc/calc-embed.el (calc-do-embedded):
* emacs-lisp/helper.el (Helper-describe-mode):
* mail/emacsbug.el (report-emacs-bug):
* progmodes/hideshow.el (hs-grok-mode-type):
* textmodes/sgml-mode.el (sgml-mode-facemenu-add-face-function):
* textmodes/table.el (*table--cell-describe-mode):
Pass mode-name through format-mode-line.
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/bs.el | 12 | ||||
| -rw-r--r-- | lisp/calc/calc-embed.el | 6 | ||||
| -rw-r--r-- | lisp/emacs-lisp/helper.el | 9 | ||||
| -rw-r--r-- | lisp/erc/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/erc/erc-ibuffer.el | 6 | ||||
| -rw-r--r-- | lisp/imenu.el | 5 | ||||
| -rw-r--r-- | lisp/mail/emacsbug.el | 6 | ||||
| -rw-r--r-- | lisp/makesum.el | 6 | ||||
| -rw-r--r-- | lisp/mouse.el | 10 | ||||
| -rw-r--r-- | lisp/msb.el | 5 | ||||
| -rw-r--r-- | lisp/progmodes/hideshow.el | 7 | ||||
| -rw-r--r-- | lisp/textmodes/sgml-mode.el | 4 | ||||
| -rw-r--r-- | lisp/textmodes/table.el | 4 |
14 files changed, 63 insertions, 37 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a3a7aaa425b..99bc34cb2be 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,20 @@ | |||
| 1 | 2008-01-04 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-01-04 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * bs.el (bs--sort-by-mode, bs--get-mode-name): | ||
| 4 | * imenu.el (imenu-add-to-menubar): | ||
| 5 | * makesum.el (make-command-summary): | ||
| 6 | * mouse.el (mouse-major-mode-menu, mouse-popup-menubar, mouse-buffer-menu): | ||
| 7 | * msb.el (msb--mode-menu-cond): | ||
| 8 | * calc/calc-embed.el (calc-do-embedded): | ||
| 9 | * emacs-lisp/helper.el (Helper-describe-mode): | ||
| 10 | * mail/emacsbug.el (report-emacs-bug): | ||
| 11 | * progmodes/hideshow.el (hs-grok-mode-type): | ||
| 12 | * textmodes/sgml-mode.el (sgml-mode-facemenu-add-face-function): | ||
| 13 | * textmodes/table.el (*table--cell-describe-mode): | ||
| 14 | Pass mode-name through format-mode-line. | ||
| 15 | |||
| 16 | 2008-01-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 17 | |||
| 3 | * progmodes/ada-xref.el (ada-prj-find-prj-file): | 18 | * progmodes/ada-xref.el (ada-prj-find-prj-file): |
| 4 | * progmodes/ada-mode.el (comment-region): | 19 | * progmodes/ada-mode.el (comment-region): |
| 5 | * calendar/todo-mode.el (todo-insert-item): | 20 | * calendar/todo-mode.el (todo-insert-item): |
diff --git a/lisp/bs.el b/lisp/bs.el index 4eef017129d..5c380c2e892 100644 --- a/lisp/bs.el +++ b/lisp/bs.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; bs.el --- menu for selecting and displaying buffers | 1 | ;;; bs.el --- menu for selecting and displaying buffers |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | ;; Author: Olaf Sylvester <Olaf.Sylvester@netsurf.de> | 5 | ;; Author: Olaf Sylvester <Olaf.Sylvester@netsurf.de> |
| 6 | ;; Maintainer: Olaf Sylvester <Olaf.Sylvester@netsurf.de> | 6 | ;; Maintainer: Olaf Sylvester <Olaf.Sylvester@netsurf.de> |
| 7 | ;; Keywords: convenience | 7 | ;; Keywords: convenience |
| @@ -369,9 +369,9 @@ A value of `always' means to show buffer regardless of the configuration.") | |||
| 369 | 369 | ||
| 370 | (defun bs--sort-by-mode (b1 b2) | 370 | (defun bs--sort-by-mode (b1 b2) |
| 371 | "Compare buffers B1 and B2 by mode name." | 371 | "Compare buffers B1 and B2 by mode name." |
| 372 | (save-excursion | 372 | (save-current-buffer |
| 373 | (string< (progn (set-buffer b1) (format "%s" mode-name)) | 373 | (string< (progn (set-buffer b1) (format-mode-line mode-name nil nil b1)) |
| 374 | (progn (set-buffer b2) (format "%s" mode-name))))) | 374 | (progn (set-buffer b2) (format-mode-line mode-name nil nil b2))))) |
| 375 | 375 | ||
| 376 | (defun bs--sort-by-size (b1 b2) | 376 | (defun bs--sort-by-size (b1 b2) |
| 377 | "Compare buffers B1 and B2 by buffer size." | 377 | "Compare buffers B1 and B2 by buffer size." |
| @@ -1331,7 +1331,7 @@ ALL-BUFFERS is the list of buffers appearing in Buffer Selection Menu." | |||
| 1331 | "Return the name of mode of current buffer for Buffer Selection Menu. | 1331 | "Return the name of mode of current buffer for Buffer Selection Menu. |
| 1332 | START-BUFFER is the buffer where we started buffer selection. | 1332 | START-BUFFER is the buffer where we started buffer selection. |
| 1333 | ALL-BUFFERS is the list of buffers appearing in Buffer Selection Menu." | 1333 | ALL-BUFFERS is the list of buffers appearing in Buffer Selection Menu." |
| 1334 | mode-name) | 1334 | (format-mode-line mode-name nil nil buffer)) |
| 1335 | 1335 | ||
| 1336 | (defun bs--get-file-name (start-buffer all-buffers) | 1336 | (defun bs--get-file-name (start-buffer all-buffers) |
| 1337 | "Return string for column 'File' in Buffer Selection Menu. | 1337 | "Return string for column 'File' in Buffer Selection Menu. |
| @@ -1480,5 +1480,5 @@ name of buffer configuration." | |||
| 1480 | ;; Now provide feature bs | 1480 | ;; Now provide feature bs |
| 1481 | (provide 'bs) | 1481 | (provide 'bs) |
| 1482 | 1482 | ||
| 1483 | ;;; arch-tag: c0d9ab34-bf06-4368-ae9d-af88878e6802 | 1483 | ;; arch-tag: c0d9ab34-bf06-4368-ae9d-af88878e6802 |
| 1484 | ;;; bs.el ends here | 1484 | ;;; bs.el ends here |
diff --git a/lisp/calc/calc-embed.el b/lisp/calc/calc-embed.el index ff2dc3e5d29..51cdd3f9174 100644 --- a/lisp/calc/calc-embed.el +++ b/lisp/calc/calc-embed.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; calc-embed.el --- embed Calc in a buffer | 1 | ;;; calc-embed.el --- embed Calc in a buffer |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1990, 1991, 1992, 1993, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: David Gillespie <daveg@synaptics.com> | 6 | ;; Author: David Gillespie <daveg@synaptics.com> |
| 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> | 7 | ;; Maintainer: Jay Belanger <jay.p.belanger@gmail.com> |
| @@ -254,7 +254,7 @@ | |||
| 254 | (set-buffer-modified-p (buffer-modified-p)) | 254 | (set-buffer-modified-p (buffer-modified-p)) |
| 255 | (calc-embedded-restore-original-modes) | 255 | (calc-embedded-restore-original-modes) |
| 256 | (or calc-embedded-quiet | 256 | (or calc-embedded-quiet |
| 257 | (message "Back to %s mode" mode-name)))) | 257 | (message "Back to %s mode" (format-mode-line mode-name))))) |
| 258 | 258 | ||
| 259 | (t | 259 | (t |
| 260 | (if (buffer-name (aref calc-embedded-info 0)) | 260 | (if (buffer-name (aref calc-embedded-info 0)) |
| @@ -1374,5 +1374,5 @@ The command \\[yank] can retrieve it from there." | |||
| 1374 | 1374 | ||
| 1375 | (provide 'calc-embed) | 1375 | (provide 'calc-embed) |
| 1376 | 1376 | ||
| 1377 | ;;; arch-tag: 1b8f311e-fba1-40d3-b8c3-1d6f68fd26fc | 1377 | ;; arch-tag: 1b8f311e-fba1-40d3-b8c3-1d6f68fd26fc |
| 1378 | ;;; calc-embed.el ends here | 1378 | ;;; calc-embed.el ends here |
diff --git a/lisp/emacs-lisp/helper.el b/lisp/emacs-lisp/helper.el index a5459a5db83..abcf6e89596 100644 --- a/lisp/emacs-lisp/helper.el +++ b/lisp/emacs-lisp/helper.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; helper.el --- utility help package supporting help in electric modes | 1 | ;;; helper.el --- utility help package supporting help in electric modes |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 2001, 2002, 2003, 2004, 2005, | 3 | ;; Copyright (C) 1985, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: K. Shane Hartman | 6 | ;; Author: K. Shane Hartman |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -120,10 +120,9 @@ | |||
| 120 | (defun Helper-describe-mode () | 120 | (defun Helper-describe-mode () |
| 121 | "Describe the current mode." | 121 | "Describe the current mode." |
| 122 | (interactive) | 122 | (interactive) |
| 123 | (let ((name mode-name) | 123 | (let ((name (format-mode-line mode-name)) |
| 124 | (documentation (documentation major-mode))) | 124 | (documentation (documentation major-mode))) |
| 125 | (save-excursion | 125 | (with-current-buffer (get-buffer-create "*Help*") |
| 126 | (set-buffer (get-buffer-create "*Help*")) | ||
| 127 | (setq buffer-read-only nil) | 126 | (setq buffer-read-only nil) |
| 128 | (erase-buffer) | 127 | (erase-buffer) |
| 129 | (insert name " Mode\n" documentation) | 128 | (insert name " Mode\n" documentation) |
| @@ -158,5 +157,5 @@ | |||
| 158 | 157 | ||
| 159 | (provide 'helper) | 158 | (provide 'helper) |
| 160 | 159 | ||
| 161 | ;;; arch-tag: a0984577-d3e9-4124-ae0d-c46fe740f6a9 | 160 | ;; arch-tag: a0984577-d3e9-4124-ae0d-c46fe740f6a9 |
| 162 | ;;; helper.el ends here | 161 | ;;; helper.el ends here |
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog index cdb64e87d0d..30e5a644692 100644 --- a/lisp/erc/ChangeLog +++ b/lisp/erc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-01-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * erc-ibuffer.el (erc-channel-modes): | ||
| 4 | Pass mode-name through format-mode-line | ||
| 5 | |||
| 1 | 2007-12-09 Michael Olson <mwolson@gnu.org> | 6 | 2007-12-09 Michael Olson <mwolson@gnu.org> |
| 2 | 7 | ||
| 3 | * erc-services.el (erc-nickserv-alist): Fix regexps for GRnet. | 8 | * erc-services.el (erc-nickserv-alist): Fix regexps for GRnet. |
diff --git a/lisp/erc/erc-ibuffer.el b/lisp/erc/erc-ibuffer.el index 76c2d2b18b1..14ac36540a9 100644 --- a/lisp/erc/erc-ibuffer.el +++ b/lisp/erc/erc-ibuffer.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; erc-ibuffer.el --- ibuffer integration with ERC | 1 | ;;; erc-ibuffer.el --- ibuffer integration with ERC |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2002, 2004, 2006, 2007 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2002, 2004, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Mario Lang <mlang@delysid.org> | 5 | ;; Author: Mario Lang <mlang@delysid.org> |
| 6 | ;; Keywords: comm | 6 | ;; Keywords: comm |
| @@ -158,8 +158,8 @@ | |||
| 158 | (format "l %d" erc-channel-user-limit) | 158 | (format "l %d" erc-channel-user-limit) |
| 159 | "") | 159 | "") |
| 160 | ")") | 160 | ")") |
| 161 | (if (not (eq major-mode 'erc-mode)) | 161 | (if (not (derived-mode-p 'erc-mode)) |
| 162 | mode-name | 162 | (format-mode-line mode-name nil nil (current-buffer)) |
| 163 | ""))) | 163 | ""))) |
| 164 | 164 | ||
| 165 | (define-ibuffer-column erc-nick (:name "Nick") | 165 | (define-ibuffer-column erc-nick (:name "Nick") |
diff --git a/lisp/imenu.el b/lisp/imenu.el index 6c1de967e66..401fc3ea2d2 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; imenu.el --- framework for mode-specific buffer indexes | 1 | ;;; imenu.el --- framework for mode-specific buffer indexes |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Ake Stenhoff <etxaksf@aom.ericsson.se> | 6 | ;; Author: Ake Stenhoff <etxaksf@aom.ericsson.se> |
| 7 | ;; Lars Lindberg <lli@sypro.cap.se> | 7 | ;; Lars Lindberg <lli@sypro.cap.se> |
| @@ -954,7 +954,8 @@ See the command `imenu' for more information." | |||
| 954 | `(menu-item ,name ,(make-sparse-keymap "Imenu"))) | 954 | `(menu-item ,name ,(make-sparse-keymap "Imenu"))) |
| 955 | (use-local-map newmap) | 955 | (use-local-map newmap) |
| 956 | (add-hook 'menu-bar-update-hook 'imenu-update-menubar)) | 956 | (add-hook 'menu-bar-update-hook 'imenu-update-menubar)) |
| 957 | (error "The mode `%s' does not support Imenu" mode-name))) | 957 | (error "The mode `%s' does not support Imenu" |
| 958 | (format-mode-line mode-name)))) | ||
| 958 | 959 | ||
| 959 | ;;;###autoload | 960 | ;;;###autoload |
| 960 | (defun imenu-add-menubar-index () | 961 | (defun imenu-add-menubar-index () |
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index eb96ef07612..0221eabf87f 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; emacsbug.el --- command to report Emacs bugs to appropriate mailing list | 1 | ;;; emacsbug.el --- command to report Emacs bugs to appropriate mailing list |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 1994, 1997, 1998, 2000, 2001, 2002, 2003, | 3 | ;; Copyright (C) 1985, 1994, 1997, 1998, 2000, 2001, 2002, 2003, |
| 4 | ;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: K. Shane Hartman | 6 | ;; Author: K. Shane Hartman |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -168,7 +168,9 @@ usually do not have translators to read other languages for them.\n\n") | |||
| 168 | default-enable-multibyte-characters)) | 168 | default-enable-multibyte-characters)) |
| 169 | (insert "\n") | 169 | (insert "\n") |
| 170 | (insert (format "Major mode: %s\n" | 170 | (insert (format "Major mode: %s\n" |
| 171 | (buffer-local-value 'mode-name from-buffer))) | 171 | (format-mode-line |
| 172 | (buffer-local-value 'mode-name from-buffer) | ||
| 173 | nil nil from-buffer))) | ||
| 172 | (insert "\n") | 174 | (insert "\n") |
| 173 | (insert "Minor modes in effect:\n") | 175 | (insert "Minor modes in effect:\n") |
| 174 | (dolist (mode minor-mode-list) | 176 | (dolist (mode minor-mode-list) |
diff --git a/lisp/makesum.el b/lisp/makesum.el index d3eaa18008f..9427fb5b955 100644 --- a/lisp/makesum.el +++ b/lisp/makesum.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; makesum.el --- generate key binding summary for Emacs | 1 | ;;; makesum.el --- generate key binding summary for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985, 2001, 2002, 2003, 2004, 2005, | 3 | ;; Copyright (C) 1985, 2001, 2002, 2003, 2004, 2005, |
| 4 | ;; 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| 7 | ;; Keywords: help | 7 | ;; Keywords: help |
| @@ -65,7 +65,7 @@ Previous contents of that buffer are killed first." | |||
| 65 | (if (re-search-forward "^Local Bindings:" nil t) | 65 | (if (re-search-forward "^Local Bindings:" nil t) |
| 66 | (progn | 66 | (progn |
| 67 | (forward-char -1) | 67 | (forward-char -1) |
| 68 | (insert " for " cur-mode " Mode") | 68 | (insert " for " (format-mode-line cur-mode) " Mode") |
| 69 | (while (search-forward "??\n" nil t) | 69 | (while (search-forward "??\n" nil t) |
| 70 | (delete-region (point) | 70 | (delete-region (point) |
| 71 | (progn | 71 | (progn |
| @@ -114,5 +114,5 @@ Previous contents of that buffer are killed first." | |||
| 114 | 114 | ||
| 115 | (provide 'makesum) | 115 | (provide 'makesum) |
| 116 | 116 | ||
| 117 | ;;; arch-tag: c2383336-fc89-46ad-8110-ded42bffaee3 | 117 | ;; arch-tag: c2383336-fc89-46ad-8110-ded42bffaee3 |
| 118 | ;;; makesum.el ends here | 118 | ;;; makesum.el ends here |
diff --git a/lisp/mouse.el b/lisp/mouse.el index 8802aa98317..80f4999355f 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; mouse.el --- window system-independent mouse support | 1 | ;;; mouse.el --- window system-independent mouse support |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 1995, 1999, 2000, 2001, 2002, 2003, | 3 | ;; Copyright (C) 1993, 1994, 1995, 1999, 2000, 2001, 2002, 2003, |
| 4 | ;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| 7 | ;; Keywords: hardware, mouse | 7 | ;; Keywords: hardware, mouse |
| @@ -192,7 +192,8 @@ Default to the Edit menu if the major mode doesn't define a menu." | |||
| 192 | ;; Make a keymap in which our last command leads to a menu or | 192 | ;; Make a keymap in which our last command leads to a menu or |
| 193 | ;; default to the edit menu. | 193 | ;; default to the edit menu. |
| 194 | (newmap (if ancestor | 194 | (newmap (if ancestor |
| 195 | (make-sparse-keymap (concat mode-name " Mode")) | 195 | (make-sparse-keymap (concat (format-mode-line mode-name) |
| 196 | " Mode")) | ||
| 196 | menu-bar-edit-menu))) | 197 | menu-bar-edit-menu))) |
| 197 | (if ancestor | 198 | (if ancestor |
| 198 | ;; Make our menu inherit from the desired keymap which we want | 199 | ;; Make our menu inherit from the desired keymap which we want |
| @@ -272,7 +273,8 @@ not it is actually displayed." | |||
| 272 | (or (null local-menu) | 273 | (or (null local-menu) |
| 273 | (stringp local-title-or-map) | 274 | (stringp local-title-or-map) |
| 274 | (setq local-menu (cons 'keymap | 275 | (setq local-menu (cons 'keymap |
| 275 | (cons (concat mode-name " Mode Menu") | 276 | (cons (concat (formal-mode-line mode-name) |
| 277 | " Mode Menu") | ||
| 276 | (cdr local-menu))))) | 278 | (cdr local-menu))))) |
| 277 | (or (stringp global-title-or-map) | 279 | (or (stringp global-title-or-map) |
| 278 | (setq global-menu (cons 'keymap | 280 | (setq global-menu (cons 'keymap |
| @@ -1861,7 +1863,7 @@ and selects that window." | |||
| 1861 | (setq elt (list adjusted-major-mode | 1863 | (setq elt (list adjusted-major-mode |
| 1862 | (if (stringp adjusted-major-mode) | 1864 | (if (stringp adjusted-major-mode) |
| 1863 | adjusted-major-mode | 1865 | adjusted-major-mode |
| 1864 | mode-name)) | 1866 | (format-mode-line mode-name nil nil buf))) |
| 1865 | split-by-major-mode (cons elt split-by-major-mode))) | 1867 | split-by-major-mode (cons elt split-by-major-mode))) |
| 1866 | (or (memq buf (cdr (cdr elt))) | 1868 | (or (memq buf (cdr (cdr elt))) |
| 1867 | (setcdr (cdr elt) (cons buf (cdr (cdr elt)))))))) | 1869 | (setcdr (cdr elt) (cons buf (cdr (cdr elt)))))))) |
diff --git a/lisp/msb.el b/lisp/msb.el index cc5a0adcded..a0312064f99 100644 --- a/lisp/msb.el +++ b/lisp/msb.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; msb.el --- customizable buffer-selection with multiple menus | 1 | ;;; msb.el --- customizable buffer-selection with multiple menus |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, | 3 | ;; Copyright (C) 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, |
| 4 | ;; 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Lars Lindberg <lars.lindberg@home.se> | 6 | ;; Author: Lars Lindberg <lars.lindberg@home.se> |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -829,7 +829,8 @@ results in | |||
| 829 | (with-current-buffer buffer | 829 | (with-current-buffer buffer |
| 830 | (when (and (not (msb-invisible-buffer-p)) | 830 | (when (and (not (msb-invisible-buffer-p)) |
| 831 | (not (assq major-mode mode-list))) | 831 | (not (assq major-mode mode-list))) |
| 832 | (push (cons major-mode mode-name) | 832 | (push (cons major-mode |
| 833 | (format-mode-line mode-name nil nil buffer)) | ||
| 833 | mode-list)))) | 834 | mode-list)))) |
| 834 | mode-list) | 835 | mode-list) |
| 835 | (lambda (item1 item2) | 836 | (lambda (item1 item2) |
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index 85d26427a3f..5a784b159d3 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; hideshow.el --- minor mode cmds to selectively display code/comment blocks | 1 | ;;; hideshow.el --- minor mode cmds to selectively display code/comment blocks |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 | 3 | ;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 |
| 4 | ;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Thien-Thi Nguyen <ttn@gnu.org> | 6 | ;; Author: Thien-Thi Nguyen <ttn@gnu.org> |
| 7 | ;; Dan Nicolaescu <dann@ics.uci.edu> | 7 | ;; Dan Nicolaescu <dann@ics.uci.edu> |
| @@ -632,7 +632,8 @@ function; and adjust-block-beginning function." | |||
| 632 | hs-forward-sexp-func (or (nth 4 lookup) 'forward-sexp) | 632 | hs-forward-sexp-func (or (nth 4 lookup) 'forward-sexp) |
| 633 | hs-adjust-block-beginning (nth 5 lookup))) | 633 | hs-adjust-block-beginning (nth 5 lookup))) |
| 634 | (setq hs-minor-mode nil) | 634 | (setq hs-minor-mode nil) |
| 635 | (error "%s Mode doesn't support Hideshow Minor Mode" mode-name))) | 635 | (error "%s Mode doesn't support Hideshow Minor Mode" |
| 636 | (format-mode-line mode-name)))) | ||
| 636 | 637 | ||
| 637 | (defun hs-find-block-beginning () | 638 | (defun hs-find-block-beginning () |
| 638 | "Reposition point at block-start. | 639 | "Reposition point at block-start. |
| @@ -965,5 +966,5 @@ Key bindings: | |||
| 965 | 966 | ||
| 966 | (provide 'hideshow) | 967 | (provide 'hideshow) |
| 967 | 968 | ||
| 968 | ;;; arch-tag: 378b6852-e82a-466a-aee8-d9c73859a65e | 969 | ;; arch-tag: 378b6852-e82a-466a-aee8-d9c73859a65e |
| 969 | ;;; hideshow.el ends here | 970 | ;;; hideshow.el ends here |
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el index 245ffc47908..0c361463022 100644 --- a/lisp/textmodes/sgml-mode.el +++ b/lisp/textmodes/sgml-mode.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; sgml-mode.el --- SGML- and HTML-editing modes -*- coding: iso-2022-7bit -*- | 1 | ;;; sgml-mode.el --- SGML- and HTML-editing modes -*- coding: iso-2022-7bit -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 1995, 1996, 1998, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1992, 1995, 1996, 1998, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: James Clark <jjc@jclark.com> | 6 | ;; Author: James Clark <jjc@jclark.com> |
| 7 | ;; Maintainer: FSF | 7 | ;; Maintainer: FSF |
| @@ -397,7 +397,7 @@ a DOCTYPE or an XML declaration." | |||
| 397 | (setq face (funcall skeleton-transformation-function face)) | 397 | (setq face (funcall skeleton-transformation-function face)) |
| 398 | (setq facemenu-end-add-face (concat "</" face ">")) | 398 | (setq facemenu-end-add-face (concat "</" face ">")) |
| 399 | (concat "<" face ">")) | 399 | (concat "<" face ">")) |
| 400 | (error "Face not configured for %s mode" mode-name))) | 400 | (error "Face not configured for %s mode" (format-mode-line mode-name)))) |
| 401 | 401 | ||
| 402 | (defun sgml-fill-nobreak () | 402 | (defun sgml-fill-nobreak () |
| 403 | ;; Don't break between a tag name and its first argument. | 403 | ;; Don't break between a tag name and its first argument. |
diff --git a/lisp/textmodes/table.el b/lisp/textmodes/table.el index 5e8b8c7cbc2..2aea24cede5 100644 --- a/lisp/textmodes/table.el +++ b/lisp/textmodes/table.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; table.el --- create and edit WYSIWYG text based embedded tables | 1 | ;;; table.el --- create and edit WYSIWYG text based embedded tables |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 2000, 2001, 2002, 2003, 2004, |
| 4 | ;; 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Keywords: wp, convenience | 6 | ;; Keywords: wp, convenience |
| 7 | ;; Author: Takaaki Ota <Takaaki.Ota@am.sony.com> | 7 | ;; Author: Takaaki Ota <Takaaki.Ota@am.sony.com> |
| @@ -4061,7 +4061,7 @@ converts a table into plain text without frames. It is a companion to | |||
| 4061 | (call-interactively 'describe-mode) | 4061 | (call-interactively 'describe-mode) |
| 4062 | (with-output-to-temp-buffer "*Help*" | 4062 | (with-output-to-temp-buffer "*Help*" |
| 4063 | (princ "Table mode: (in ") | 4063 | (princ "Table mode: (in ") |
| 4064 | (princ mode-name) | 4064 | (princ (format-mode-line mode-name nil nil (current-buffer))) |
| 4065 | (princ " mode) | 4065 | (princ " mode) |
| 4066 | 4066 | ||
| 4067 | Table is not a mode technically. You can regard it as a pseudo mode | 4067 | Table is not a mode technically. You can regard it as a pseudo mode |