diff options
| author | Chong Yidong | 2012-09-25 12:13:02 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-09-25 12:13:02 +0800 |
| commit | 59f7af816e98a74abf42d724bcfdfa9bfe9964ce (patch) | |
| tree | 4e9fb47afd9f6acad1829128e5ced04211150084 | |
| parent | b06eeda8060af5dad5b2b7317093d9c183971a0a (diff) | |
| download | emacs-59f7af816e98a74abf42d724bcfdfa9bfe9964ce.tar.gz emacs-59f7af816e98a74abf42d724bcfdfa9bfe9964ce.zip | |
Use declare forms, where possible, to mark obsolete functions.
* lisp/allout.el (allout-passphrase-hint-string): Likewise.
(allout-init): Use a declare form to mark obsolete.
* lisp/calendar/calendar.el (calendar-version):
* lisp/calendar/icalendar.el (icalendar-extract-ical-from-buffer)
(icalendar-convert-diary-to-ical):
* lisp/cus-edit.el (custom-mode):
* lisp/ansi-color.el (ansi-color-unfontify-region):
* lisp/international/latin1-disp.el (latin1-char-displayable-p):
* lisp/progmodes/cwarn.el (turn-on-cwarn-mode):
* lisp/progmodes/which-func.el (which-func-update-1): Use
define-obsolete-function-alias.
* lisp/bookmark.el (bookmark-jump-noselect): Use a declare form to mark
this function obsolete.
* lisp/calendar/cal-x.el (calendar-two-frame-setup)
(calendar-only-one-frame-setup, calendar-one-frame-setup):
* lisp/calendar/calendar.el (american-calendar, european-calendar)
(calendar-for-loop):
* lisp/comint.el (comint-dynamic-simple-complete)
(comint-dynamic-complete-as-filename, comint-unquote-filename):
* lisp/desktop.el (desktop-load-default):
* lisp/dired-x.el (dired-omit-here-always)
(dired-hack-local-variables, dired-default-directory):
* lisp/emacs-lisp/derived.el (derived-mode-class):
* lisp/emacs-lisp/timer.el (timer-set-time-with-usecs):
* lisp/emacs-lock.el (toggle-emacs-lock):
* lisp/epa.el (epa-display-verify-result):
* lisp/epg.el (epg-sign-keys, epg-start-sign-keys)
(epg-passphrase-callback-function):
* lisp/eshell/esh-util.el (eshell-for):
* lisp/eshell/eshell.el (eshell-remove-from-window-buffer-names)
(eshell-add-to-window-buffer-names):
* lisp/files.el (locate-file-completion):
* lisp/imenu.el (imenu-example--create-c-index)
(imenu-example--create-lisp-index)
(imenu-example--lisp-extract-index-name)
(imenu-example--name-and-position):
* lisp/international/mule-cmds.el (princ-list):
* lisp/international/mule-diag.el (decode-codepage-char):
* lisp/international/mule-util.el (detect-coding-with-priority):
* lisp/iswitchb.el (iswitchb-read-buffer):
* lisp/mail/mailalias.el (mail-complete):
* lisp/mail/sendmail.el (mail-sent-via):
* lisp/mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar)
(mouse-major-mode-menu):
* lisp/password-cache.el (password-read-and-add):
* lisp/pcomplete.el (pcomplete-parse-comint-arguments):
* lisp/progmodes/sh-script.el (sh-maybe-here-document):
* lisp/replace.el (query-replace-regexp-eval):
* lisp/savehist.el (savehist-load):
* lisp/simple.el (choose-completion-delete-max-match):
* lisp/term.el (term-dynamic-simple-complete):
* lisp/vc/ediff-init.el (ediff-check-version):
* lisp/vc/ediff-wind.el (ediff-choose-window-setup-function-automatically):
* lisp/vc/vc.el (vc-diff-switches-list):
* lisp/view.el (view-return-to-alist-update): Likewise.
* lisp/iswitchb.el (iswitchb-read-buffer): Move code of
iswitchb-define-mode-map here, and delete that obsolete function.
* lisp/subr.el (eval-next-after-load, makehash, insert-string)
(assoc-ignore-representation, assoc-ignore-case): Use declare to
mark obsolete.
(mode-line-inverse-video): Variable deleted.
* lisp/emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that
this applies to functions.
* lisp/erc/erc.el (erc-send-command): Use define-obsolete-function-alias.
* lisp/international/mule-util.el (string-to-sequence): Remove.
* lisp/net/newst-backend.el (newsticker-cache-filename):
* lisp/net/newst-treeview.el (newsticker-groups-filename): Fix
incorrect obsolescence declaration.
* lisp/net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete
font-lock-reference-face.
* lisp/url/url-parse.el (url-recreate-url-attributes):
* lisp/url/url-util.el (url-generate-unique-filename): Use declare to mark
obsolete.
* src/xdisp.c (mode_line_inverse_video): Delete obsolete variable.
58 files changed, 231 insertions, 271 deletions
| @@ -655,7 +655,7 @@ are deprecated and will be removed eventually. | |||
| 655 | **** inactivate-current-input-method-function -> | 655 | **** inactivate-current-input-method-function -> |
| 656 | deactivate-current-input-method-function | 656 | deactivate-current-input-method-function |
| 657 | 657 | ||
| 658 | ** Some obsolete variables and variable aliases were removed: | 658 | ** Some obsolete functions and variables were removed: |
| 659 | 659 | ||
| 660 | *** `facemenu-unlisted-faces' | 660 | *** `facemenu-unlisted-faces' |
| 661 | *** `rmail-decode-mime-charset' | 661 | *** `rmail-decode-mime-charset' |
| @@ -663,7 +663,9 @@ are deprecated and will be removed eventually. | |||
| 663 | *** `iswitchb-read-buffer' | 663 | *** `iswitchb-read-buffer' |
| 664 | *** `sc-version', `sc-submit-bug-report' | 664 | *** `sc-version', `sc-submit-bug-report' |
| 665 | *** `set-char-table-default' | 665 | *** `set-char-table-default' |
| 666 | *** `string-to-sequence' (use `string-to-list' or `string-to-vector'). | ||
| 666 | *** `compile-internal' | 667 | *** `compile-internal' |
| 668 | *** `mode-line-inverse-video' | ||
| 667 | *** `cvs-commit-buffer-require-final-newline' | 669 | *** `cvs-commit-buffer-require-final-newline' |
| 668 | (use `'log-edit-require-final-newline'instead) | 670 | (use `'log-edit-require-final-newline'instead) |
| 669 | *** `cvs-changelog-full-paragraphs' | 671 | *** `cvs-changelog-full-paragraphs' |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e5449d97720..375fea957c0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,84 @@ | |||
| 1 | 2012-09-25 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * bookmark.el (bookmark-jump-noselect): Use a declare form to mark | ||
| 4 | this function obsolete. | ||
| 5 | |||
| 6 | * calendar/cal-x.el (calendar-two-frame-setup) | ||
| 7 | (calendar-only-one-frame-setup, calendar-one-frame-setup): | ||
| 8 | * calendar/calendar.el (american-calendar, european-calendar) | ||
| 9 | (calendar-for-loop): | ||
| 10 | * comint.el (comint-dynamic-simple-complete) | ||
| 11 | (comint-dynamic-complete-as-filename, comint-unquote-filename): | ||
| 12 | * desktop.el (desktop-load-default): | ||
| 13 | * dired-x.el (dired-omit-here-always) | ||
| 14 | (dired-hack-local-variables, dired-default-directory): | ||
| 15 | * emacs-lisp/derived.el (derived-mode-class): | ||
| 16 | * emacs-lisp/timer.el (timer-set-time-with-usecs): | ||
| 17 | * emacs-lock.el (toggle-emacs-lock): | ||
| 18 | * epa.el (epa-display-verify-result): | ||
| 19 | * epg.el (epg-sign-keys, epg-start-sign-keys) | ||
| 20 | (epg-passphrase-callback-function): | ||
| 21 | * eshell/esh-util.el (eshell-for): | ||
| 22 | * eshell/eshell.el (eshell-remove-from-window-buffer-names) | ||
| 23 | (eshell-add-to-window-buffer-names): | ||
| 24 | * files.el (locate-file-completion): | ||
| 25 | * imenu.el (imenu-example--create-c-index) | ||
| 26 | (imenu-example--create-lisp-index) | ||
| 27 | (imenu-example--lisp-extract-index-name) | ||
| 28 | (imenu-example--name-and-position): | ||
| 29 | * international/mule-cmds.el (princ-list): | ||
| 30 | * international/mule-diag.el (decode-codepage-char): | ||
| 31 | * international/mule-util.el (detect-coding-with-priority): | ||
| 32 | * iswitchb.el (iswitchb-read-buffer): | ||
| 33 | * mail/mailalias.el (mail-complete): | ||
| 34 | * mail/sendmail.el (mail-sent-via): | ||
| 35 | * mouse.el (mouse-popup-menubar-stuff, mouse-popup-menubar) | ||
| 36 | (mouse-major-mode-menu): | ||
| 37 | * password-cache.el (password-read-and-add): | ||
| 38 | * pcomplete.el (pcomplete-parse-comint-arguments): | ||
| 39 | * progmodes/sh-script.el (sh-maybe-here-document): | ||
| 40 | * replace.el (query-replace-regexp-eval): | ||
| 41 | * savehist.el (savehist-load): | ||
| 42 | * simple.el (choose-completion-delete-max-match): | ||
| 43 | * term.el (term-dynamic-simple-complete): | ||
| 44 | * vc/ediff-init.el (ediff-check-version): | ||
| 45 | * vc/ediff-wind.el (ediff-choose-window-setup-function-automatically): | ||
| 46 | * vc/vc.el (vc-diff-switches-list): | ||
| 47 | * view.el (view-return-to-alist-update): Likewise. | ||
| 48 | |||
| 49 | * subr.el (eval-next-after-load, makehash, insert-string) | ||
| 50 | (assoc-ignore-representation, assoc-ignore-case): Use declare to | ||
| 51 | mark obsolete. | ||
| 52 | (mode-line-inverse-video): Variable deleted. | ||
| 53 | |||
| 54 | * international/mule-util.el (string-to-sequence): Remove. | ||
| 55 | |||
| 56 | * calendar/calendar.el (calendar-version): | ||
| 57 | * calendar/icalendar.el (icalendar-extract-ical-from-buffer) | ||
| 58 | (icalendar-convert-diary-to-ical): | ||
| 59 | * cus-edit.el (custom-mode): | ||
| 60 | * ansi-color.el (ansi-color-unfontify-region): | ||
| 61 | * international/latin1-disp.el (latin1-char-displayable-p): | ||
| 62 | * progmodes/cwarn.el (turn-on-cwarn-mode): | ||
| 63 | * progmodes/which-func.el (which-func-update-1): Use | ||
| 64 | define-obsolete-function-alias. | ||
| 65 | |||
| 66 | * net/newst-backend.el (newsticker-cache-filename): | ||
| 67 | * net/newst-treeview.el (newsticker-groups-filename): Fix | ||
| 68 | incorrect obsolescence declaration. | ||
| 69 | |||
| 70 | * allout.el (allout-passphrase-hint-string): Likewise. | ||
| 71 | (allout-init): Use a declare form to mark obsolete. | ||
| 72 | |||
| 73 | * emacs-lisp/byte-run.el (make-obsolete): Doc fix; emphasize that | ||
| 74 | this applies to functions. | ||
| 75 | |||
| 76 | * iswitchb.el (iswitchb-read-buffer): Move code of | ||
| 77 | iswitchb-define-mode-map here, and delete that obsolete function. | ||
| 78 | |||
| 79 | * net/snmp-mode.el (snmp-font-lock-keywords-3): Don't use obsolete | ||
| 80 | font-lock-reference-face. | ||
| 81 | |||
| 1 | 2012-09-25 Glenn Morris <rgm@gnu.org> | 82 | 2012-09-25 Glenn Morris <rgm@gnu.org> |
| 2 | 83 | ||
| 3 | * buff-menu.el (Buffer-menu-name-width, Buffer-menu-size-width): | 84 | * buff-menu.el (Buffer-menu-name-width, Buffer-menu-size-width): |
| @@ -26,10 +107,6 @@ | |||
| 26 | 107 | ||
| 27 | 2012-09-24 Chong Yidong <cyd@gnu.org> | 108 | 2012-09-24 Chong Yidong <cyd@gnu.org> |
| 28 | 109 | ||
| 29 | * iswitchb.el (iswitchb-read-buffer): Move | ||
| 30 | iswitchb-define-mode-map code here, and delete that obsolete | ||
| 31 | function. | ||
| 32 | |||
| 33 | * mail/supercite.el (sc-version): Remove obsolete function. | 110 | * mail/supercite.el (sc-version): Remove obsolete function. |
| 34 | (sc-describe): Don't mark as obsolete, since it is bound. | 111 | (sc-describe): Don't mark as obsolete, since it is bound. |
| 35 | (sc-submit-bug-report): Remove. | 112 | (sc-submit-bug-report): Remove. |
diff --git a/lisp/allout.el b/lisp/allout.el index acf0b7d75b6..04de853ebe0 100644 --- a/lisp/allout.el +++ b/lisp/allout.el | |||
| @@ -1522,8 +1522,8 @@ The verifier string is retained as an Emacs file variable, as well as in | |||
| 1522 | the Emacs buffer state, if file variable adjustments are enabled. See | 1522 | the Emacs buffer state, if file variable adjustments are enabled. See |
| 1523 | `allout-enable-file-variable-adjustment' for details about that.") | 1523 | `allout-enable-file-variable-adjustment' for details about that.") |
| 1524 | (make-variable-buffer-local 'allout-passphrase-verifier-string) | 1524 | (make-variable-buffer-local 'allout-passphrase-verifier-string) |
| 1525 | (make-obsolete 'allout-passphrase-verifier-string | 1525 | (make-obsolete-variable 'allout-passphrase-verifier-string |
| 1526 | 'allout-passphrase-verifier-string "23.3") | 1526 | 'allout-passphrase-verifier-string "23.3") |
| 1527 | ;;;###autoload | 1527 | ;;;###autoload |
| 1528 | (put 'allout-passphrase-verifier-string 'safe-local-variable 'stringp) | 1528 | (put 'allout-passphrase-verifier-string 'safe-local-variable 'stringp) |
| 1529 | ;;;_ = allout-passphrase-hint-string | 1529 | ;;;_ = allout-passphrase-hint-string |
| @@ -1538,8 +1538,8 @@ state, if file variable adjustments are enabled. See | |||
| 1538 | `allout-enable-file-variable-adjustment' for details about that.") | 1538 | `allout-enable-file-variable-adjustment' for details about that.") |
| 1539 | (make-variable-buffer-local 'allout-passphrase-hint-string) | 1539 | (make-variable-buffer-local 'allout-passphrase-hint-string) |
| 1540 | (setq-default allout-passphrase-hint-string "") | 1540 | (setq-default allout-passphrase-hint-string "") |
| 1541 | (make-obsolete 'allout-passphrase-hint-string | 1541 | (make-obsolete-variable 'allout-passphrase-hint-string |
| 1542 | 'allout-passphrase-hint-string "23.3") | 1542 | 'allout-passphrase-hint-string "23.3") |
| 1543 | ;;;###autoload | 1543 | ;;;###autoload |
| 1544 | (put 'allout-passphrase-hint-string 'safe-local-variable 'stringp) | 1544 | (put 'allout-passphrase-hint-string 'safe-local-variable 'stringp) |
| 1545 | ;;;_ = allout-after-save-decrypt | 1545 | ;;;_ = allout-after-save-decrypt |
| @@ -1688,11 +1688,10 @@ from what it did before, for backwards compatibility. | |||
| 1688 | 1688 | ||
| 1689 | MODE is the activation mode - see `allout-auto-activation' for | 1689 | MODE is the activation mode - see `allout-auto-activation' for |
| 1690 | valid values." | 1690 | valid values." |
| 1691 | 1691 | (declare (obsolete allout-auto-activation "23.3")) | |
| 1692 | (custom-set-variables (list 'allout-auto-activation (format "%s" mode))) | 1692 | (custom-set-variables (list 'allout-auto-activation (format "%s" mode))) |
| 1693 | (format "%s" mode)) | 1693 | (format "%s" mode)) |
| 1694 | (make-obsolete 'allout-init | 1694 | |
| 1695 | "customize 'allout-auto-activation' instead." "23.3") | ||
| 1696 | ;;;_ > allout-setup-menubar () | 1695 | ;;;_ > allout-setup-menubar () |
| 1697 | (defun allout-setup-menubar () | 1696 | (defun allout-setup-menubar () |
| 1698 | "Populate the current buffer's menubar with `allout-mode' stuff." | 1697 | "Populate the current buffer's menubar with `allout-mode' stuff." |
diff --git a/lisp/ansi-color.el b/lisp/ansi-color.el index 8305aaf1199..047b4b944b9 100644 --- a/lisp/ansi-color.el +++ b/lisp/ansi-color.el | |||
| @@ -230,8 +230,8 @@ This is a good function to put in `comint-output-filter-functions'." | |||
| 230 | (t | 230 | (t |
| 231 | (ansi-color-apply-on-region start-marker end-marker))))) | 231 | (ansi-color-apply-on-region start-marker end-marker))))) |
| 232 | 232 | ||
| 233 | (defalias 'ansi-color-unfontify-region 'font-lock-default-unfontify-region) | 233 | (define-obsolete-function-alias 'ansi-color-unfontify-region |
| 234 | (make-obsolete 'ansi-color-unfontify-region "not needed any more" "24.1") | 234 | 'font-lock-default-unfontify-region "24.1") |
| 235 | 235 | ||
| 236 | ;; Working with strings | 236 | ;; Working with strings |
| 237 | (defvar ansi-color-context nil | 237 | (defvar ansi-color-context nil |
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 31bbc13acf9..26ba1dec00f 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -1048,12 +1048,11 @@ The return value has the form (BUFFER . POINT). | |||
| 1048 | 1048 | ||
| 1049 | Note: this function is deprecated and is present for Emacs 22 | 1049 | Note: this function is deprecated and is present for Emacs 22 |
| 1050 | compatibility only." | 1050 | compatibility only." |
| 1051 | (declare (obsolete bookmark-handle-bookmark "23.1")) | ||
| 1051 | (save-excursion | 1052 | (save-excursion |
| 1052 | (bookmark-handle-bookmark bookmark) | 1053 | (bookmark-handle-bookmark bookmark) |
| 1053 | (cons (current-buffer) (point)))) | 1054 | (cons (current-buffer) (point)))) |
| 1054 | 1055 | ||
| 1055 | (make-obsolete 'bookmark-jump-noselect 'bookmark-handle-bookmark "23.1") | ||
| 1056 | |||
| 1057 | (defun bookmark-handle-bookmark (bookmark-name-or-record) | 1056 | (defun bookmark-handle-bookmark (bookmark-name-or-record) |
| 1058 | "Call BOOKMARK-NAME-OR-RECORD's handler or `bookmark-default-handler' | 1057 | "Call BOOKMARK-NAME-OR-RECORD's handler or `bookmark-default-handler' |
| 1059 | if it has none. This changes current buffer and point and returns nil, | 1058 | if it has none. This changes current buffer and point and returns nil, |
diff --git a/lisp/calendar/cal-x.el b/lisp/calendar/cal-x.el index 0f2d43b2237..6fba7fb7423 100644 --- a/lisp/calendar/cal-x.el +++ b/lisp/calendar/cal-x.el | |||
| @@ -155,29 +155,23 @@ If PROMPT is non-nil, prompt for the month and year to use." | |||
| 155 | (defun calendar-one-frame-setup (&optional prompt) | 155 | (defun calendar-one-frame-setup (&optional prompt) |
| 156 | "Display calendar and diary in a single dedicated frame. | 156 | "Display calendar and diary in a single dedicated frame. |
| 157 | See `calendar-frame-setup' for more information." | 157 | See `calendar-frame-setup' for more information." |
| 158 | (declare (obsolete calendar-frame-setup "23.1")) | ||
| 158 | (calendar-frame-setup 'one-frame prompt)) | 159 | (calendar-frame-setup 'one-frame prompt)) |
| 159 | 160 | ||
| 160 | (make-obsolete 'calendar-one-frame-setup 'calendar-frame-setup "23.1") | ||
| 161 | |||
| 162 | |||
| 163 | ;;;###cal-autoload | 161 | ;;;###cal-autoload |
| 164 | (defun calendar-only-one-frame-setup (&optional prompt) | 162 | (defun calendar-only-one-frame-setup (&optional prompt) |
| 165 | "Display calendar in a dedicated frame. | 163 | "Display calendar in a dedicated frame. |
| 166 | See `calendar-frame-setup' for more information." | 164 | See `calendar-frame-setup' for more information." |
| 165 | (declare (obsolete calendar-frame-setup "23.1")) | ||
| 167 | (calendar-frame-setup 'calendar-only prompt)) | 166 | (calendar-frame-setup 'calendar-only prompt)) |
| 168 | 167 | ||
| 169 | (make-obsolete 'calendar-only-one-frame-setup 'calendar-frame-setup "23.1") | ||
| 170 | |||
| 171 | |||
| 172 | ;;;###cal-autoload | 168 | ;;;###cal-autoload |
| 173 | (defun calendar-two-frame-setup (&optional prompt) | 169 | (defun calendar-two-frame-setup (&optional prompt) |
| 174 | "Display calendar and diary in separate, dedicated frames. | 170 | "Display calendar and diary in separate, dedicated frames. |
| 175 | See `calendar-frame-setup' for more information." | 171 | See `calendar-frame-setup' for more information." |
| 172 | (declare (obsolete calendar-frame-setup "23.1")) | ||
| 176 | (calendar-frame-setup 'two-frames prompt)) | 173 | (calendar-frame-setup 'two-frames prompt)) |
| 177 | 174 | ||
| 178 | (make-obsolete 'calendar-two-frame-setup 'calendar-frame-setup "23.1") | ||
| 179 | |||
| 180 | |||
| 181 | ;; Undocumented and probably useless. | 175 | ;; Undocumented and probably useless. |
| 182 | (defvar cal-x-load-hook nil | 176 | (defvar cal-x-load-hook nil |
| 183 | "Hook run on loading of the `cal-x' package.") | 177 | "Hook run on loading of the `cal-x' package.") |
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el index c85b775d9d3..6f8311f4c55 100644 --- a/lisp/calendar/calendar.el +++ b/lisp/calendar/calendar.el | |||
| @@ -1001,18 +1001,16 @@ The valid styles are described in the documentation of `calendar-date-style'." | |||
| 1001 | 1001 | ||
| 1002 | (defun european-calendar () | 1002 | (defun european-calendar () |
| 1003 | "Set the interpretation and display of dates to the European style." | 1003 | "Set the interpretation and display of dates to the European style." |
| 1004 | (declare (obsolete calendar-set-date-style "23.1")) | ||
| 1004 | (interactive) | 1005 | (interactive) |
| 1005 | (calendar-set-date-style 'european)) | 1006 | (calendar-set-date-style 'european)) |
| 1006 | 1007 | ||
| 1007 | (make-obsolete 'european-calendar 'calendar-set-date-style "23.1") | ||
| 1008 | |||
| 1009 | (defun american-calendar () | 1008 | (defun american-calendar () |
| 1010 | "Set the interpretation and display of dates to the American style." | 1009 | "Set the interpretation and display of dates to the American style." |
| 1010 | (declare (obsolete calendar-set-date-style "23.1")) | ||
| 1011 | (interactive) | 1011 | (interactive) |
| 1012 | (calendar-set-date-style 'american)) | 1012 | (calendar-set-date-style 'american)) |
| 1013 | 1013 | ||
| 1014 | (make-obsolete 'american-calendar 'calendar-set-date-style "23.1") | ||
| 1015 | |||
| 1016 | (define-obsolete-variable-alias 'holidays-in-diary-buffer | 1014 | (define-obsolete-variable-alias 'holidays-in-diary-buffer |
| 1017 | 'diary-show-holidays-flag "23.1") | 1015 | 'diary-show-holidays-flag "23.1") |
| 1018 | 1016 | ||
| @@ -1148,14 +1146,13 @@ MON defaults to `displayed-month'. YR defaults to `displayed-year'." | |||
| 1148 | "Execute a for loop. | 1146 | "Execute a for loop. |
| 1149 | Evaluate BODY with VAR bound to successive integers from INIT to FINAL, | 1147 | Evaluate BODY with VAR bound to successive integers from INIT to FINAL, |
| 1150 | inclusive. The standard macro `dotimes' is preferable in most cases." | 1148 | inclusive. The standard macro `dotimes' is preferable in most cases." |
| 1151 | (declare (debug (symbolp "from" form "to" form "do" body)) | 1149 | (declare (obsolete "use `dotimes' or `while' instead." "23.1") |
| 1150 | (debug (symbolp "from" form "to" form "do" body)) | ||
| 1152 | (indent defun)) | 1151 | (indent defun)) |
| 1153 | `(let ((,var (1- ,init))) | 1152 | `(let ((,var (1- ,init))) |
| 1154 | (while (>= ,final (setq ,var (1+ ,var))) | 1153 | (while (>= ,final (setq ,var (1+ ,var))) |
| 1155 | ,@body))) | 1154 | ,@body))) |
| 1156 | 1155 | ||
| 1157 | (make-obsolete 'calendar-for-loop "use `dotimes' or `while' instead." "23.1") | ||
| 1158 | |||
| 1159 | (defmacro calendar-sum (index initial condition expression) | 1156 | (defmacro calendar-sum (index initial condition expression) |
| 1160 | "For INDEX = INITIAL, +1, ... (as long as CONDITION holds), sum EXPRESSION." | 1157 | "For INDEX = INITIAL, +1, ... (as long as CONDITION holds), sum EXPRESSION." |
| 1161 | (declare (debug (symbolp form form form))) | 1158 | (declare (debug (symbolp form form form))) |
| @@ -2655,13 +2652,7 @@ If called by a mouse-event, pops up a menu with the result." | |||
| 2655 | "---") | 2652 | "---") |
| 2656 | (calendar-string-spread (list str) ?- width))))) | 2653 | (calendar-string-spread (list str) ?- width))))) |
| 2657 | 2654 | ||
| 2658 | (defun calendar-version () | 2655 | (define-obsolete-function-alias 'calendar-version 'emacs-version "23.1") |
| 2659 | "Display the Calendar version." | ||
| 2660 | (interactive) | ||
| 2661 | (message "GNU Emacs %s" emacs-version)) | ||
| 2662 | |||
| 2663 | (make-obsolete 'calendar-version 'emacs-version "23.1") | ||
| 2664 | |||
| 2665 | 2656 | ||
| 2666 | (run-hooks 'calendar-load-hook) | 2657 | (run-hooks 'calendar-load-hook) |
| 2667 | 2658 | ||
diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el index 7326aa530ad..39b83d4c831 100644 --- a/lisp/calendar/icalendar.el +++ b/lisp/calendar/icalendar.el | |||
| @@ -931,8 +931,8 @@ Finto iCalendar file: ") | |||
| 931 | (set-buffer (find-file diary-filename)) | 931 | (set-buffer (find-file diary-filename)) |
| 932 | (icalendar-export-region (point-min) (point-max) ical-filename))) | 932 | (icalendar-export-region (point-min) (point-max) ical-filename))) |
| 933 | 933 | ||
| 934 | (defalias 'icalendar-convert-diary-to-ical 'icalendar-export-file) | 934 | (define-obsolete-function-alias 'icalendar-convert-diary-to-ical |
| 935 | (make-obsolete 'icalendar-convert-diary-to-ical 'icalendar-export-file "22.1") | 935 | 'icalendar-export-file "22.1") |
| 936 | 936 | ||
| 937 | (defvar icalendar--uid-count 0 | 937 | (defvar icalendar--uid-count 0 |
| 938 | "Auxiliary counter for creating unique ids.") | 938 | "Auxiliary counter for creating unique ids.") |
| @@ -1881,8 +1881,8 @@ buffer `*icalendar-errors*'." | |||
| 1881 | ;; return nil, i.e. import did not work | 1881 | ;; return nil, i.e. import did not work |
| 1882 | nil))) | 1882 | nil))) |
| 1883 | 1883 | ||
| 1884 | (defalias 'icalendar-extract-ical-from-buffer 'icalendar-import-buffer) | 1884 | (define-obsolete-function-alias 'icalendar-extract-ical-from-buffer |
| 1885 | (make-obsolete 'icalendar-extract-ical-from-buffer 'icalendar-import-buffer "22.1") | 1885 | 'icalendar-import-buffer "22.1") |
| 1886 | 1886 | ||
| 1887 | (defun icalendar--format-ical-event (event) | 1887 | (defun icalendar--format-ical-event (event) |
| 1888 | "Create a string representation of an iCalendar EVENT." | 1888 | "Create a string representation of an iCalendar EVENT." |
diff --git a/lisp/comint.el b/lisp/comint.el index 994d81a375a..fea9cecfa03 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -3069,11 +3069,11 @@ Magic characters are those in `comint-file-name-quote-list'." | |||
| 3069 | 3069 | ||
| 3070 | (defun comint-unquote-filename (filename) | 3070 | (defun comint-unquote-filename (filename) |
| 3071 | "Return FILENAME with quoted characters unquoted." | 3071 | "Return FILENAME with quoted characters unquoted." |
| 3072 | (declare (obsolete nil "24.3")) | ||
| 3072 | (if (null comint-file-name-quote-list) | 3073 | (if (null comint-file-name-quote-list) |
| 3073 | filename | 3074 | filename |
| 3074 | (save-match-data | 3075 | (save-match-data |
| 3075 | (replace-regexp-in-string "\\\\\\(.\\)" "\\1" filename t)))) | 3076 | (replace-regexp-in-string "\\\\\\(.\\)" "\\1" filename t)))) |
| 3076 | (make-obsolete 'comint-unquote-filename nil "24.3") | ||
| 3077 | 3077 | ||
| 3078 | (defun comint--requote-argument (upos qstr) | 3078 | (defun comint--requote-argument (upos qstr) |
| 3079 | ;; See `completion-table-with-quoting'. | 3079 | ;; See `completion-table-with-quoting'. |
| @@ -3170,10 +3170,9 @@ See `completion-table-with-quoting' and `comint-unquote-function'.") | |||
| 3170 | (defun comint-dynamic-complete-as-filename () | 3170 | (defun comint-dynamic-complete-as-filename () |
| 3171 | "Dynamically complete at point as a filename. | 3171 | "Dynamically complete at point as a filename. |
| 3172 | See `comint-dynamic-complete-filename'. Returns t if successful." | 3172 | See `comint-dynamic-complete-filename'. Returns t if successful." |
| 3173 | (declare (obsolete comint-filename-completion "24.1")) | ||
| 3173 | (let ((data (comint--complete-file-name-data))) | 3174 | (let ((data (comint--complete-file-name-data))) |
| 3174 | (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data)))) | 3175 | (completion-in-region (nth 0 data) (nth 1 data) (nth 2 data)))) |
| 3175 | (make-obsolete 'comint-dynamic-complete-as-filename | ||
| 3176 | 'comint-filename-completion "24.1") | ||
| 3177 | 3176 | ||
| 3178 | (defun comint-replace-by-expanded-filename () | 3177 | (defun comint-replace-by-expanded-filename () |
| 3179 | "Dynamically expand and complete the filename at point. | 3178 | "Dynamically expand and complete the filename at point. |
| @@ -3204,6 +3203,7 @@ Return `partial' if completed as far as possible. | |||
| 3204 | Return `listed' if a completion listing was shown. | 3203 | Return `listed' if a completion listing was shown. |
| 3205 | 3204 | ||
| 3206 | See also `comint-dynamic-complete-filename'." | 3205 | See also `comint-dynamic-complete-filename'." |
| 3206 | (declare (obsolete completion-in-region "24.1")) | ||
| 3207 | (let* ((completion-ignore-case (memq system-type '(ms-dos windows-nt cygwin))) | 3207 | (let* ((completion-ignore-case (memq system-type '(ms-dos windows-nt cygwin))) |
| 3208 | (minibuffer-p (window-minibuffer-p (selected-window))) | 3208 | (minibuffer-p (window-minibuffer-p (selected-window))) |
| 3209 | (suffix (cond ((not comint-completion-addsuffix) "") | 3209 | (suffix (cond ((not comint-completion-addsuffix) "") |
| @@ -3246,8 +3246,6 @@ See also `comint-dynamic-complete-filename'." | |||
| 3246 | (unless minibuffer-p | 3246 | (unless minibuffer-p |
| 3247 | (message "Partially completed")) | 3247 | (message "Partially completed")) |
| 3248 | 'partial))))))) | 3248 | 'partial))))))) |
| 3249 | (make-obsolete 'comint-dynamic-simple-complete 'completion-in-region "24.1") | ||
| 3250 | |||
| 3251 | 3249 | ||
| 3252 | (defun comint-dynamic-list-filename-completions () | 3250 | (defun comint-dynamic-list-filename-completions () |
| 3253 | "Display a list of possible completions for the filename at point." | 3251 | "Display a list of possible completions for the filename at point." |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 2e6f2b14625..8e06b16bd12 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -2228,9 +2228,9 @@ and `face'." | |||
| 2228 | (setq widget nil))))) | 2228 | (setq widget nil))))) |
| 2229 | (widget-setup)) | 2229 | (widget-setup)) |
| 2230 | 2230 | ||
| 2231 | (make-obsolete 'custom-show "this widget type is no longer supported." "24.1") | ||
| 2232 | (defun custom-show (widget value) | 2231 | (defun custom-show (widget value) |
| 2233 | "Non-nil if WIDGET should be shown with VALUE by default." | 2232 | "Non-nil if WIDGET should be shown with VALUE by default." |
| 2233 | (declare (obsolete "this widget type is no longer supported." "24.1")) | ||
| 2234 | (let ((show (widget-get widget :custom-show))) | 2234 | (let ((show (widget-get widget :custom-show))) |
| 2235 | (if (functionp show) | 2235 | (if (functionp show) |
| 2236 | (funcall show widget value) | 2236 | (funcall show widget value) |
| @@ -4823,12 +4823,7 @@ if that value is non-nil." | |||
| 4823 | 4823 | ||
| 4824 | (put 'Custom-mode 'mode-class 'special) | 4824 | (put 'Custom-mode 'mode-class 'special) |
| 4825 | 4825 | ||
| 4826 | ;; backward-compatibility | 4826 | (define-obsolete-function-alias 'custom-mode 'Custom-mode "23.1") |
| 4827 | (defun custom-mode () | ||
| 4828 | "Non-interactive variant of `Custom-mode'." | ||
| 4829 | (Custom-mode)) | ||
| 4830 | (make-obsolete 'custom-mode 'Custom-mode "23.1") | ||
| 4831 | (put 'custom-mode 'mode-class 'special) | ||
| 4832 | 4827 | ||
| 4833 | (add-to-list 'debug-ignored-errors "^Invalid face:? ") | 4828 | (add-to-list 'debug-ignored-errors "^Invalid face:? ") |
| 4834 | 4829 | ||
diff --git a/lisp/cus-start.el b/lisp/cus-start.el index a91a479b054..28c1d3e3026 100644 --- a/lisp/cus-start.el +++ b/lisp/cus-start.el | |||
| @@ -443,7 +443,6 @@ since it could result in memory overflow and make Emacs crash." | |||
| 443 | (hscroll-step windows number "22.1") | 443 | (hscroll-step windows number "22.1") |
| 444 | (truncate-partial-width-windows display boolean "23.1") | 444 | (truncate-partial-width-windows display boolean "23.1") |
| 445 | (make-cursor-line-fully-visible windows boolean) | 445 | (make-cursor-line-fully-visible windows boolean) |
| 446 | (mode-line-inverse-video mode-line boolean) | ||
| 447 | (mode-line-in-non-selected-windows mode-line boolean "22.1") | 446 | (mode-line-in-non-selected-windows mode-line boolean "22.1") |
| 448 | (line-number-display-limit display | 447 | (line-number-display-limit display |
| 449 | (choice integer | 448 | (choice integer |
diff --git a/lisp/desktop.el b/lisp/desktop.el index 75deb58b4d8..c8023bb43ed 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el | |||
| @@ -1045,11 +1045,10 @@ Using it may cause conflicts. Use it anyway? " owner))))) | |||
| 1045 | (defun desktop-load-default () | 1045 | (defun desktop-load-default () |
| 1046 | "Load the `default' start-up library manually. | 1046 | "Load the `default' start-up library manually. |
| 1047 | Also inhibit further loading of it." | 1047 | Also inhibit further loading of it." |
| 1048 | (declare (obsolete desktop-save-mode "22.1")) | ||
| 1048 | (unless inhibit-default-init ; safety check | 1049 | (unless inhibit-default-init ; safety check |
| 1049 | (load "default" t t) | 1050 | (load "default" t t) |
| 1050 | (setq inhibit-default-init t))) | 1051 | (setq inhibit-default-init t))) |
| 1051 | (make-obsolete 'desktop-load-default | ||
| 1052 | 'desktop-save-mode "22.1") | ||
| 1053 | 1052 | ||
| 1054 | ;; ---------------------------------------------------------------------------- | 1053 | ;; ---------------------------------------------------------------------------- |
| 1055 | ;;;###autoload | 1054 | ;;;###autoload |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index f176cf7dbe0..1237eef86cf 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -723,15 +723,13 @@ determine a default directory.") | |||
| 723 | (defun dired-default-directory () | 723 | (defun dired-default-directory () |
| 724 | "Return the `dired-default-directory-alist' entry for the current major-mode. | 724 | "Return the `dired-default-directory-alist' entry for the current major-mode. |
| 725 | If none, return `default-directory'." | 725 | If none, return `default-directory'." |
| 726 | ;; It looks like this was intended to be something of a "general" | ||
| 727 | ;; feature, but it only ever seems to have been used in | ||
| 728 | ;; dired-smart-shell-command, and doesn't seem worth keeping around. | ||
| 729 | (declare (obsolete nil "24.1")) | ||
| 726 | (or (eval (cdr (assq major-mode dired-default-directory-alist))) | 730 | (or (eval (cdr (assq major-mode dired-default-directory-alist))) |
| 727 | default-directory)) | 731 | default-directory)) |
| 728 | 732 | ||
| 729 | ;; It looks like this was intended to be something of a "general" feature, | ||
| 730 | ;; but it only ever seems to have been used in dired-smart-shell-command, | ||
| 731 | ;; and does not seem worth keeping around (?). | ||
| 732 | (make-obsolete 'dired-default-directory | ||
| 733 | "this feature is due to be removed." "24.1") | ||
| 734 | |||
| 735 | (defun dired-smart-shell-command (command &optional output-buffer error-buffer) | 733 | (defun dired-smart-shell-command (command &optional output-buffer error-buffer) |
| 736 | "Like function `shell-command', but in the current Virtual Dired directory." | 734 | "Like function `shell-command', but in the current Virtual Dired directory." |
| 737 | (interactive | 735 | (interactive |
| @@ -782,6 +780,7 @@ See also `dired-enable-local-variables'." | |||
| 782 | 780 | ||
| 783 | (defun dired-hack-local-variables () | 781 | (defun dired-hack-local-variables () |
| 784 | "Evaluate local variables in `dired-local-variables-file' for dired buffer." | 782 | "Evaluate local variables in `dired-local-variables-file' for dired buffer." |
| 783 | (declare (obsolete hack-dir-local-variables-non-file-buffer "24.1")) | ||
| 785 | (and (stringp dired-local-variables-file) | 784 | (and (stringp dired-local-variables-file) |
| 786 | (file-exists-p dired-local-variables-file) | 785 | (file-exists-p dired-local-variables-file) |
| 787 | (let ((opoint (point-max)) | 786 | (let ((opoint (point-max)) |
| @@ -803,14 +802,12 @@ See also `dired-enable-local-variables'." | |||
| 803 | ;; Make sure that the mode line shows the proper information. | 802 | ;; Make sure that the mode line shows the proper information. |
| 804 | (dired-sort-set-mode-line)))) | 803 | (dired-sort-set-mode-line)))) |
| 805 | 804 | ||
| 806 | (make-obsolete 'dired-hack-local-variables | ||
| 807 | 'hack-dir-local-variables-non-file-buffer "24.1") | ||
| 808 | |||
| 809 | ;; Does not seem worth a dedicated command. | 805 | ;; Does not seem worth a dedicated command. |
| 810 | ;; See the more general features in files-x.el. | 806 | ;; See the more general features in files-x.el. |
| 811 | (defun dired-omit-here-always () | 807 | (defun dired-omit-here-always () |
| 812 | "Create `dir-locals-file' setting `dired-omit-mode' to t in `dired-mode'. | 808 | "Create `dir-locals-file' setting `dired-omit-mode' to t in `dired-mode'. |
| 813 | If in a Dired buffer, reverts it." | 809 | If in a Dired buffer, reverts it." |
| 810 | (declare (obsolete add-dir-local-variable "24.1")) | ||
| 814 | (interactive) | 811 | (interactive) |
| 815 | (if (file-exists-p dired-local-variables-file) | 812 | (if (file-exists-p dired-local-variables-file) |
| 816 | (error "Old-style dired-local-variables-file `./%s' found; | 813 | (error "Old-style dired-local-variables-file `./%s' found; |
| @@ -830,8 +827,6 @@ replace it with a dir-locals-file `./%s'" | |||
| 830 | (dired-extra-startup) | 827 | (dired-extra-startup) |
| 831 | (dired-revert)))) | 828 | (dired-revert)))) |
| 832 | 829 | ||
| 833 | (make-obsolete 'dired-omit-here-always 'add-dir-local-variable "24.1") | ||
| 834 | |||
| 835 | 830 | ||
| 836 | ;;; GUESS SHELL COMMAND. | 831 | ;;; GUESS SHELL COMMAND. |
| 837 | 832 | ||
diff --git a/lisp/dired.el b/lisp/dired.el index ed7e6b0ddc8..e0f90b321aa 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -4268,7 +4268,7 @@ instead. | |||
| 4268 | ;;;*** | 4268 | ;;;*** |
| 4269 | 4269 | ||
| 4270 | ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) | 4270 | ;;;### (autoloads (dired-do-relsymlink dired-jump-other-window dired-jump) |
| 4271 | ;;;;;; "dired-x" "dired-x.el" "d2461aa6efb8c1d7de8f245728ab448e") | 4271 | ;;;;;; "dired-x" "dired-x.el" "a4e6844421c2c5e6fde90e959fbcc26f") |
| 4272 | ;;; Generated autoloads from dired-x.el | 4272 | ;;; Generated autoloads from dired-x.el |
| 4273 | 4273 | ||
| 4274 | (autoload 'dired-jump "dired-x" "\ | 4274 | (autoload 'dired-jump "dired-x" "\ |
diff --git a/lisp/emacs-lisp/byte-run.el b/lisp/emacs-lisp/byte-run.el index 93e890a20c9..d740574f1e4 100644 --- a/lisp/emacs-lisp/byte-run.el +++ b/lisp/emacs-lisp/byte-run.el | |||
| @@ -253,7 +253,9 @@ convention was modified." | |||
| 253 | advertised-signature-table)) | 253 | advertised-signature-table)) |
| 254 | 254 | ||
| 255 | (defun make-obsolete (obsolete-name current-name &optional when) | 255 | (defun make-obsolete (obsolete-name current-name &optional when) |
| 256 | "Make the byte-compiler warn that OBSOLETE-NAME is obsolete. | 256 | "Make the byte-compiler warn that function OBSOLETE-NAME is obsolete. |
| 257 | OBSOLETE-NAME should be a function name or macro name (a symbol). | ||
| 258 | |||
| 257 | The warning will say that CURRENT-NAME should be used instead. | 259 | The warning will say that CURRENT-NAME should be used instead. |
| 258 | If CURRENT-NAME is a string, that is the `use instead' message | 260 | If CURRENT-NAME is a string, that is the `use instead' message |
| 259 | \(it should end with a period, and not start with a capital). | 261 | \(it should end with a period, and not start with a capital). |
diff --git a/lisp/emacs-lisp/derived.el b/lisp/emacs-lisp/derived.el index ea72e9492f0..8c8d37b2194 100644 --- a/lisp/emacs-lisp/derived.el +++ b/lisp/emacs-lisp/derived.el | |||
| @@ -276,10 +276,10 @@ A mode's class is the first ancestor which is NOT a derived mode. | |||
| 276 | Use the `derived-mode-parent' property of the symbol to trace backwards. | 276 | Use the `derived-mode-parent' property of the symbol to trace backwards. |
| 277 | Since major-modes might all derive from `fundamental-mode', this function | 277 | Since major-modes might all derive from `fundamental-mode', this function |
| 278 | is not very useful." | 278 | is not very useful." |
| 279 | (declare (obsolete derived-mode-p "22.1")) | ||
| 279 | (while (get mode 'derived-mode-parent) | 280 | (while (get mode 'derived-mode-parent) |
| 280 | (setq mode (get mode 'derived-mode-parent))) | 281 | (setq mode (get mode 'derived-mode-parent))) |
| 281 | mode) | 282 | mode) |
| 282 | (make-obsolete 'derived-mode-class 'derived-mode-p "22.1") | ||
| 283 | 283 | ||
| 284 | 284 | ||
| 285 | ;;; PRIVATE | 285 | ;;; PRIVATE |
diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el index bcd582a6f88..494d8a87e0e 100644 --- a/lisp/emacs-lisp/timer.el +++ b/lisp/emacs-lisp/timer.el | |||
| @@ -146,14 +146,13 @@ TIME must be in the internal format returned by, e.g., `current-time'. | |||
| 146 | The microsecond count from TIME is ignored, and USECS is used instead. | 146 | The microsecond count from TIME is ignored, and USECS is used instead. |
| 147 | If optional fourth argument DELTA is a positive number, make the timer | 147 | If optional fourth argument DELTA is a positive number, make the timer |
| 148 | fire repeatedly that many seconds apart." | 148 | fire repeatedly that many seconds apart." |
| 149 | (declare (obsolete "use `timer-set-time' and `timer-inc-time' instead." | ||
| 150 | "22.1")) | ||
| 149 | (setf (timer--time timer) time) | 151 | (setf (timer--time timer) time) |
| 150 | (setf (timer--usecs timer) usecs) | 152 | (setf (timer--usecs timer) usecs) |
| 151 | (setf (timer--psecs timer) 0) | 153 | (setf (timer--psecs timer) 0) |
| 152 | (setf (timer--repeat-delay timer) (and (numberp delta) (> delta 0) delta)) | 154 | (setf (timer--repeat-delay timer) (and (numberp delta) (> delta 0) delta)) |
| 153 | timer) | 155 | timer) |
| 154 | (make-obsolete 'timer-set-time-with-usecs | ||
| 155 | "use `timer-set-time' and `timer-inc-time' instead." | ||
| 156 | "22.1") | ||
| 157 | 156 | ||
| 158 | (defun timer-set-function (timer function &optional args) | 157 | (defun timer-set-function (timer function &optional args) |
| 159 | "Make TIMER call FUNCTION with optional ARGS when triggering." | 158 | "Make TIMER call FUNCTION with optional ARGS when triggering." |
diff --git a/lisp/emacs-lock.el b/lisp/emacs-lock.el index 5343d499efb..b20ec13fa81 100644 --- a/lisp/emacs-lock.el +++ b/lisp/emacs-lock.el | |||
| @@ -249,9 +249,9 @@ Other values are interpreted as usual." | |||
| 249 | 249 | ||
| 250 | (defun toggle-emacs-lock () | 250 | (defun toggle-emacs-lock () |
| 251 | "Toggle `emacs-lock-from-exiting' for the current buffer." | 251 | "Toggle `emacs-lock-from-exiting' for the current buffer." |
| 252 | (declare (obsolete emacs-lock-mode "24.1")) | ||
| 252 | (interactive) | 253 | (interactive) |
| 253 | (call-interactively 'emacs-lock-mode)) | 254 | (call-interactively 'emacs-lock-mode)) |
| 254 | (make-obsolete 'toggle-emacs-lock 'emacs-lock-mode "24.1") | ||
| 255 | 255 | ||
| 256 | (provide 'emacs-lock) | 256 | (provide 'emacs-lock) |
| 257 | 257 | ||
diff --git a/lisp/epa.el b/lisp/epa.el index b796f5fa77c..ecc27c4d299 100644 --- a/lisp/epa.el +++ b/lisp/epa.el | |||
| @@ -585,8 +585,8 @@ If SECRET is non-nil, list secret keys instead of public keys." | |||
| 585 | (message "%s" info))) | 585 | (message "%s" info))) |
| 586 | 586 | ||
| 587 | (defun epa-display-verify-result (verify-result) | 587 | (defun epa-display-verify-result (verify-result) |
| 588 | (declare (obsolete epa-display-info "23.1")) | ||
| 588 | (epa-display-info (epg-verify-result-to-string verify-result))) | 589 | (epa-display-info (epg-verify-result-to-string verify-result))) |
| 589 | (make-obsolete 'epa-display-verify-result 'epa-display-info "23.1") | ||
| 590 | 590 | ||
| 591 | (defun epa-passphrase-callback-function (context key-id handback) | 591 | (defun epa-passphrase-callback-function (context key-id handback) |
| 592 | (if (eq key-id 'SYM) | 592 | (if (eq key-id 'SYM) |
diff --git a/lisp/epg.el b/lisp/epg.el index 6529afb2d3c..b0e01bc3721 100644 --- a/lisp/epg.el +++ b/lisp/epg.el | |||
| @@ -1779,6 +1779,7 @@ This function is for internal use only." | |||
| 1779 | (epg-context-set-result-for context 'import-status nil))) | 1779 | (epg-context-set-result-for context 'import-status nil))) |
| 1780 | 1780 | ||
| 1781 | (defun epg-passphrase-callback-function (context key-id _handback) | 1781 | (defun epg-passphrase-callback-function (context key-id _handback) |
| 1782 | (declare (obsolete epa-passphrase-callback-function "23.1")) | ||
| 1782 | (if (eq key-id 'SYM) | 1783 | (if (eq key-id 'SYM) |
| 1783 | (read-passwd "Passphrase for symmetric encryption: " | 1784 | (read-passwd "Passphrase for symmetric encryption: " |
| 1784 | (eq (epg-context-operation context) 'encrypt)) | 1785 | (eq (epg-context-operation context) 'encrypt)) |
| @@ -1790,9 +1791,6 @@ This function is for internal use only." | |||
| 1790 | (format "Passphrase for %s %s: " key-id (cdr entry)) | 1791 | (format "Passphrase for %s %s: " key-id (cdr entry)) |
| 1791 | (format "Passphrase for %s: " key-id))))))) | 1792 | (format "Passphrase for %s: " key-id))))))) |
| 1792 | 1793 | ||
| 1793 | (make-obsolete 'epg-passphrase-callback-function | ||
| 1794 | 'epa-passphrase-callback-function "23.1") | ||
| 1795 | |||
| 1796 | (defun epg--list-keys-1 (context name mode) | 1794 | (defun epg--list-keys-1 (context name mode) |
| 1797 | (let ((args (append (if epg-gpg-home-directory | 1795 | (let ((args (append (if epg-gpg-home-directory |
| 1798 | (list "--homedir" epg-gpg-home-directory)) | 1796 | (list "--homedir" epg-gpg-home-directory)) |
| @@ -2562,6 +2560,7 @@ If you use this function, you will need to wait for the completion of | |||
| 2562 | `epg-reset' to clear a temporary output file. | 2560 | `epg-reset' to clear a temporary output file. |
| 2563 | If you are unsure, use synchronous version of this function | 2561 | If you are unsure, use synchronous version of this function |
| 2564 | `epg-sign-keys' instead." | 2562 | `epg-sign-keys' instead." |
| 2563 | (declare (obsolete nil "23.1")) | ||
| 2565 | (epg-context-set-operation context 'sign-keys) | 2564 | (epg-context-set-operation context 'sign-keys) |
| 2566 | (epg-context-set-result context nil) | 2565 | (epg-context-set-result context nil) |
| 2567 | (epg--start context (cons (if local | 2566 | (epg--start context (cons (if local |
| @@ -2572,10 +2571,10 @@ If you are unsure, use synchronous version of this function | |||
| 2572 | (epg-sub-key-id | 2571 | (epg-sub-key-id |
| 2573 | (car (epg-key-sub-key-list key)))) | 2572 | (car (epg-key-sub-key-list key)))) |
| 2574 | keys)))) | 2573 | keys)))) |
| 2575 | (make-obsolete 'epg-start-sign-keys "do not use." "23.1") | ||
| 2576 | 2574 | ||
| 2577 | (defun epg-sign-keys (context keys &optional local) | 2575 | (defun epg-sign-keys (context keys &optional local) |
| 2578 | "Sign KEYS from the key ring." | 2576 | "Sign KEYS from the key ring." |
| 2577 | (declare (obsolete nil "23.1")) | ||
| 2579 | (unwind-protect | 2578 | (unwind-protect |
| 2580 | (progn | 2579 | (progn |
| 2581 | (epg-start-sign-keys context keys local) | 2580 | (epg-start-sign-keys context keys local) |
| @@ -2586,7 +2585,6 @@ If you are unsure, use synchronous version of this function | |||
| 2586 | (list "Sign keys failed" | 2585 | (list "Sign keys failed" |
| 2587 | (epg-errors-to-string errors)))))) | 2586 | (epg-errors-to-string errors)))))) |
| 2588 | (epg-reset context))) | 2587 | (epg-reset context))) |
| 2589 | (make-obsolete 'epg-sign-keys "do not use." "23.1") | ||
| 2590 | 2588 | ||
| 2591 | (defun epg-start-generate-key (context parameters) | 2589 | (defun epg-start-generate-key (context parameters) |
| 2592 | "Initiate a key generation. | 2590 | "Initiate a key generation. |
diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog index 674a6c97eec..348765036ea 100644 --- a/lisp/erc/ChangeLog +++ b/lisp/erc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-09-25 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * erc.el (erc-send-command): Use define-obsolete-function-alias. | ||
| 4 | |||
| 1 | 2012-09-17 Chong Yidong <cyd@gnu.org> | 5 | 2012-09-17 Chong Yidong <cyd@gnu.org> |
| 2 | 6 | ||
| 3 | * erc-page.el (erc-page-function): | 7 | * erc-page.el (erc-page-function): |
diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index feef75940f3..7feadc50aca 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el | |||
| @@ -139,8 +139,8 @@ | |||
| 139 | (message (concat "ERC: The function `defvaralias' is not bound. See the " | 139 | (message (concat "ERC: The function `defvaralias' is not bound. See the " |
| 140 | "NEWS file for variable name changes since ERC 5.0.4."))) | 140 | "NEWS file for variable name changes since ERC 5.0.4."))) |
| 141 | 141 | ||
| 142 | (defalias 'erc-send-command 'erc-server-send) | 142 | (define-obsolete-function-alias 'erc-send-command |
| 143 | (erc-make-obsolete 'erc-send-command 'erc-server-send "ERC 5.1") | 143 | 'erc-server-send "ERC 5.1") |
| 144 | 144 | ||
| 145 | ;; tunable connection and authentication parameters | 145 | ;; tunable connection and authentication parameters |
| 146 | 146 | ||
diff --git a/lisp/eshell/esh-util.el b/lisp/eshell/esh-util.el index fa0336232f9..01df5fced62 100644 --- a/lisp/eshell/esh-util.el +++ b/lisp/eshell/esh-util.el | |||
| @@ -275,6 +275,7 @@ Prepend remote identification of `default-directory', if any." | |||
| 275 | 275 | ||
| 276 | (defmacro eshell-for (for-var for-list &rest forms) | 276 | (defmacro eshell-for (for-var for-list &rest forms) |
| 277 | "Iterate through a list." | 277 | "Iterate through a list." |
| 278 | (declare (obsolete dolist "24.1")) | ||
| 278 | (declare (indent 2)) | 279 | (declare (indent 2)) |
| 279 | `(let ((list-iter ,for-list)) | 280 | `(let ((list-iter ,for-list)) |
| 280 | (while list-iter | 281 | (while list-iter |
| @@ -282,9 +283,6 @@ Prepend remote identification of `default-directory', if any." | |||
| 282 | ,@forms) | 283 | ,@forms) |
| 283 | (setq list-iter (cdr list-iter))))) | 284 | (setq list-iter (cdr list-iter))))) |
| 284 | 285 | ||
| 285 | |||
| 286 | (make-obsolete 'eshell-for 'dolist "24.1") | ||
| 287 | |||
| 288 | (defun eshell-flatten-list (args) | 286 | (defun eshell-flatten-list (args) |
| 289 | "Flatten any lists within ARGS, so that there are no sublists." | 287 | "Flatten any lists within ARGS, so that there are no sublists." |
| 290 | (let ((new-list (list t))) | 288 | (let ((new-list (list t))) |
diff --git a/lisp/eshell/eshell.el b/lisp/eshell/eshell.el index c663de3f40d..a9a854221a4 100644 --- a/lisp/eshell/eshell.el +++ b/lisp/eshell/eshell.el | |||
| @@ -243,16 +243,14 @@ shells such as bash, zsh, rc, 4dos." | |||
| 243 | 243 | ||
| 244 | (defun eshell-add-to-window-buffer-names () | 244 | (defun eshell-add-to-window-buffer-names () |
| 245 | "Add `eshell-buffer-name' to `same-window-buffer-names'." | 245 | "Add `eshell-buffer-name' to `same-window-buffer-names'." |
| 246 | (declare (obsolete nil "24.3")) | ||
| 246 | (add-to-list 'same-window-buffer-names eshell-buffer-name)) | 247 | (add-to-list 'same-window-buffer-names eshell-buffer-name)) |
| 247 | (make-obsolete 'eshell-add-to-window-buffer-names | ||
| 248 | "no longer needed." "24.3") | ||
| 249 | 248 | ||
| 250 | (defun eshell-remove-from-window-buffer-names () | 249 | (defun eshell-remove-from-window-buffer-names () |
| 251 | "Remove `eshell-buffer-name' from `same-window-buffer-names'." | 250 | "Remove `eshell-buffer-name' from `same-window-buffer-names'." |
| 251 | (declare (obsolete nil "24.3")) | ||
| 252 | (setq same-window-buffer-names | 252 | (setq same-window-buffer-names |
| 253 | (delete eshell-buffer-name same-window-buffer-names))) | 253 | (delete eshell-buffer-name same-window-buffer-names))) |
| 254 | (make-obsolete 'eshell-remove-from-window-buffer-names | ||
| 255 | "no longer needed." "24.3") | ||
| 256 | 254 | ||
| 257 | (defcustom eshell-load-hook nil | 255 | (defcustom eshell-load-hook nil |
| 258 | "A hook run once Eshell has been loaded." | 256 | "A hook run once Eshell has been loaded." |
diff --git a/lisp/files.el b/lisp/files.el index 66c526266e6..76a13f6cefd 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -821,10 +821,10 @@ one or more of those symbols." | |||
| 821 | (defun locate-file-completion (string path-and-suffixes action) | 821 | (defun locate-file-completion (string path-and-suffixes action) |
| 822 | "Do completion for file names passed to `locate-file'. | 822 | "Do completion for file names passed to `locate-file'. |
| 823 | PATH-AND-SUFFIXES is a pair of lists, (DIRECTORIES . SUFFIXES)." | 823 | PATH-AND-SUFFIXES is a pair of lists, (DIRECTORIES . SUFFIXES)." |
| 824 | (declare (obsolete locate-file-completion-table "23.1")) | ||
| 824 | (locate-file-completion-table (car path-and-suffixes) | 825 | (locate-file-completion-table (car path-and-suffixes) |
| 825 | (cdr path-and-suffixes) | 826 | (cdr path-and-suffixes) |
| 826 | string nil action)) | 827 | string nil action)) |
| 827 | (make-obsolete 'locate-file-completion 'locate-file-completion-table "23.1") | ||
| 828 | 828 | ||
| 829 | (defvar locate-dominating-stop-dir-regexp | 829 | (defvar locate-dominating-stop-dir-regexp |
| 830 | (purecopy "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'") | 830 | (purecopy "\\`\\(?:[\\/][\\/][^\\/]+[\\/]\\|/\\(?:net\\|afs\\|\\.\\.\\.\\)/\\)\\'") |
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el index fbf7a672ff6..b0bc5b6b3b3 100644 --- a/lisp/htmlfontify.el +++ b/lisp/htmlfontify.el | |||
| @@ -1052,8 +1052,6 @@ haven't encountered them yet. Returns a `hfy-style-assoc'." | |||
| 1052 | (hfy-face-attr-for-class fn hfy-display-class)) | 1052 | (hfy-face-attr-for-class fn hfy-display-class)) |
| 1053 | ((and (symbolp fn) | 1053 | ((and (symbolp fn) |
| 1054 | (facep (symbol-value fn))) | 1054 | (facep (symbol-value fn))) |
| 1055 | ;; Obsolete faces like `font-lock-reference-face' are defined as | ||
| 1056 | ;; aliases for another face. | ||
| 1057 | (hfy-face-attr-for-class (symbol-value fn) hfy-display-class)) | 1055 | (hfy-face-attr-for-class (symbol-value fn) hfy-display-class)) |
| 1058 | (t nil))) | 1056 | (t nil))) |
| 1059 | 1057 | ||
diff --git a/lisp/imenu.el b/lisp/imenu.el index c2a80d69675..47a2f1e3b40 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el | |||
| @@ -326,6 +326,7 @@ PREVPOS is the variable in which we store the last position displayed." | |||
| 326 | (defun imenu-example--name-and-position () | 326 | (defun imenu-example--name-and-position () |
| 327 | "Return the current/previous sexp and its (beginning) location. | 327 | "Return the current/previous sexp and its (beginning) location. |
| 328 | Don't move point." | 328 | Don't move point." |
| 329 | (declare (obsolete "use your own function instead." "23.2")) | ||
| 329 | (save-excursion | 330 | (save-excursion |
| 330 | (forward-sexp -1) | 331 | (forward-sexp -1) |
| 331 | ;; [ydi] modified for imenu-use-markers | 332 | ;; [ydi] modified for imenu-use-markers |
| @@ -333,8 +334,6 @@ Don't move point." | |||
| 333 | (end (progn (forward-sexp) (point)))) | 334 | (end (progn (forward-sexp) (point)))) |
| 334 | (cons (buffer-substring beg end) | 335 | (cons (buffer-substring beg end) |
| 335 | beg)))) | 336 | beg)))) |
| 336 | (make-obsolete 'imenu-example--name-and-position | ||
| 337 | "use your own function instead." "23.2") | ||
| 338 | 337 | ||
| 339 | ;;; | 338 | ;;; |
| 340 | ;;; Lisp | 339 | ;;; Lisp |
| @@ -343,6 +342,7 @@ Don't move point." | |||
| 343 | (defun imenu-example--lisp-extract-index-name () | 342 | (defun imenu-example--lisp-extract-index-name () |
| 344 | ;; Example of a candidate for `imenu-extract-index-name-function'. | 343 | ;; Example of a candidate for `imenu-extract-index-name-function'. |
| 345 | ;; This will generate a flat index of definitions in a lisp file. | 344 | ;; This will generate a flat index of definitions in a lisp file. |
| 345 | (declare (obsolete nil "23.2")) | ||
| 346 | (save-match-data | 346 | (save-match-data |
| 347 | (and (looking-at "(def") | 347 | (and (looking-at "(def") |
| 348 | (condition-case nil | 348 | (condition-case nil |
| @@ -353,11 +353,11 @@ Don't move point." | |||
| 353 | (end (progn (forward-sexp -1) (point)))) | 353 | (end (progn (forward-sexp -1) (point)))) |
| 354 | (buffer-substring beg end))) | 354 | (buffer-substring beg end))) |
| 355 | (error nil))))) | 355 | (error nil))))) |
| 356 | (make-obsolete 'imenu-example--lisp-extract-index-name "your own" "23.2") | ||
| 357 | 356 | ||
| 358 | (defun imenu-example--create-lisp-index () | 357 | (defun imenu-example--create-lisp-index () |
| 359 | ;; Example of a candidate for `imenu-create-index-function'. | 358 | ;; Example of a candidate for `imenu-create-index-function'. |
| 360 | ;; It will generate a nested index of definitions. | 359 | ;; It will generate a nested index of definitions. |
| 360 | (declare (obsolete nil "23.2")) | ||
| 361 | (let ((index-alist '()) | 361 | (let ((index-alist '()) |
| 362 | (index-var-alist '()) | 362 | (index-var-alist '()) |
| 363 | (index-type-alist '()) | 363 | (index-type-alist '()) |
| @@ -401,7 +401,6 @@ Don't move point." | |||
| 401 | (push (cons "Syntax-unknown" index-unknown-alist) | 401 | (push (cons "Syntax-unknown" index-unknown-alist) |
| 402 | index-alist)) | 402 | index-alist)) |
| 403 | index-alist)) | 403 | index-alist)) |
| 404 | (make-obsolete 'imenu-example--create-lisp-index "your own" "23.2") | ||
| 405 | 404 | ||
| 406 | ;; Regular expression to find C functions | 405 | ;; Regular expression to find C functions |
| 407 | (defvar imenu-example--function-name-regexp-c | 406 | (defvar imenu-example--function-name-regexp-c |
| @@ -414,6 +413,7 @@ Don't move point." | |||
| 414 | )) | 413 | )) |
| 415 | 414 | ||
| 416 | (defun imenu-example--create-c-index (&optional regexp) | 415 | (defun imenu-example--create-c-index (&optional regexp) |
| 416 | (declare (obsolete nil "23.2")) | ||
| 417 | (let ((index-alist '()) | 417 | (let ((index-alist '()) |
| 418 | char) | 418 | char) |
| 419 | (goto-char (point-min)) | 419 | (goto-char (point-min)) |
| @@ -430,7 +430,6 @@ Don't move point." | |||
| 430 | (if (not (eq char ?\;)) | 430 | (if (not (eq char ?\;)) |
| 431 | (push (imenu-example--name-and-position) index-alist)))) | 431 | (push (imenu-example--name-and-position) index-alist)))) |
| 432 | (nreverse index-alist))) | 432 | (nreverse index-alist))) |
| 433 | (make-obsolete 'imenu-example--create-c-index "your own" "23.2") | ||
| 434 | 433 | ||
| 435 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 434 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 436 | ;;; | 435 | ;;; |
diff --git a/lisp/international/latin1-disp.el b/lisp/international/latin1-disp.el index 964f01c982c..5041f45ba97 100644 --- a/lisp/international/latin1-disp.el +++ b/lisp/international/latin1-disp.el | |||
| @@ -202,8 +202,8 @@ character set: `latin-2', `hebrew' etc." | |||
| 202 | (and char (char-displayable-p char)))) | 202 | (and char (char-displayable-p char)))) |
| 203 | 203 | ||
| 204 | ;; Backwards compatibility. | 204 | ;; Backwards compatibility. |
| 205 | (defalias 'latin1-char-displayable-p 'char-displayable-p) | 205 | (define-obsolete-function-alias 'latin1-char-displayable-p |
| 206 | (make-obsolete 'latin1-char-displayable-p 'char-displayable-p "22.1") | 206 | 'char-displayable-p "22.1") |
| 207 | 207 | ||
| 208 | (defun latin1-display-setup (set &optional force) | 208 | (defun latin1-display-setup (set &optional force) |
| 209 | "Set up Latin-1 display for characters in the given SET. | 209 | "Set up Latin-1 display for characters in the given SET. |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 2fc9759972e..a32c69a691e 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -2058,9 +2058,9 @@ See `set-language-info-alist' for use in programs." | |||
| 2058 | 2058 | ||
| 2059 | (defun princ-list (&rest args) | 2059 | (defun princ-list (&rest args) |
| 2060 | "Print all arguments with `princ', then print \"\\n\"." | 2060 | "Print all arguments with `princ', then print \"\\n\"." |
| 2061 | (declare (obsolete "use mapc and princ instead." "23.3")) | ||
| 2061 | (mapc #'princ args) | 2062 | (mapc #'princ args) |
| 2062 | (princ "\n")) | 2063 | (princ "\n")) |
| 2063 | (make-obsolete 'princ-list "use mapc and princ instead" "23.3") | ||
| 2064 | 2064 | ||
| 2065 | (put 'describe-specified-language-support 'apropos-inhibit t) | 2065 | (put 'describe-specified-language-support 'apropos-inhibit t) |
| 2066 | 2066 | ||
diff --git a/lisp/international/mule-diag.el b/lisp/international/mule-diag.el index bd7257bbc0f..43af785cc2f 100644 --- a/lisp/international/mule-diag.el +++ b/lisp/international/mule-diag.el | |||
| @@ -208,8 +208,8 @@ Character sets for defining other charsets, or for backward compatibility | |||
| 208 | "Decode a character that has code CODE in CODEPAGE. | 208 | "Decode a character that has code CODE in CODEPAGE. |
| 209 | Return a decoded character string. Each CODEPAGE corresponds to a | 209 | Return a decoded character string. Each CODEPAGE corresponds to a |
| 210 | coding system cpCODEPAGE." | 210 | coding system cpCODEPAGE." |
| 211 | (declare (obsolete decode-char "23.1")) | ||
| 211 | (decode-char (intern (format "cp%d" codepage)) code)) | 212 | (decode-char (intern (format "cp%d" codepage)) code)) |
| 212 | (make-obsolete 'decode-codepage-char 'decode-char "23.1") | ||
| 213 | 213 | ||
| 214 | ;; A variable to hold charset input history. | 214 | ;; A variable to hold charset input history. |
| 215 | (defvar charset-history nil) | 215 | (defvar charset-history nil) |
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el index 7b152a47727..3dc0b54421a 100644 --- a/lisp/international/mule-util.el +++ b/lisp/international/mule-util.el | |||
| @@ -34,39 +34,6 @@ | |||
| 34 | ;;; characters. | 34 | ;;; characters. |
| 35 | 35 | ||
| 36 | ;;;###autoload | 36 | ;;;###autoload |
| 37 | (defun string-to-sequence (string type) | ||
| 38 | "Convert STRING to a sequence of TYPE which contains characters in STRING. | ||
| 39 | TYPE should be `list' or `vector'." | ||
| 40 | ;;; (let ((len (length string)) | ||
| 41 | ;;; (i 0) | ||
| 42 | ;;; val) | ||
| 43 | (cond ((eq type 'list) | ||
| 44 | ;; Applicable post-Emacs 20.2 and asymptotically ~10 times | ||
| 45 | ;; faster than the code below: | ||
| 46 | (append string nil)) | ||
| 47 | ;;; (setq val (make-list len 0)) | ||
| 48 | ;;; (let ((l val)) | ||
| 49 | ;;; (while (< i len) | ||
| 50 | ;;; (setcar l (aref string i)) | ||
| 51 | ;;; (setq l (cdr l) i (1+ i)))))) | ||
| 52 | ((eq type 'vector) | ||
| 53 | ;; As above. | ||
| 54 | (vconcat string)) | ||
| 55 | ;;; (setq val (make-vector len 0)) | ||
| 56 | ;;; (while (< i len) | ||
| 57 | ;;; (aset val i (aref string i)) | ||
| 58 | ;;; (setq i (1+ i)))) | ||
| 59 | (t | ||
| 60 | (error "Invalid type: %s" type))) | ||
| 61 | ;;; val) | ||
| 62 | ) | ||
| 63 | |||
| 64 | ;;;###autoload | ||
| 65 | (make-obsolete 'string-to-sequence | ||
| 66 | "use `string-to-list' or `string-to-vector'." | ||
| 67 | "22.1") | ||
| 68 | |||
| 69 | ;;;###autoload | ||
| 70 | (defsubst string-to-list (string) | 37 | (defsubst string-to-list (string) |
| 71 | "Return a list of characters in STRING." | 38 | "Return a list of characters in STRING." |
| 72 | (append string nil)) | 39 | (append string nil)) |
| @@ -330,10 +297,9 @@ operations such as `find-coding-systems-region'." | |||
| 330 | "Detect a coding system of the text between FROM and TO with PRIORITY-LIST. | 297 | "Detect a coding system of the text between FROM and TO with PRIORITY-LIST. |
| 331 | PRIORITY-LIST is an alist of coding categories vs the corresponding | 298 | PRIORITY-LIST is an alist of coding categories vs the corresponding |
| 332 | coding systems ordered by priority." | 299 | coding systems ordered by priority." |
| 300 | (declare (obsolete with-coding-priority "23.1")) | ||
| 333 | `(with-coding-priority (mapcar #'cdr ,priority-list) | 301 | `(with-coding-priority (mapcar #'cdr ,priority-list) |
| 334 | (detect-coding-region ,from ,to))) | 302 | (detect-coding-region ,from ,to))) |
| 335 | (make-obsolete 'detect-coding-with-priority | ||
| 336 | "use `with-coding-priority' and `detect-coding-region'." "23.1") | ||
| 337 | 303 | ||
| 338 | ;;;###autoload | 304 | ;;;###autoload |
| 339 | (defun detect-coding-with-language-environment (from to lang-env) | 305 | (defun detect-coding-with-language-environment (from to lang-env) |
diff --git a/lisp/iswitchb.el b/lisp/iswitchb.el index 624c3500939..13ab41cf83a 100644 --- a/lisp/iswitchb.el +++ b/lisp/iswitchb.el | |||
| @@ -527,33 +527,6 @@ selected.") | |||
| 527 | 527 | ||
| 528 | ;;; FUNCTIONS | 528 | ;;; FUNCTIONS |
| 529 | 529 | ||
| 530 | ;;; ISWITCHB KEYMAP | ||
| 531 | (defun iswitchb-define-mode-map () | ||
| 532 | "Set up the keymap for `iswitchb-buffer'." | ||
| 533 | (interactive) | ||
| 534 | (let (map) | ||
| 535 | ;; generated every time so that it can inherit new functions. | ||
| 536 | ;;(or iswitchb-mode-map | ||
| 537 | |||
| 538 | (setq map (copy-keymap minibuffer-local-map)) | ||
| 539 | (define-key map "?" 'iswitchb-completion-help) | ||
| 540 | (define-key map "\C-s" 'iswitchb-next-match) | ||
| 541 | (define-key map "\C-r" 'iswitchb-prev-match) | ||
| 542 | (define-key map "\t" 'iswitchb-complete) | ||
| 543 | (define-key map "\C-j" 'iswitchb-select-buffer-text) | ||
| 544 | (define-key map "\C-t" 'iswitchb-toggle-regexp) | ||
| 545 | (define-key map "\C-x\C-f" 'iswitchb-find-file) | ||
| 546 | (define-key map "\C-n" 'iswitchb-toggle-ignore) | ||
| 547 | (define-key map "\C-c" 'iswitchb-toggle-case) | ||
| 548 | (define-key map "\C-k" 'iswitchb-kill-buffer) | ||
| 549 | (define-key map "\C-m" 'iswitchb-exit-minibuffer) | ||
| 550 | (setq iswitchb-mode-map map) | ||
| 551 | (run-hooks 'iswitchb-define-mode-map-hook))) | ||
| 552 | |||
| 553 | (make-obsolete 'iswitchb-define-mode-map | ||
| 554 | "use M-x iswitchb-mode or customize the variable `iswitchb-mode'." | ||
| 555 | "21.1") | ||
| 556 | |||
| 557 | ;;; MAIN FUNCTION | 530 | ;;; MAIN FUNCTION |
| 558 | (defun iswitchb () | 531 | (defun iswitchb () |
| 559 | "Switch to buffer matching a substring. | 532 | "Switch to buffer matching a substring. |
| @@ -619,14 +592,25 @@ If START is a string, the selection process is started with that | |||
| 619 | string. | 592 | string. |
| 620 | If MATCHES-SET is non-nil, the buflist is not updated before | 593 | If MATCHES-SET is non-nil, the buflist is not updated before |
| 621 | the selection process begins. Used by isearchb.el." | 594 | the selection process begins. Used by isearchb.el." |
| 622 | (let | 595 | ;; The map is generated every time so that it can inherit new |
| 623 | ( | 596 | ;; functions. |
| 624 | buf-sel | 597 | (let ((map (copy-keymap minibuffer-local-map)) |
| 625 | iswitchb-final-text | 598 | buf-sel iswitchb-final-text map |
| 626 | (icomplete-mode nil) ;; prevent icomplete starting up | 599 | icomplete-mode) ; prevent icomplete starting up |
| 627 | ) | 600 | (define-key map "?" 'iswitchb-completion-help) |
| 628 | 601 | (define-key map "\C-s" 'iswitchb-next-match) | |
| 629 | (iswitchb-define-mode-map) | 602 | (define-key map "\C-r" 'iswitchb-prev-match) |
| 603 | (define-key map "\t" 'iswitchb-complete) | ||
| 604 | (define-key map "\C-j" 'iswitchb-select-buffer-text) | ||
| 605 | (define-key map "\C-t" 'iswitchb-toggle-regexp) | ||
| 606 | (define-key map "\C-x\C-f" 'iswitchb-find-file) | ||
| 607 | (define-key map "\C-n" 'iswitchb-toggle-ignore) | ||
| 608 | (define-key map "\C-c" 'iswitchb-toggle-case) | ||
| 609 | (define-key map "\C-k" 'iswitchb-kill-buffer) | ||
| 610 | (define-key map "\C-m" 'iswitchb-exit-minibuffer) | ||
| 611 | (setq iswitchb-mode-map map) | ||
| 612 | (run-hooks 'iswitchb-define-mode-map-hook) | ||
| 613 | |||
| 630 | (setq iswitchb-exit nil) | 614 | (setq iswitchb-exit nil) |
| 631 | (setq iswitchb-default | 615 | (setq iswitchb-default |
| 632 | (if (bufferp default) | 616 | (if (bufferp default) |
diff --git a/lisp/mail/mailalias.el b/lisp/mail/mailalias.el index 0b55fe42e42..c7943fe40c8 100644 --- a/lisp/mail/mailalias.el +++ b/lisp/mail/mailalias.el | |||
| @@ -427,6 +427,7 @@ For use on `completion-at-point-functions'." | |||
| 427 | "Perform completion on header field or word preceding point. | 427 | "Perform completion on header field or word preceding point. |
| 428 | Completable headers are according to `mail-complete-alist'. If none matches | 428 | Completable headers are according to `mail-complete-alist'. If none matches |
| 429 | current header, calls `mail-complete-function' and passes prefix ARG if any." | 429 | current header, calls `mail-complete-function' and passes prefix ARG if any." |
| 430 | (declare (obsolete mail-completion-at-point-function "24.1")) | ||
| 430 | (interactive "P") | 431 | (interactive "P") |
| 431 | ;; Read the defaults first, if we have not done so. | 432 | ;; Read the defaults first, if we have not done so. |
| 432 | (sendmail-sync-aliases) | 433 | (sendmail-sync-aliases) |
| @@ -439,7 +440,6 @@ current header, calls `mail-complete-function' and passes prefix ARG if any." | |||
| 439 | (if data | 440 | (if data |
| 440 | (apply #'completion-in-region data) | 441 | (apply #'completion-in-region data) |
| 441 | (funcall mail-complete-function arg)))) | 442 | (funcall mail-complete-function arg)))) |
| 442 | (make-obsolete 'mail-complete 'mail-completion-at-point-function "24.1") | ||
| 443 | 443 | ||
| 444 | (defun mail-completion-expand (table) | 444 | (defun mail-completion-expand (table) |
| 445 | "Build new completion table that expands aliases. | 445 | "Build new completion table that expands aliases. |
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index b75841489c9..331754fb1b5 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -1414,6 +1414,7 @@ just append to the file, in Babyl format if necessary." | |||
| 1414 | 1414 | ||
| 1415 | (defun mail-sent-via () | 1415 | (defun mail-sent-via () |
| 1416 | "Make a Sent-via header line from each To or CC header line." | 1416 | "Make a Sent-via header line from each To or CC header line." |
| 1417 | (declare (obsolete "nobody can remember what it is for." "24.1")) | ||
| 1417 | (interactive) | 1418 | (interactive) |
| 1418 | (save-excursion | 1419 | (save-excursion |
| 1419 | ;; put a marker at the end of the header | 1420 | ;; put a marker at the end of the header |
| @@ -1433,9 +1434,6 @@ just append to the file, in Babyl format if necessary." | |||
| 1433 | (point))))) | 1434 | (point))))) |
| 1434 | ;; Insert a copy, with altered header field name. | 1435 | ;; Insert a copy, with altered header field name. |
| 1435 | (insert-before-markers "Sent-via:" to-line)))))) | 1436 | (insert-before-markers "Sent-via:" to-line)))))) |
| 1436 | |||
| 1437 | (make-obsolete 'mail-sent-via "nobody can remember what it is for." "24.1") | ||
| 1438 | |||
| 1439 | 1437 | ||
| 1440 | (defun mail-to () | 1438 | (defun mail-to () |
| 1441 | "Move point to end of To field, creating it if necessary." | 1439 | "Move point to end of To field, creating it if necessary." |
diff --git a/lisp/mouse.el b/lisp/mouse.el index 4ea84288f69..74bb97b3086 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -284,23 +284,24 @@ not it is actually displayed." | |||
| 284 | (defun mouse-major-mode-menu (event &optional prefix) | 284 | (defun mouse-major-mode-menu (event &optional prefix) |
| 285 | "Pop up a mode-specific menu of mouse commands. | 285 | "Pop up a mode-specific menu of mouse commands. |
| 286 | Default to the Edit menu if the major mode doesn't define a menu." | 286 | Default to the Edit menu if the major mode doesn't define a menu." |
| 287 | (declare (obsolete mouse-menu-major-mode-map "23.1")) | ||
| 287 | (interactive "@e\nP") | 288 | (interactive "@e\nP") |
| 288 | (run-hooks 'activate-menubar-hook 'menu-bar-update-hook) | 289 | (run-hooks 'activate-menubar-hook 'menu-bar-update-hook) |
| 289 | (popup-menu (mouse-menu-major-mode-map) event prefix)) | 290 | (popup-menu (mouse-menu-major-mode-map) event prefix)) |
| 290 | (make-obsolete 'mouse-major-mode-menu 'mouse-menu-major-mode-map "23.1") | ||
| 291 | 291 | ||
| 292 | (defun mouse-popup-menubar (event prefix) | 292 | (defun mouse-popup-menubar (event prefix) |
| 293 | "Pop up a menu equivalent to the menu bar for keyboard EVENT with PREFIX. | 293 | "Pop up a menu equivalent to the menu bar for keyboard EVENT with PREFIX. |
| 294 | The contents are the items that would be in the menu bar whether or | 294 | The contents are the items that would be in the menu bar whether or |
| 295 | not it is actually displayed." | 295 | not it is actually displayed." |
| 296 | (declare (obsolete mouse-menu-bar-map "23.1")) | ||
| 296 | (interactive "@e \nP") | 297 | (interactive "@e \nP") |
| 297 | (run-hooks 'activate-menubar-hook 'menu-bar-update-hook) | 298 | (run-hooks 'activate-menubar-hook 'menu-bar-update-hook) |
| 298 | (popup-menu (mouse-menu-bar-map) (unless (integerp event) event) prefix)) | 299 | (popup-menu (mouse-menu-bar-map) (unless (integerp event) event) prefix)) |
| 299 | (make-obsolete 'mouse-popup-menubar 'mouse-menu-bar-map "23.1") | ||
| 300 | 300 | ||
| 301 | (defun mouse-popup-menubar-stuff (event prefix) | 301 | (defun mouse-popup-menubar-stuff (event prefix) |
| 302 | "Popup a menu like either `mouse-major-mode-menu' or `mouse-popup-menubar'. | 302 | "Popup a menu like either `mouse-major-mode-menu' or `mouse-popup-menubar'. |
| 303 | Use the former if the menu bar is showing, otherwise the latter." | 303 | Use the former if the menu bar is showing, otherwise the latter." |
| 304 | (declare (obsolete nil "23.1")) | ||
| 304 | (interactive "@e\nP") | 305 | (interactive "@e\nP") |
| 305 | (run-hooks 'activate-menubar-hook 'menu-bar-update-hook) | 306 | (run-hooks 'activate-menubar-hook 'menu-bar-update-hook) |
| 306 | (popup-menu | 307 | (popup-menu |
| @@ -308,7 +309,6 @@ Use the former if the menu bar is showing, otherwise the latter." | |||
| 308 | (mouse-menu-bar-map) | 309 | (mouse-menu-bar-map) |
| 309 | (mouse-menu-major-mode-map)) | 310 | (mouse-menu-major-mode-map)) |
| 310 | event prefix)) | 311 | event prefix)) |
| 311 | (make-obsolete 'mouse-popup-menubar-stuff nil "23.1") | ||
| 312 | 312 | ||
| 313 | ;; Commands that operate on windows. | 313 | ;; Commands that operate on windows. |
| 314 | 314 | ||
diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el index c78249ced0f..bc6fd38f713 100644 --- a/lisp/net/newst-backend.el +++ b/lisp/net/newst-backend.el | |||
| @@ -421,7 +421,7 @@ headline after it has been retrieved for the first time." | |||
| 421 | "Name of the newsticker cache file." | 421 | "Name of the newsticker cache file." |
| 422 | :type 'string | 422 | :type 'string |
| 423 | :group 'newsticker-miscellaneous) | 423 | :group 'newsticker-miscellaneous) |
| 424 | (make-obsolete 'newsticker-cache-filename 'newsticker-dir "23.1") | 424 | (make-obsolete-variable 'newsticker-cache-filename 'newsticker-dir "23.1") |
| 425 | 425 | ||
| 426 | (defcustom newsticker-dir | 426 | (defcustom newsticker-dir |
| 427 | (locate-user-emacs-file "newsticker/" ".newsticker/") | 427 | (locate-user-emacs-file "newsticker/" ".newsticker/") |
diff --git a/lisp/net/newst-treeview.el b/lisp/net/newst-treeview.el index b44f1f9c86d..fc356a303e2 100644 --- a/lisp/net/newst-treeview.el +++ b/lisp/net/newst-treeview.el | |||
| @@ -128,7 +128,7 @@ Example: (\"Topmost group\" \"feed1\" (\"subgroup1\" \"feed 2\") | |||
| 128 | "Name of the newsticker groups settings file." | 128 | "Name of the newsticker groups settings file." |
| 129 | :type 'string | 129 | :type 'string |
| 130 | :group 'newsticker-treeview) | 130 | :group 'newsticker-treeview) |
| 131 | (make-obsolete 'newsticker-groups-filename 'newsticker-dir "23.1") | 131 | (make-obsolete-variable 'newsticker-groups-filename 'newsticker-dir "23.1") |
| 132 | 132 | ||
| 133 | ;; ====================================================================== | 133 | ;; ====================================================================== |
| 134 | ;;; internal variables | 134 | ;;; internal variables |
diff --git a/lisp/net/snmp-mode.el b/lisp/net/snmp-mode.el index c155d53b6d0..217f9dc8b30 100644 --- a/lisp/net/snmp-mode.el +++ b/lisp/net/snmp-mode.el | |||
| @@ -175,9 +175,9 @@ This is used during Tempo template completion." | |||
| 175 | (defvar snmp-font-lock-keywords-3 | 175 | (defvar snmp-font-lock-keywords-3 |
| 176 | (append | 176 | (append |
| 177 | '(("\\([^\n]+\\)[ \t]+::=[ \t]+\\(SEQUENCE\\)[ \t]+{" | 177 | '(("\\([^\n]+\\)[ \t]+::=[ \t]+\\(SEQUENCE\\)[ \t]+{" |
| 178 | (1 font-lock-reference-face) (2 font-lock-keyword-face)) | 178 | (1 font-lock-constant-face) (2 font-lock-keyword-face)) |
| 179 | ("::=[ \t]*{[ \t]*\\([a-z0-9].*[ \t]+\\)?\\([0-9]+\\)[ \t]*}" | 179 | ("::=[ \t]*{[ \t]*\\([a-z0-9].*[ \t]+\\)?\\([0-9]+\\)[ \t]*}" |
| 180 | (1 font-lock-reference-face nil t) (2 font-lock-variable-name-face))) | 180 | (1 font-lock-constant-face nil t) (2 font-lock-variable-name-face))) |
| 181 | snmp-font-lock-keywords-2) | 181 | snmp-font-lock-keywords-2) |
| 182 | "Gaudy SNMP MIB mode expression highlighting.") | 182 | "Gaudy SNMP MIB mode expression highlighting.") |
| 183 | 183 | ||
diff --git a/lisp/password-cache.el b/lisp/password-cache.el index 9f5c18f3415..83815a6a270 100644 --- a/lisp/password-cache.el +++ b/lisp/password-cache.el | |||
| @@ -102,13 +102,12 @@ Warning: the password is cached without checking that it is | |||
| 102 | correct. It is better to check the password before caching. If | 102 | correct. It is better to check the password before caching. If |
| 103 | you must use this function, take care to check passwords and | 103 | you must use this function, take care to check passwords and |
| 104 | remove incorrect ones from the cache." | 104 | remove incorrect ones from the cache." |
| 105 | (declare (obsolete password-read "23.1")) | ||
| 105 | (let ((password (password-read prompt key))) | 106 | (let ((password (password-read prompt key))) |
| 106 | (when (and password key) | 107 | (when (and password key) |
| 107 | (password-cache-add key password)) | 108 | (password-cache-add key password)) |
| 108 | password)) | 109 | password)) |
| 109 | 110 | ||
| 110 | (make-obsolete 'password-read-and-add 'password-read "23.1") | ||
| 111 | |||
| 112 | (defun password-cache-remove (key) | 111 | (defun password-cache-remove (key) |
| 113 | "Remove password indexed by KEY from password cache. | 112 | "Remove password indexed by KEY from password cache. |
| 114 | This is typically run by a timer setup from `password-cache-add', | 113 | This is typically run by a timer setup from `password-cache-add', |
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el index 3f120961486..fc05af8c7f5 100644 --- a/lisp/pcomplete.el +++ b/lisp/pcomplete.el | |||
| @@ -724,6 +724,7 @@ this is `comint-dynamic-complete-functions'." | |||
| 724 | 724 | ||
| 725 | (defun pcomplete-parse-comint-arguments () | 725 | (defun pcomplete-parse-comint-arguments () |
| 726 | "Parse whitespace separated arguments in the current region." | 726 | "Parse whitespace separated arguments in the current region." |
| 727 | (declare (obsolete comint-parse-pcomplete-arguments "24.1")) | ||
| 727 | (let ((begin (save-excursion (comint-bol nil) (point))) | 728 | (let ((begin (save-excursion (comint-bol nil) (point))) |
| 728 | (end (point)) | 729 | (end (point)) |
| 729 | begins args) | 730 | begins args) |
| @@ -743,8 +744,6 @@ this is `comint-dynamic-complete-functions'." | |||
| 743 | (push (buffer-substring-no-properties (car begins) (point)) | 744 | (push (buffer-substring-no-properties (car begins) (point)) |
| 744 | args)) | 745 | args)) |
| 745 | (cons (nreverse args) (nreverse begins))))) | 746 | (cons (nreverse args) (nreverse begins))))) |
| 746 | (make-obsolete 'pcomplete-parse-comint-arguments | ||
| 747 | 'comint-parse-pcomplete-arguments "24.1") | ||
| 748 | 747 | ||
| 749 | (defun pcomplete-parse-arguments (&optional expand-p) | 748 | (defun pcomplete-parse-arguments (&optional expand-p) |
| 750 | "Parse the command line arguments. Most completions need this info." | 749 | "Parse the command line arguments. Most completions need this info." |
diff --git a/lisp/progmodes/cwarn.el b/lisp/progmodes/cwarn.el index 9ea71ad36f5..becbcb7a3de 100644 --- a/lisp/progmodes/cwarn.el +++ b/lisp/progmodes/cwarn.el | |||
| @@ -191,13 +191,7 @@ if ARG is omitted or nil." | |||
| 191 | (if font-lock-mode (font-lock-fontify-buffer))) | 191 | (if font-lock-mode (font-lock-fontify-buffer))) |
| 192 | 192 | ||
| 193 | ;;;###autoload | 193 | ;;;###autoload |
| 194 | (defun turn-on-cwarn-mode () | 194 | (define-obsolete-function-alias 'turn-on-cwarn-mode 'cwarn-mode "24.1") |
| 195 | "Turn on CWarn mode. | ||
| 196 | |||
| 197 | This function is designed to be added to hooks, for example: | ||
| 198 | (add-hook 'c-mode-hook 'turn-on-cwarn-mode)" | ||
| 199 | (cwarn-mode 1)) | ||
| 200 | (make-obsolete 'turn-on-cwarn-mode 'cwarn-mode "24.1") | ||
| 201 | 195 | ||
| 202 | ;;}}} | 196 | ;;}}} |
| 203 | ;;{{{ Help functions | 197 | ;;{{{ Help functions |
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index b4d550bcee0..e94919ee2a9 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -4079,11 +4079,10 @@ option followed by a colon `:' if the option accepts an argument." | |||
| 4079 | (defun sh-maybe-here-document (arg) | 4079 | (defun sh-maybe-here-document (arg) |
| 4080 | "Insert self. Without prefix, following unquoted `<' inserts here document. | 4080 | "Insert self. Without prefix, following unquoted `<' inserts here document. |
| 4081 | The document is bounded by `sh-here-document-word'." | 4081 | The document is bounded by `sh-here-document-word'." |
| 4082 | (declare (obsolete sh-electric-here-document-mode "24.3")) | ||
| 4082 | (interactive "*P") | 4083 | (interactive "*P") |
| 4083 | (self-insert-command (prefix-numeric-value arg)) | 4084 | (self-insert-command (prefix-numeric-value arg)) |
| 4084 | (or arg (sh--maybe-here-document))) | 4085 | (or arg (sh--maybe-here-document))) |
| 4085 | (make-obsolete 'sh--maybe-here-document | ||
| 4086 | 'sh-electric-here-document-mode "24.3") | ||
| 4087 | 4086 | ||
| 4088 | (defun sh--maybe-here-document () | 4087 | (defun sh--maybe-here-document () |
| 4089 | (or (not (looking-back "[^<]<<")) | 4088 | (or (not (looking-back "[^<]<<")) |
diff --git a/lisp/progmodes/vera-mode.el b/lisp/progmodes/vera-mode.el index 31f2fc1fe31..a2f71ff2ab8 100644 --- a/lisp/progmodes/vera-mode.el +++ b/lisp/progmodes/vera-mode.el | |||
| @@ -587,12 +587,6 @@ Key bindings: | |||
| 587 | ;;; Font locking | 587 | ;;; Font locking |
| 588 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 588 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 589 | 589 | ||
| 590 | ;; XEmacs compatibility | ||
| 591 | (when (featurep 'xemacs) | ||
| 592 | (require 'font-lock) | ||
| 593 | (copy-face 'font-lock-reference-face 'font-lock-constant-face) | ||
| 594 | (copy-face 'font-lock-preprocessor-face 'font-lock-builtin-face)) | ||
| 595 | |||
| 596 | (defun vera-font-lock-match-item (limit) | 590 | (defun vera-font-lock-match-item (limit) |
| 597 | "Match, and move over, any declaration item after point. | 591 | "Match, and move over, any declaration item after point. |
| 598 | Adapted from `font-lock-match-c-style-declaration-item-and-skip-to-next'." | 592 | Adapted from `font-lock-match-c-style-declaration-item-and-skip-to-next'." |
diff --git a/lisp/progmodes/which-func.el b/lisp/progmodes/which-func.el index 02340425dfa..4819149bdf6 100644 --- a/lisp/progmodes/which-func.el +++ b/lisp/progmodes/which-func.el | |||
| @@ -234,9 +234,7 @@ It creates the Imenu index for the buffer, if necessary." | |||
| 234 | (error "Error in which-func-update: %S" info)))))) | 234 | (error "Error in which-func-update: %S" info)))))) |
| 235 | 235 | ||
| 236 | ;;;###autoload | 236 | ;;;###autoload |
| 237 | (defun which-func-mode (&optional arg) | 237 | (define-obsolete-function-alias 'which-func-mode 'which-function-mode "24.1") |
| 238 | (which-function-mode arg)) | ||
| 239 | (make-obsolete 'which-func-mode 'which-function-mode "24.1") | ||
| 240 | 238 | ||
| 241 | (defvar which-func-update-timer nil) | 239 | (defvar which-func-update-timer nil) |
| 242 | 240 | ||
diff --git a/lisp/replace.el b/lisp/replace.el index f192574a7e2..82edb0037fb 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -378,35 +378,33 @@ regexp in `search-whitespace-regexp'. | |||
| 378 | Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace | 378 | Third arg DELIMITED (prefix arg if interactive), if non-nil, means replace |
| 379 | only matches that are surrounded by word boundaries. | 379 | only matches that are surrounded by word boundaries. |
| 380 | Fourth and fifth arg START and END specify the region to operate on." | 380 | Fourth and fifth arg START and END specify the region to operate on." |
| 381 | (declare (obsolete "use the `\\,' feature of `query-replace-regexp' | ||
| 382 | for interactive calls, and `search-forward-regexp'/`replace-match' | ||
| 383 | for Lisp calls." "22.1")) | ||
| 381 | (interactive | 384 | (interactive |
| 382 | (progn | 385 | (progn |
| 383 | (barf-if-buffer-read-only) | 386 | (barf-if-buffer-read-only) |
| 384 | (let* ((from | 387 | (let* ((from |
| 385 | ;; Let-bind the history var to disable the "foo -> bar" default. | 388 | ;; Let-bind the history var to disable the "foo -> bar" |
| 386 | ;; Maybe we shouldn't disable this default, but for now I'll | 389 | ;; default. Maybe we shouldn't disable this default, but |
| 387 | ;; leave it off. --Stef | 390 | ;; for now I'll leave it off. --Stef |
| 388 | (let ((query-replace-to-history-variable nil)) | 391 | (let ((query-replace-to-history-variable nil)) |
| 389 | (query-replace-read-from "Query replace regexp" t))) | 392 | (query-replace-read-from "Query replace regexp" t))) |
| 390 | (to (list (read-from-minibuffer | 393 | (to (list (read-from-minibuffer |
| 391 | (format "Query replace regexp %s with eval: " | 394 | (format "Query replace regexp %s with eval: " |
| 392 | (query-replace-descr from)) | 395 | (query-replace-descr from)) |
| 393 | nil nil t query-replace-to-history-variable from t)))) | 396 | nil nil t query-replace-to-history-variable from t)))) |
| 394 | ;; We make TO a list because replace-match-string-symbols requires one, | 397 | ;; We make TO a list because replace-match-string-symbols requires one, |
| 395 | ;; and the user might enter a single token. | 398 | ;; and the user might enter a single token. |
| 396 | (replace-match-string-symbols to) | 399 | (replace-match-string-symbols to) |
| 397 | (list from (car to) current-prefix-arg | 400 | (list from (car to) current-prefix-arg |
| 398 | (if (and transient-mark-mode mark-active) | 401 | (if (and transient-mark-mode mark-active) |
| 399 | (region-beginning)) | 402 | (region-beginning)) |
| 400 | (if (and transient-mark-mode mark-active) | 403 | (if (and transient-mark-mode mark-active) |
| 401 | (region-end)))))) | 404 | (region-end)))))) |
| 402 | (perform-replace regexp (cons 'replace-eval-replacement to-expr) | 405 | (perform-replace regexp (cons 'replace-eval-replacement to-expr) |
| 403 | t 'literal delimited nil nil start end)) | 406 | t 'literal delimited nil nil start end)) |
| 404 | 407 | ||
| 405 | (make-obsolete 'query-replace-regexp-eval | ||
| 406 | "for interactive use, use the special `\\,' feature of | ||
| 407 | `query-replace-regexp' instead. Non-interactively, a loop | ||
| 408 | using `search-forward-regexp' and `replace-match' is preferred." "22.1") | ||
| 409 | |||
| 410 | (defun map-query-replace-regexp (regexp to-strings &optional n start end) | 408 | (defun map-query-replace-regexp (regexp to-strings &optional n start end) |
| 411 | "Replace some matches for REGEXP with various strings, in rotation. | 409 | "Replace some matches for REGEXP with various strings, in rotation. |
| 412 | The second argument TO-STRINGS contains the replacement strings, separated | 410 | The second argument TO-STRINGS contains the replacement strings, separated |
diff --git a/lisp/savehist.el b/lisp/savehist.el index 215314d7053..cca958ff0a1 100644 --- a/lisp/savehist.el +++ b/lisp/savehist.el | |||
| @@ -209,6 +209,7 @@ histories, which is probably undesirable." | |||
| 209 | If `savehist-file' is in the old format that doesn't record | 209 | If `savehist-file' is in the old format that doesn't record |
| 210 | the value of `savehist-minibuffer-history-variables', that | 210 | the value of `savehist-minibuffer-history-variables', that |
| 211 | value is deducted from the contents of the file." | 211 | value is deducted from the contents of the file." |
| 212 | (declare (obsolete savehist-mode "22.1")) | ||
| 212 | (savehist-mode 1) | 213 | (savehist-mode 1) |
| 213 | ;; Old versions of savehist distributed with XEmacs didn't save | 214 | ;; Old versions of savehist distributed with XEmacs didn't save |
| 214 | ;; savehist-minibuffer-history-variables. If that variable is nil | 215 | ;; savehist-minibuffer-history-variables. If that variable is nil |
| @@ -225,7 +226,6 @@ value is deducted from the contents of the file." | |||
| 225 | ;; Collect VAR, i.e. (nth form 1). | 226 | ;; Collect VAR, i.e. (nth form 1). |
| 226 | (push (nth 1 form) vars)) | 227 | (push (nth 1 form) vars)) |
| 227 | vars))))) | 228 | vars))))) |
| 228 | (make-obsolete 'savehist-load 'savehist-mode "22.1") | ||
| 229 | 229 | ||
| 230 | (defun savehist-install () | 230 | (defun savehist-install () |
| 231 | "Hook savehist into Emacs. | 231 | "Hook savehist into Emacs. |
diff --git a/lisp/simple.el b/lisp/simple.el index e1b8f37e46c..417dedb43db 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -6380,9 +6380,8 @@ With prefix argument N, move N items (negative N means move backward)." | |||
| 6380 | (point)))) | 6380 | (point)))) |
| 6381 | 6381 | ||
| 6382 | (defun choose-completion-delete-max-match (string) | 6382 | (defun choose-completion-delete-max-match (string) |
| 6383 | (declare (obsolete choose-completion-guess-base-position "23.2")) | ||
| 6383 | (delete-region (choose-completion-guess-base-position string) (point))) | 6384 | (delete-region (choose-completion-guess-base-position string) (point))) |
| 6384 | (make-obsolete 'choose-completion-delete-max-match | ||
| 6385 | 'choose-completion-guess-base-position "23.2") | ||
| 6386 | 6385 | ||
| 6387 | (defvar choose-completion-string-functions nil | 6386 | (defvar choose-completion-string-functions nil |
| 6388 | "Functions that may override the normal insertion of a completion choice. | 6387 | "Functions that may override the normal insertion of a completion choice. |
diff --git a/lisp/subr.el b/lisp/subr.el index b9b8e627672..e5725b3b3fa 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -461,18 +461,18 @@ If TEST is omitted or nil, `equal' is used." | |||
| 461 | (setq tail (cdr tail))) | 461 | (setq tail (cdr tail))) |
| 462 | value)) | 462 | value)) |
| 463 | 463 | ||
| 464 | (make-obsolete 'assoc-ignore-case 'assoc-string "22.1") | ||
| 465 | (defun assoc-ignore-case (key alist) | 464 | (defun assoc-ignore-case (key alist) |
| 466 | "Like `assoc', but ignores differences in case and text representation. | 465 | "Like `assoc', but ignores differences in case and text representation. |
| 467 | KEY must be a string. Upper-case and lower-case letters are treated as equal. | 466 | KEY must be a string. Upper-case and lower-case letters are treated as equal. |
| 468 | Unibyte strings are converted to multibyte for comparison." | 467 | Unibyte strings are converted to multibyte for comparison." |
| 468 | (declare (obsolete assoc-string "22.1")) | ||
| 469 | (assoc-string key alist t)) | 469 | (assoc-string key alist t)) |
| 470 | 470 | ||
| 471 | (make-obsolete 'assoc-ignore-representation 'assoc-string "22.1") | ||
| 472 | (defun assoc-ignore-representation (key alist) | 471 | (defun assoc-ignore-representation (key alist) |
| 473 | "Like `assoc', but ignores differences in text representation. | 472 | "Like `assoc', but ignores differences in text representation. |
| 474 | KEY must be a string. | 473 | KEY must be a string. |
| 475 | Unibyte strings are converted to multibyte for comparison." | 474 | Unibyte strings are converted to multibyte for comparison." |
| 475 | (declare (obsolete assoc-string "22.1")) | ||
| 476 | (assoc-string key alist nil)) | 476 | (assoc-string key alist nil)) |
| 477 | 477 | ||
| 478 | (defun member-ignore-case (elt list) | 478 | (defun member-ignore-case (elt list) |
| @@ -1179,12 +1179,13 @@ be a list of the form returned by `event-start' and `event-end'." | |||
| 1179 | "Mocklisp-compatibility insert function. | 1179 | "Mocklisp-compatibility insert function. |
| 1180 | Like the function `insert' except that any argument that is a number | 1180 | Like the function `insert' except that any argument that is a number |
| 1181 | is converted into a string by expressing it in decimal." | 1181 | is converted into a string by expressing it in decimal." |
| 1182 | (declare (obsolete insert "22.1")) | ||
| 1182 | (dolist (el args) | 1183 | (dolist (el args) |
| 1183 | (insert (if (integerp el) (number-to-string el) el)))) | 1184 | (insert (if (integerp el) (number-to-string el) el)))) |
| 1184 | (make-obsolete 'insert-string 'insert "22.1") | ||
| 1185 | 1185 | ||
| 1186 | (defun makehash (&optional test) (make-hash-table :test (or test 'eql))) | 1186 | (defun makehash (&optional test) |
| 1187 | (make-obsolete 'makehash 'make-hash-table "22.1") | 1187 | (declare (obsolete make-hash-table "22.1")) |
| 1188 | (make-hash-table :test (or test 'eql))) | ||
| 1188 | 1189 | ||
| 1189 | ;; These are used by VM and some old programs | 1190 | ;; These are used by VM and some old programs |
| 1190 | (defalias 'focus-frame 'ignore "") | 1191 | (defalias 'focus-frame 'ignore "") |
| @@ -1250,11 +1251,6 @@ is converted into a string by expressing it in decimal." | |||
| 1250 | (make-obsolete 'process-filter-multibyte-p nil "23.1") | 1251 | (make-obsolete 'process-filter-multibyte-p nil "23.1") |
| 1251 | (make-obsolete 'set-process-filter-multibyte nil "23.1") | 1252 | (make-obsolete 'set-process-filter-multibyte nil "23.1") |
| 1252 | 1253 | ||
| 1253 | (make-obsolete-variable | ||
| 1254 | 'mode-line-inverse-video | ||
| 1255 | "use the appropriate faces instead." | ||
| 1256 | "21.1") | ||
| 1257 | |||
| 1258 | ;; Lisp manual only updated in 22.1. | 1254 | ;; Lisp manual only updated in 22.1. |
| 1259 | (define-obsolete-variable-alias 'executing-macro 'executing-kbd-macro | 1255 | (define-obsolete-variable-alias 'executing-macro 'executing-kbd-macro |
| 1260 | "before 19.34") | 1256 | "before 19.34") |
| @@ -1911,8 +1907,8 @@ This function is called directly from the C code." | |||
| 1911 | "Read the following input sexp, and run it whenever FILE is loaded. | 1907 | "Read the following input sexp, and run it whenever FILE is loaded. |
| 1912 | This makes or adds to an entry on `after-load-alist'. | 1908 | This makes or adds to an entry on `after-load-alist'. |
| 1913 | FILE should be the name of a library, with no directory name." | 1909 | FILE should be the name of a library, with no directory name." |
| 1910 | (declare (obsolete eval-after-load "23.2")) | ||
| 1914 | (eval-after-load file (read))) | 1911 | (eval-after-load file (read))) |
| 1915 | (make-obsolete 'eval-next-after-load `eval-after-load "23.2") | ||
| 1916 | 1912 | ||
| 1917 | (defun display-delayed-warnings () | 1913 | (defun display-delayed-warnings () |
| 1918 | "Display delayed warnings from `delayed-warnings-list'. | 1914 | "Display delayed warnings from `delayed-warnings-list'. |
diff --git a/lisp/term.el b/lisp/term.el index d5f35006357..60e59768786 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -4048,6 +4048,7 @@ Returns `partial' if completed as far as possible with the completion matches. | |||
| 4048 | Returns `listed' if a completion listing was shown. | 4048 | Returns `listed' if a completion listing was shown. |
| 4049 | 4049 | ||
| 4050 | See also `term-dynamic-complete-filename'." | 4050 | See also `term-dynamic-complete-filename'." |
| 4051 | (declare (obsolete completion-in-region "23.2")) | ||
| 4051 | (let* ((completion-ignore-case nil) | 4052 | (let* ((completion-ignore-case nil) |
| 4052 | (candidates (mapcar (function (lambda (x) (list x))) candidates)) | 4053 | (candidates (mapcar (function (lambda (x) (list x))) candidates)) |
| 4053 | (completions (all-completions stub candidates))) | 4054 | (completions (all-completions stub candidates))) |
| @@ -4081,8 +4082,6 @@ See also `term-dynamic-complete-filename'." | |||
| 4081 | (t | 4082 | (t |
| 4082 | (message "Partially completed") | 4083 | (message "Partially completed") |
| 4083 | 'partial))))))) | 4084 | 'partial))))))) |
| 4084 | (make-obsolete 'term-dynamic-simple-complete 'completion-in-region "23.2") | ||
| 4085 | |||
| 4086 | 4085 | ||
| 4087 | (defun term-dynamic-list-filename-completions () | 4086 | (defun term-dynamic-list-filename-completions () |
| 4088 | "List in help buffer possible completions of the filename at point." | 4087 | "List in help buffer possible completions of the filename at point." |
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index a72f12ccb9b..62665654654 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2012-09-25 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * url-parse.el (url-recreate-url-attributes): | ||
| 4 | * url-util.el (url-generate-unique-filename): Use declare to mark | ||
| 5 | obsolete. | ||
| 6 | |||
| 1 | 2012-08-14 Stefan Monnier <monnier@iro.umontreal.ca> | 7 | 2012-08-14 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 8 | ||
| 3 | * url-http.el (url-http-parse-headers): Re-enable file-name-handlers | 9 | * url-http.el (url-http-parse-headers): Re-enable file-name-handlers |
diff --git a/lisp/url/url-parse.el b/lisp/url/url-parse.el index 4007d1f35b3..cb61a021251 100644 --- a/lisp/url/url-parse.el +++ b/lisp/url/url-parse.el | |||
| @@ -98,6 +98,7 @@ If the specified port number is the default, return nil." | |||
| 98 | 98 | ||
| 99 | (defun url-recreate-url-attributes (urlobj) | 99 | (defun url-recreate-url-attributes (urlobj) |
| 100 | "Recreate the attributes of an URL string from the parsed URLOBJ." | 100 | "Recreate the attributes of an URL string from the parsed URLOBJ." |
| 101 | (declare (obsolete nil "24.3")) | ||
| 101 | (when (url-attributes urlobj) | 102 | (when (url-attributes urlobj) |
| 102 | (concat ";" | 103 | (concat ";" |
| 103 | (mapconcat (lambda (x) | 104 | (mapconcat (lambda (x) |
| @@ -105,7 +106,6 @@ If the specified port number is the default, return nil." | |||
| 105 | (concat (car x) "=" (cdr x)) | 106 | (concat (car x) "=" (cdr x)) |
| 106 | (car x))) | 107 | (car x))) |
| 107 | (url-attributes urlobj) ";")))) | 108 | (url-attributes urlobj) ";")))) |
| 108 | (make-obsolete 'url-recreate-url-attributes nil "24.3") | ||
| 109 | 109 | ||
| 110 | ;;;###autoload | 110 | ;;;###autoload |
| 111 | (defun url-generic-parse-url (url) | 111 | (defun url-generic-parse-url (url) |
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el index f654830e387..4761f71ad8f 100644 --- a/lisp/url/url-util.el +++ b/lisp/url/url-util.el | |||
| @@ -593,6 +593,7 @@ Has a preference for looking backward when not directly on a symbol." | |||
| 593 | 593 | ||
| 594 | (defun url-generate-unique-filename (&optional fmt) | 594 | (defun url-generate-unique-filename (&optional fmt) |
| 595 | "Generate a unique filename in `url-temporary-directory'." | 595 | "Generate a unique filename in `url-temporary-directory'." |
| 596 | (declare (obsolete make-temp-file "23.1")) | ||
| 596 | ;; This variable is obsolete, but so is this function. | 597 | ;; This variable is obsolete, but so is this function. |
| 597 | (let ((tempdir (with-no-warnings url-temporary-directory))) | 598 | (let ((tempdir (with-no-warnings url-temporary-directory))) |
| 598 | (if (not fmt) | 599 | (if (not fmt) |
| @@ -614,7 +615,6 @@ Has a preference for looking backward when not directly on a symbol." | |||
| 614 | (setq x (1+ x) | 615 | (setq x (1+ x) |
| 615 | fname (format fmt (concat base (int-to-string x))))) | 616 | fname (format fmt (concat base (int-to-string x))))) |
| 616 | (expand-file-name fname tempdir))))) | 617 | (expand-file-name fname tempdir))))) |
| 617 | (make-obsolete 'url-generate-unique-filename 'make-temp-file "23.1") | ||
| 618 | 618 | ||
| 619 | (defun url-extract-mime-headers () | 619 | (defun url-extract-mime-headers () |
| 620 | "Set `url-current-mime-headers' in current buffer." | 620 | "Set `url-current-mime-headers' in current buffer." |
diff --git a/lisp/vc/ediff-init.el b/lisp/vc/ediff-init.el index 674688df1c2..2c41ce8c457 100644 --- a/lisp/vc/ediff-init.el +++ b/lisp/vc/ediff-init.el | |||
| @@ -753,6 +753,7 @@ to temp files in buffer jobs and when Ediff needs to find fine differences." | |||
| 753 | "Check the current version against MAJOR and MINOR version numbers. | 753 | "Check the current version against MAJOR and MINOR version numbers. |
| 754 | The comparison uses operator OP, which may be any of: =, >, >=, <, <=. | 754 | The comparison uses operator OP, which may be any of: =, >, >=, <, <=. |
| 755 | TYPE-OF-EMACS is either 'xemacs or 'emacs." | 755 | TYPE-OF-EMACS is either 'xemacs or 'emacs." |
| 756 | (declare (obsolete version< "23.1")) | ||
| 756 | (and (cond ((eq type-of-emacs 'xemacs) (featurep 'xemacs)) | 757 | (and (cond ((eq type-of-emacs 'xemacs) (featurep 'xemacs)) |
| 757 | ((eq type-of-emacs 'emacs) (featurep 'emacs)) | 758 | ((eq type-of-emacs 'emacs) (featurep 'emacs)) |
| 758 | (t)) | 759 | (t)) |
| @@ -767,9 +768,6 @@ TYPE-OF-EMACS is either 'xemacs or 'emacs." | |||
| 767 | (t | 768 | (t |
| 768 | (error "%S: Invalid op in ediff-check-version" op))))) | 769 | (error "%S: Invalid op in ediff-check-version" op))))) |
| 769 | 770 | ||
| 770 | ;; ediff-check-version seems to be totally unused anyway. | ||
| 771 | (make-obsolete 'ediff-check-version 'version< "23.1") | ||
| 772 | |||
| 773 | (defun ediff-color-display-p () | 771 | (defun ediff-color-display-p () |
| 774 | (condition-case nil | 772 | (condition-case nil |
| 775 | (if (featurep 'xemacs) | 773 | (if (featurep 'xemacs) |
diff --git a/lisp/vc/ediff-wind.el b/lisp/vc/ediff-wind.el index eee3f40fd96..d7118ad7970 100644 --- a/lisp/vc/ediff-wind.el +++ b/lisp/vc/ediff-wind.el | |||
| @@ -63,13 +63,11 @@ | |||
| 63 | 63 | ||
| 64 | ;; Determine which window setup function to use based on current window system. | 64 | ;; Determine which window setup function to use based on current window system. |
| 65 | (defun ediff-choose-window-setup-function-automatically () | 65 | (defun ediff-choose-window-setup-function-automatically () |
| 66 | (declare (obsolete ediff-setup-windows-default "24.3")) | ||
| 66 | (if (ediff-window-display-p) | 67 | (if (ediff-window-display-p) |
| 67 | 'ediff-setup-windows-multiframe | 68 | 'ediff-setup-windows-multiframe |
| 68 | 'ediff-setup-windows-plain)) | 69 | 'ediff-setup-windows-plain)) |
| 69 | 70 | ||
| 70 | (make-obsolete 'ediff-choose-window-setup-function-automatically | ||
| 71 | 'ediff-setup-windows-default "24.3") | ||
| 72 | |||
| 73 | (defcustom ediff-window-setup-function 'ediff-setup-windows-default | 71 | (defcustom ediff-window-setup-function 'ediff-setup-windows-default |
| 74 | "Function called to set up windows. | 72 | "Function called to set up windows. |
| 75 | Ediff provides a choice of three functions: | 73 | Ediff provides a choice of three functions: |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 3657e221e6a..89e0d0c3ecd 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -1506,8 +1506,9 @@ to override the value of `vc-diff-switches' and `diff-switches'." | |||
| 1506 | (when (listp switches) switches)))) | 1506 | (when (listp switches) switches)))) |
| 1507 | 1507 | ||
| 1508 | ;; Old def for compatibility with Emacs-21.[123]. | 1508 | ;; Old def for compatibility with Emacs-21.[123]. |
| 1509 | (defmacro vc-diff-switches-list (backend) `(vc-switches ',backend 'diff)) | 1509 | (defmacro vc-diff-switches-list (backend) |
| 1510 | (make-obsolete 'vc-diff-switches-list 'vc-switches "22.1") | 1510 | (declare (obsolete vc-switches "22.1")) |
| 1511 | `(vc-switches ',backend 'diff)) | ||
| 1511 | 1512 | ||
| 1512 | (defun vc-diff-finish (buffer messages) | 1513 | (defun vc-diff-finish (buffer messages) |
| 1513 | ;; The empty sync output case has already been handled, so the only | 1514 | ;; The empty sync output case has already been handled, so the only |
diff --git a/lisp/view.el b/lisp/view.el index 41cb9752288..7ed42bf7ddc 100644 --- a/lisp/view.el +++ b/lisp/view.el | |||
| @@ -513,6 +513,7 @@ that can be added see the RETURN-TO-ALIST argument of the | |||
| 513 | function `view-mode-exit'. If `view-return-to-alist' contains an | 513 | function `view-mode-exit'. If `view-return-to-alist' contains an |
| 514 | entry for the selected window, purge that entry from | 514 | entry for the selected window, purge that entry from |
| 515 | `view-return-to-alist' before adding ITEM." | 515 | `view-return-to-alist' before adding ITEM." |
| 516 | (declare (obsolete "this function has no effect." "24.1")) | ||
| 516 | (with-current-buffer buffer | 517 | (with-current-buffer buffer |
| 517 | (when view-return-to-alist | 518 | (when view-return-to-alist |
| 518 | (let* ((list view-return-to-alist) | 519 | (let* ((list view-return-to-alist) |
| @@ -535,7 +536,6 @@ entry for the selected window, purge that entry from | |||
| 535 | (when item | 536 | (when item |
| 536 | (setq view-return-to-alist | 537 | (setq view-return-to-alist |
| 537 | (cons item view-return-to-alist))))) | 538 | (cons item view-return-to-alist))))) |
| 538 | (make-obsolete 'view-return-to-alist-update "this function has no effect." "24.1") | ||
| 539 | 539 | ||
| 540 | ;;;###autoload | 540 | ;;;###autoload |
| 541 | (defun view-mode-enter (&optional quit-restore exit-action) | 541 | (defun view-mode-enter (&optional quit-restore exit-action) |
diff --git a/src/ChangeLog b/src/ChangeLog index f90445045ae..0f59d6088a5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-09-25 Chong Yidong <cyd@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (mode_line_inverse_video): Delete obsolete variable. | ||
| 4 | |||
| 1 | 2012-09-24 Stefan Monnier <monnier@iro.umontreal.ca> | 5 | 2012-09-24 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 6 | ||
| 3 | * bytecode.c (exec_byte_code): Signal an error instead of aborting, | 7 | * bytecode.c (exec_byte_code): Signal an error instead of aborting, |
diff --git a/src/xdisp.c b/src/xdisp.c index 423ecab8dc7..0f02997be22 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -20162,10 +20162,6 @@ display_menu_bar (struct window *w) | |||
| 20162 | this. */ | 20162 | this. */ |
| 20163 | it.paragraph_embedding = L2R; | 20163 | it.paragraph_embedding = L2R; |
| 20164 | 20164 | ||
| 20165 | if (! mode_line_inverse_video) | ||
| 20166 | /* Force the menu-bar to be displayed in the default face. */ | ||
| 20167 | it.base_face_id = it.face_id = DEFAULT_FACE_ID; | ||
| 20168 | |||
| 20169 | /* Clear all rows of the menu bar. */ | 20165 | /* Clear all rows of the menu bar. */ |
| 20170 | for (i = 0; i < FRAME_MENU_BAR_LINES (f); ++i) | 20166 | for (i = 0; i < FRAME_MENU_BAR_LINES (f); ++i) |
| 20171 | { | 20167 | { |
| @@ -20335,10 +20331,6 @@ display_mode_line (struct window *w, enum face_id face_id, Lisp_Object format) | |||
| 20335 | 20331 | ||
| 20336 | it.glyph_row->mode_line_p = 1; | 20332 | it.glyph_row->mode_line_p = 1; |
| 20337 | 20333 | ||
| 20338 | if (! mode_line_inverse_video) | ||
| 20339 | /* Force the mode-line to be displayed in the default face. */ | ||
| 20340 | it.base_face_id = it.face_id = DEFAULT_FACE_ID; | ||
| 20341 | |||
| 20342 | /* FIXME: This should be controlled by a user option. But | 20334 | /* FIXME: This should be controlled by a user option. But |
| 20343 | supporting such an option is not trivial, since the mode line is | 20335 | supporting such an option is not trivial, since the mode line is |
| 20344 | made up of many separate strings. */ | 20336 | made up of many separate strings. */ |
| @@ -28930,12 +28922,6 @@ A value of nil means to respect the value of `truncate-lines'. | |||
| 28930 | If `word-wrap' is enabled, you might want to reduce this. */); | 28922 | If `word-wrap' is enabled, you might want to reduce this. */); |
| 28931 | Vtruncate_partial_width_windows = make_number (50); | 28923 | Vtruncate_partial_width_windows = make_number (50); |
| 28932 | 28924 | ||
| 28933 | DEFVAR_BOOL ("mode-line-inverse-video", mode_line_inverse_video, | ||
| 28934 | doc: /* When nil, display the mode-line/header-line/menu-bar in the default face. | ||
| 28935 | Any other value means to use the appropriate face, `mode-line', | ||
| 28936 | `header-line', or `menu' respectively. */); | ||
| 28937 | mode_line_inverse_video = 1; | ||
| 28938 | |||
| 28939 | DEFVAR_LISP ("line-number-display-limit", Vline_number_display_limit, | 28925 | DEFVAR_LISP ("line-number-display-limit", Vline_number_display_limit, |
| 28940 | doc: /* Maximum buffer size for which line number should be displayed. | 28926 | doc: /* Maximum buffer size for which line number should be displayed. |
| 28941 | If the buffer is bigger than this, the line number does not appear | 28927 | If the buffer is bigger than this, the line number does not appear |