diff options
| author | Stefan Monnier | 2008-01-04 06:18:31 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-01-04 06:18:31 +0000 |
| commit | 3da360a745b3835504e7ac426dfec5f0908dcb3a (patch) | |
| tree | ffbf81ede7228692430a2deee93a2fb58f52c22d | |
| parent | a5832373fdb7016415239fadf524dc45c953acc5 (diff) | |
| download | emacs-3da360a745b3835504e7ac426dfec5f0908dcb3a.tar.gz emacs-3da360a745b3835504e7ac426dfec5f0908dcb3a.zip | |
* progmodes/ada-xref.el (ada-prj-find-prj-file):
* progmodes/ada-mode.el (comment-region):
* calendar/todo-mode.el (todo-insert-item):
* bookmark.el (bookmark-buffer-name): Test major-mode rather than mode-name.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/bookmark.el | 6 | ||||
| -rw-r--r-- | lisp/calendar/todo-mode.el | 8 | ||||
| -rw-r--r-- | lisp/ido.el | 23 | ||||
| -rw-r--r-- | lisp/iswitchb.el | 17 | ||||
| -rw-r--r-- | lisp/progmodes/ada-mode.el | 7 | ||||
| -rw-r--r-- | lisp/progmodes/ada-xref.el | 8 |
7 files changed, 40 insertions, 36 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 560fa9e4b77..a3a7aaa425b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-01-04 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * progmodes/ada-xref.el (ada-prj-find-prj-file): | ||
| 4 | * progmodes/ada-mode.el (comment-region): | ||
| 5 | * calendar/todo-mode.el (todo-insert-item): | ||
| 6 | * bookmark.el (bookmark-buffer-name): Test major-mode rather than mode-name. | ||
| 7 | |||
| 1 | 2008-01-04 Richard Stallman <rms@gnu.org> | 8 | 2008-01-04 Richard Stallman <rms@gnu.org> |
| 2 | 9 | ||
| 3 | * emacs-lisp/bytecomp.el (byte-compile-from-buffer): | 10 | * emacs-lisp/bytecomp.el (byte-compile-from-buffer): |
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 49749f4e465..0968ff01411 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; bookmark.el --- set bookmarks, maybe annotate them, jump to them later | 1 | ;;; bookmark.el --- set bookmarks, maybe annotate them, jump to them later |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 2001, 2002, 2003, | 3 | ;; Copyright (C) 1993, 1994, 1995, 1996, 1997, 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: Karl Fogel <kfogel@red-bean.com> | 6 | ;; Author: Karl Fogel <kfogel@red-bean.com> |
| 7 | ;; Maintainer: Karl Fogel <kfogel@red-bean.com> | 7 | ;; Maintainer: Karl Fogel <kfogel@red-bean.com> |
| @@ -978,7 +978,7 @@ The directory part of the file name is not used." | |||
| 978 | In Info, return the current node." | 978 | In Info, return the current node." |
| 979 | (cond | 979 | (cond |
| 980 | ;; Are we in Info? | 980 | ;; Are we in Info? |
| 981 | ((string-equal mode-name "Info") Info-current-node) | 981 | ((derived-mode-p 'Info-mode) Info-current-node) |
| 982 | ;; Or are we a file? | 982 | ;; Or are we a file? |
| 983 | (buffer-file-name (file-name-nondirectory buffer-file-name)) | 983 | (buffer-file-name (file-name-nondirectory buffer-file-name)) |
| 984 | ;; Or are we a directory? | 984 | ;; Or are we a directory? |
| @@ -2227,5 +2227,5 @@ This also runs `bookmark-exit-hook'." | |||
| 2227 | 2227 | ||
| 2228 | (provide 'bookmark) | 2228 | (provide 'bookmark) |
| 2229 | 2229 | ||
| 2230 | ;;; arch-tag: 139f519a-dd0c-4b8d-8b5d-f9fcf53ca8f6 | 2230 | ;; arch-tag: 139f519a-dd0c-4b8d-8b5d-f9fcf53ca8f6 |
| 2231 | ;;; bookmark.el ends here | 2231 | ;;; bookmark.el ends here |
diff --git a/lisp/calendar/todo-mode.el b/lisp/calendar/todo-mode.el index e3db7e46407..1727ed09d82 100644 --- a/lisp/calendar/todo-mode.el +++ b/lisp/calendar/todo-mode.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; todo-mode.el --- major mode for editing TODO list files | 1 | ;;; todo-mode.el --- major mode for editing TODO list files |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1997, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007 | 3 | ;; Copyright (C) 1997, 1999, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: Oliver Seidel <os10000@seidel-space.de> | 6 | ;; Author: Oliver Seidel <os10000@seidel-space.de> |
| @@ -592,7 +592,7 @@ With a prefix argument solicit the category, otherwise use the current | |||
| 592 | category." | 592 | category." |
| 593 | (interactive "P") | 593 | (interactive "P") |
| 594 | (save-excursion | 594 | (save-excursion |
| 595 | (if (not (string-equal mode-name "TODO")) (todo-show)) | 595 | (if (not (derived-mode-p 'todo-mode)) (todo-show)) |
| 596 | (let* ((new-item (concat todo-prefix " " | 596 | (let* ((new-item (concat todo-prefix " " |
| 597 | (read-from-minibuffer | 597 | (read-from-minibuffer |
| 598 | "New TODO entry: " | 598 | "New TODO entry: " |
| @@ -615,7 +615,7 @@ category." | |||
| 615 | "Insert new TODO list entry under the cursor." | 615 | "Insert new TODO list entry under the cursor." |
| 616 | (interactive "") | 616 | (interactive "") |
| 617 | (save-excursion | 617 | (save-excursion |
| 618 | (if (not (string-equal mode-name "TODO")) (todo-show)) | 618 | (if (not (derived-mode-p 'todo-mode)) (todo-show)) |
| 619 | (let* ((new-item (concat todo-prefix " " | 619 | (let* ((new-item (concat todo-prefix " " |
| 620 | (read-from-minibuffer | 620 | (read-from-minibuffer |
| 621 | "New TODO entry: " | 621 | "New TODO entry: " |
| @@ -959,5 +959,5 @@ Number of entries for each category is given by `todo-print-priorities'." | |||
| 959 | 959 | ||
| 960 | (provide 'todo-mode) | 960 | (provide 'todo-mode) |
| 961 | 961 | ||
| 962 | ;;; arch-tag: 6fd91be5-776e-4464-a109-da4ea0e4e497 | 962 | ;; arch-tag: 6fd91be5-776e-4464-a109-da4ea0e4e497 |
| 963 | ;;; todo-mode.el ends here | 963 | ;;; todo-mode.el ends here |
diff --git a/lisp/ido.el b/lisp/ido.el index 4658a887716..750eb6e6dfc 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; ido.el --- interactively do things with buffers and files. | 1 | ;;; ido.el --- interactively do things with buffers and files. |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, | 3 | ;; Copyright (C) 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: Kim F. Storm <storm@cua.dk> | 6 | ;; Author: Kim F. Storm <storm@cua.dk> |
| 7 | ;; Based on: iswitchb by Stephen Eglen <stephen@cns.ed.ac.uk> | 7 | ;; Based on: iswitchb by Stephen Eglen <stephen@cns.ed.ac.uk> |
| @@ -436,17 +436,16 @@ in merged file and directory lists." | |||
| 436 | :type '(repeat (choice regexp function)) | 436 | :type '(repeat (choice regexp function)) |
| 437 | :group 'ido) | 437 | :group 'ido) |
| 438 | 438 | ||
| 439 | ;;; Examples for setting the value of ido-ignore-buffers | 439 | ;; Examples for setting the value of ido-ignore-buffers |
| 440 | ;(defun ido-ignore-c-mode (name) | 440 | ;;(defun ido-ignore-c-mode (name) |
| 441 | ; "Ignore all c mode buffers -- example function for ido." | 441 | ;; "Ignore all c mode buffers -- example function for ido." |
| 442 | ; (save-excursion | 442 | ;; (with-current-buffer name |
| 443 | ; (set-buffer name) | 443 | ;; (derived-mode-p 'c-mode))) |
| 444 | ; (string-match "^C$" mode-name))) | 444 | ;; |
| 445 | ; | 445 | ;;(setq ido-ignore-buffers '("^ " ido-ignore-c-mode)) |
| 446 | ;(setq ido-ignore-buffers '("^ " ido-ignore-c-mode)) | ||
| 447 | 446 | ||
| 448 | ;;; Examples for setting the value of ido-ignore-files | 447 | ;; Examples for setting the value of ido-ignore-files |
| 449 | ;(setq ido-ignore-files '("^ " "\\.c$" "\\.h$")) | 448 | ;;(setq ido-ignore-files '("^ " "\\.c\\'" "\\.h\\'")) |
| 450 | 449 | ||
| 451 | (defcustom ido-default-file-method 'raise-frame | 450 | (defcustom ido-default-file-method 'raise-frame |
| 452 | "*How to visit a new file when using `ido-find-file'. | 451 | "*How to visit a new file when using `ido-find-file'. |
| @@ -4655,5 +4654,5 @@ DEF, if non-nil, is the default value." | |||
| 4655 | (ido-read-internal 'list prompt hist def require-match initial-input))) | 4654 | (ido-read-internal 'list prompt hist def require-match initial-input))) |
| 4656 | 4655 | ||
| 4657 | 4656 | ||
| 4658 | ;;; arch-tag: b63a3500-1735-41bd-8a01-05373f0864da | 4657 | ;; arch-tag: b63a3500-1735-41bd-8a01-05373f0864da |
| 4659 | ;;; ido.el ends here | 4658 | ;;; ido.el ends here |
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index 792e610fa4a..c259edcc954 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; iswitchb.el --- switch between buffers using substrings | 1 | ;;; iswitchb.el --- switch between buffers using substrings |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1996, 1997, 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 | ;; Author: Stephen Eglen <stephen@gnu.org> | 6 | ;; Author: Stephen Eglen <stephen@gnu.org> |
| 7 | ;; Maintainer: Stephen Eglen <stephen@gnu.org> | 7 | ;; Maintainer: Stephen Eglen <stephen@gnu.org> |
| @@ -311,15 +311,14 @@ window with completion alternatives, or `iswitchb-next-match' or | |||
| 311 | :type 'hook | 311 | :type 'hook |
| 312 | :group 'iswitchb) | 312 | :group 'iswitchb) |
| 313 | 313 | ||
| 314 | ;;; Examples for setting the value of iswitchb-buffer-ignore | 314 | ;; Examples for setting the value of iswitchb-buffer-ignore |
| 315 | ;(defun iswitchb-ignore-c-mode (name) | 315 | ;;(defun iswitchb-ignore-c-mode (name) |
| 316 | ; "Ignore all c mode buffers -- example function for iswitchb." | 316 | ;; "Ignore all c mode buffers -- example function for iswitchb." |
| 317 | ; (save-excursion | 317 | ;; (with-current-buffer name |
| 318 | ; (set-buffer name) | 318 | ;; (derived-mode-p 'c-mode))) |
| 319 | ; (string-match "^C$" mode-name))) | ||
| 320 | 319 | ||
| 321 | ;(setq iswitchb-buffer-ignore '("^ " iswitchb-ignore-c-mode)) | 320 | ;;(setq iswitchb-buffer-ignore '("^ " iswitchb-ignore-c-mode)) |
| 322 | ;(setq iswitchb-buffer-ignore '("^ " "\\.c$" "\\.h$")) | 321 | ;;(setq iswitchb-buffer-ignore '("^ " "\\.c\\'" "\\.h\\'")) |
| 323 | 322 | ||
| 324 | (defcustom iswitchb-default-method 'always-frame | 323 | (defcustom iswitchb-default-method 'always-frame |
| 325 | "*How to switch to new buffer when using `iswitchb-buffer'. | 324 | "*How to switch to new buffer when using `iswitchb-buffer'. |
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el index 5910ebf3f28..2c3acdda176 100644 --- a/lisp/progmodes/ada-mode.el +++ b/lisp/progmodes/ada-mode.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; ada-mode.el --- major-mode for editing Ada sources | 1 | ;;; ada-mode.el --- major-mode for editing Ada sources |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | 3 | ;; Copyright (C) 1994, 1995, 1997, 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 | 5 | ||
| 6 | ;; Author: Rolf Ebert <ebert@inf.enst.fr> | 6 | ;; Author: Rolf Ebert <ebert@inf.enst.fr> |
| 7 | ;; Markus Heritsch <Markus.Heritsch@studbox.uni-stuttgart.de> | 7 | ;; Markus Heritsch <Markus.Heritsch@studbox.uni-stuttgart.de> |
| @@ -4811,10 +4811,9 @@ Moves to 'begin' if in a declarative part." | |||
| 4811 | ;; ------------------------------------------------------- | 4811 | ;; ------------------------------------------------------- |
| 4812 | 4812 | ||
| 4813 | (defadvice comment-region (before ada-uncomment-anywhere disable) | 4813 | (defadvice comment-region (before ada-uncomment-anywhere disable) |
| 4814 | (if (and arg | 4814 | (if (and (consp arg) ;; a prefix with \C-u is of the form '(4), whereas |
| 4815 | (listp arg) ;; a prefix with \C-u is of the form '(4), whereas | ||
| 4816 | ;; \C-u 2 sets arg to '2' (fixed by S.Leake) | 4815 | ;; \C-u 2 sets arg to '2' (fixed by S.Leake) |
| 4817 | (string= mode-name "Ada")) | 4816 | (derived-mode-p 'ada-mode)) |
| 4818 | (save-excursion | 4817 | (save-excursion |
| 4819 | (let ((cs (concat "^[ \t]*" (regexp-quote comment-start)))) | 4818 | (let ((cs (concat "^[ \t]*" (regexp-quote comment-start)))) |
| 4820 | (goto-char beg) | 4819 | (goto-char beg) |
diff --git a/lisp/progmodes/ada-xref.el b/lisp/progmodes/ada-xref.el index 00be89553a7..f9b5c026a4e 100644 --- a/lisp/progmodes/ada-xref.el +++ b/lisp/progmodes/ada-xref.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;; ada-xref.el --- for lookup and completion in Ada mode | 1 | ;; ada-xref.el --- for lookup and completion in Ada mode |
| 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: Markus Heritsch <Markus.Heritsch@studbox.uni-stuttgart.de> | 6 | ;; Author: Markus Heritsch <Markus.Heritsch@studbox.uni-stuttgart.de> |
| 7 | ;; Rolf Ebert <ebert@inf.enst.fr> | 7 | ;; Rolf Ebert <ebert@inf.enst.fr> |
| @@ -648,8 +648,8 @@ is non-nil, prompt the user to select one. If none are found, return | |||
| 648 | 648 | ||
| 649 | (let (selected) | 649 | (let (selected) |
| 650 | 650 | ||
| 651 | (if (or (not (string= mode-name "Ada")) | 651 | (if (not (and (derived-mode-p 'ada-mode) |
| 652 | (not (buffer-file-name))) | 652 | buffer-file-name)) |
| 653 | 653 | ||
| 654 | ;; Not in an Ada buffer, or current buffer not associated | 654 | ;; Not in an Ada buffer, or current buffer not associated |
| 655 | ;; with a file (for instance an emerge buffer) | 655 | ;; with a file (for instance an emerge buffer) |
| @@ -2310,5 +2310,5 @@ For instance, it creates the gnat-specific menus, sets some hooks for | |||
| 2310 | 2310 | ||
| 2311 | (provide 'ada-xref) | 2311 | (provide 'ada-xref) |
| 2312 | 2312 | ||
| 2313 | ;;; arch-tag: 415a39fe-577b-4676-b3b1-6ff6db7ca24e | 2313 | ;; arch-tag: 415a39fe-577b-4676-b3b1-6ff6db7ca24e |
| 2314 | ;;; ada-xref.el ends here | 2314 | ;;; ada-xref.el ends here |