diff options
| author | Paul Eggert | 2011-07-11 18:39:28 +0000 |
|---|---|---|
| committer | Paul Eggert | 2011-07-11 18:39:28 +0000 |
| commit | e9eb6f14fe334d0e37d2037c952e6541eeb242ad (patch) | |
| tree | 7087ce37a1e6233093f80a4fa653e91a1f96529c /lisp | |
| parent | e3c25c689524aa85ce37840fff344cc297cf42ec (diff) | |
| parent | 07151e498ff9174518675e14b619aca4b8307733 (diff) | |
| download | emacs-e9eb6f14fe334d0e37d2037c952e6541eeb242ad.tar.gz emacs-e9eb6f14fe334d0e37d2037c952e6541eeb242ad.zip | |
Merge from trunk.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 29 | ||||
| -rw-r--r-- | lisp/cus-edit.el | 2 | ||||
| -rw-r--r-- | lisp/dired-x.el | 17 | ||||
| -rw-r--r-- | lisp/files.el | 2 | ||||
| -rw-r--r-- | lisp/loadhist.el | 32 | ||||
| -rw-r--r-- | lisp/mh-e/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/printing.el | 17 | ||||
| -rw-r--r-- | lisp/subr.el | 11 | ||||
| -rw-r--r-- | lisp/vc/ediff.el | 2 |
9 files changed, 88 insertions, 26 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a3faab15c35..e024646cd26 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,32 @@ | |||
| 1 | 2011-07-11 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * loadhist.el (unload-feature-special-hooks): | ||
| 4 | Add `auto-coding-functions', `fill-nobreak-predicate' and | ||
| 5 | `find-directory-functions' (bug#5327). | ||
| 6 | |||
| 7 | 2011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 8 | |||
| 9 | * vc/ediff.el (ediff-patch-file): Clarify doc string (bug#3138). | ||
| 10 | |||
| 11 | * cus-edit.el (custom-guess-name-alist): -alist variables should | ||
| 12 | use the `alist' type (bug#3120). Suggested by Drew Adams. | ||
| 13 | |||
| 14 | * printing.el: Add documentation to all the `pr-toggle-' commands. | ||
| 15 | |||
| 16 | 2011-07-11 Leo <sdl.web@gmail.com> (tiny change) | ||
| 17 | |||
| 18 | * files.el (toggle-read-only): Only do the `C-x C-q' warning on VC | ||
| 19 | backends where it makes sense (bug#2623). | ||
| 20 | |||
| 21 | 2011-07-11 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 22 | |||
| 23 | * dired-x.el (dired-guess-default): Remove duplicate shell command | ||
| 24 | entries (bug#2028). | ||
| 25 | (dired-guess-default): Fix grammar in doc string (bug#2028). | ||
| 26 | (dired-guess-shell-alist-user): Clarify the example a bit (bug#2030). | ||
| 27 | |||
| 28 | * subr.el (remove-duplicates): New conveniency function. | ||
| 29 | |||
| 1 | 2011-07-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | 30 | 2011-07-10 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 31 | ||
| 3 | * tool-bar.el (tool-bar-mode): Clarify positive/negative arguments | 32 | * tool-bar.el (tool-bar-mode): Clarify positive/negative arguments |
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el index 820bcfeacba..22b7cc6b3fe 100644 --- a/lisp/cus-edit.el +++ b/lisp/cus-edit.el | |||
| @@ -594,7 +594,7 @@ WIDGET is the widget to apply the filter entries of MENU on." | |||
| 594 | ("-function\\'" function) | 594 | ("-function\\'" function) |
| 595 | ("-functions\\'" (repeat function)) | 595 | ("-functions\\'" (repeat function)) |
| 596 | ("-list\\'" (repeat sexp)) | 596 | ("-list\\'" (repeat sexp)) |
| 597 | ("-alist\\'" (repeat (cons sexp sexp)))) | 597 | ("-alist\\'" (alist :key-type sexp :value-type sexp))) |
| 598 | "Alist of (MATCH TYPE). | 598 | "Alist of (MATCH TYPE). |
| 599 | 599 | ||
| 600 | MATCH should be a regexp matching the name of a symbol, and TYPE should | 600 | MATCH should be a regexp matching the name of a symbol, and TYPE should |
diff --git a/lisp/dired-x.el b/lisp/dired-x.el index 8395a8b905f..a341e4f07a1 100644 --- a/lisp/dired-x.el +++ b/lisp/dired-x.el | |||
| @@ -1056,12 +1056,11 @@ You can set this variable in your ~/.emacs. For example, to add rules for | |||
| 1056 | `.foo' and `.bar' files, write | 1056 | `.foo' and `.bar' files, write |
| 1057 | 1057 | ||
| 1058 | \(setq dired-guess-shell-alist-user | 1058 | \(setq dired-guess-shell-alist-user |
| 1059 | (list (list \"\\\\.foo\\\\'\" \"FOO-COMMAND\");; fixed rule | 1059 | '((\"\\\\.foo\\\\'\" \"FOO-COMMAND\") |
| 1060 | ;; possibly more rules ... | 1060 | (\"\\\\.bar\\\\'\" |
| 1061 | (list \"\\\\.bar\\\\'\";; rule with condition test | 1061 | (if condition |
| 1062 | '(if condition | 1062 | \"BAR-COMMAND-1\" |
| 1063 | \"BAR-COMMAND-1\" | 1063 | \"BAR-COMMAND-2\"))))" |
| 1064 | \"BAR-COMMAND-2\")))\)" | ||
| 1065 | :group 'dired-x | 1064 | :group 'dired-x |
| 1066 | :type '(alist :key-type regexp :value-type (repeat sexp))) | 1065 | :type '(alist :key-type regexp :value-type (repeat sexp))) |
| 1067 | 1066 | ||
| @@ -1072,7 +1071,7 @@ You can set this variable in your ~/.emacs. For example, to add rules for | |||
| 1072 | :type 'boolean) | 1071 | :type 'boolean) |
| 1073 | 1072 | ||
| 1074 | (defun dired-guess-default (files) | 1073 | (defun dired-guess-default (files) |
| 1075 | "Guess a shell commands for FILES. Return command or list of commands. | 1074 | "Return a shell command, or a list of commands, appropriate for FILES. |
| 1076 | See `dired-guess-shell-alist-user'." | 1075 | See `dired-guess-shell-alist-user'." |
| 1077 | 1076 | ||
| 1078 | (let* ((case-fold-search dired-guess-shell-case-fold-search) | 1077 | (let* ((case-fold-search dired-guess-shell-case-fold-search) |
| @@ -1104,8 +1103,8 @@ See `dired-guess-shell-alist-user'." | |||
| 1104 | ;; Return commands or nil if flist is still non-nil. | 1103 | ;; Return commands or nil if flist is still non-nil. |
| 1105 | ;; Evaluate the commands in order that any logical testing will be done. | 1104 | ;; Evaluate the commands in order that any logical testing will be done. |
| 1106 | (if (cdr cmds) | 1105 | (if (cdr cmds) |
| 1107 | (mapcar #'eval cmds) | 1106 | (remove-duplicates (mapcar #'eval cmds)) |
| 1108 | (eval (car cmds))))) ; single command | 1107 | (eval (car cmds))))) ; single command |
| 1109 | 1108 | ||
| 1110 | (defun dired-guess-shell-command (prompt files) | 1109 | (defun dired-guess-shell-command (prompt files) |
| 1111 | "Ask user with PROMPT for a shell command, guessing a default from FILES." | 1110 | "Ask user with PROMPT for a shell command, guessing a default from FILES." |
diff --git a/lisp/files.el b/lisp/files.el index c9f85ff6a1a..1071adb6967 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -4694,7 +4694,7 @@ and `view-read-only' is non-nil, enter view mode." | |||
| 4694 | (view-mode-enter)) | 4694 | (view-mode-enter)) |
| 4695 | (t (setq buffer-read-only (not buffer-read-only)) | 4695 | (t (setq buffer-read-only (not buffer-read-only)) |
| 4696 | (force-mode-line-update))) | 4696 | (force-mode-line-update))) |
| 4697 | (if (vc-backend buffer-file-name) | 4697 | (if (memq (vc-backend buffer-file-name) '(RCS SCCS)) |
| 4698 | (message "%s" (substitute-command-keys | 4698 | (message "%s" (substitute-command-keys |
| 4699 | (concat "File is under version-control; " | 4699 | (concat "File is under version-control; " |
| 4700 | "use \\[vc-next-action] to check in/out")))))) | 4700 | "use \\[vc-next-action] to check in/out")))))) |
diff --git a/lisp/loadhist.el b/lisp/loadhist.el index 943eac42b02..0b569199935 100644 --- a/lisp/loadhist.el +++ b/lisp/loadhist.el | |||
| @@ -115,20 +115,28 @@ from a file." | |||
| 115 | (defvaralias 'loadhist-hook-functions 'unload-feature-special-hooks) | 115 | (defvaralias 'loadhist-hook-functions 'unload-feature-special-hooks) |
| 116 | (defvar unload-feature-special-hooks | 116 | (defvar unload-feature-special-hooks |
| 117 | '(after-change-functions after-insert-file-functions | 117 | '(after-change-functions after-insert-file-functions |
| 118 | after-make-frame-functions auto-fill-function before-change-functions | 118 | after-make-frame-functions auto-coding-functions |
| 119 | auto-fill-function before-change-functions | ||
| 119 | blink-paren-function buffer-access-fontify-functions | 120 | blink-paren-function buffer-access-fontify-functions |
| 120 | choose-completion-string-functions comint-output-filter-functions | 121 | choose-completion-string-functions |
| 121 | command-line-functions comment-indent-function compilation-finish-functions | 122 | comint-output-filter-functions command-line-functions |
| 123 | comment-indent-function compilation-finish-functions | ||
| 122 | delete-frame-functions disabled-command-function | 124 | delete-frame-functions disabled-command-function |
| 123 | find-file-not-found-functions font-lock-beginning-of-syntax-function | 125 | fill-nobreak-predicate find-directory-functions |
| 124 | font-lock-fontify-buffer-function font-lock-fontify-region-function | 126 | find-file-not-found-functions |
| 125 | font-lock-mark-block-function font-lock-syntactic-face-function | 127 | font-lock-beginning-of-syntax-function |
| 126 | font-lock-unfontify-buffer-function font-lock-unfontify-region-function | 128 | font-lock-fontify-buffer-function |
| 127 | kill-buffer-query-functions kill-emacs-query-functions lisp-indent-function | 129 | font-lock-fontify-region-function |
| 128 | mouse-position-function redisplaylay-end-trigger-functions | 130 | font-lock-mark-block-function |
| 129 | suspend-tty-functions temp-buffer-show-function window-scroll-functions | 131 | font-lock-syntactic-face-function |
| 130 | window-size-change-functions write-contents-functions write-file-functions | 132 | font-lock-unfontify-buffer-function |
| 131 | write-region-annotate-functions) | 133 | font-lock-unfontify-region-function |
| 134 | kill-buffer-query-functions kill-emacs-query-functions | ||
| 135 | lisp-indent-function mouse-position-function | ||
| 136 | redisplaylay-end-trigger-functions suspend-tty-functions | ||
| 137 | temp-buffer-show-function window-scroll-functions | ||
| 138 | window-size-change-functions write-contents-functions | ||
| 139 | write-file-functions write-region-annotate-functions) | ||
| 132 | "A list of special hooks from Info node `(elisp)Standard Hooks'. | 140 | "A list of special hooks from Info node `(elisp)Standard Hooks'. |
| 133 | 141 | ||
| 134 | These are symbols with hooklike values whose names don't end in | 142 | These are symbols with hooklike values whose names don't end in |
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog index 197c87a26ab..2a254c89d25 100644 --- a/lisp/mh-e/ChangeLog +++ b/lisp/mh-e/ChangeLog | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | 2011-07-10 Bill Wohler <wohler@newt.com> | 1 | 2011-07-10 Bill Wohler <wohler@newt.com> |
| 2 | 2 | ||
| 3 | Release MH-E version 8.9.90. | 3 | Release MH-E version 8.2.90. |
| 4 | 4 | ||
| 5 | * mh-e.el (Version, mh-version): Update for release 8.2.90. | 5 | * mh-e.el (Version, mh-version): Update for release 8.2.90. |
| 6 | 6 | ||
diff --git a/lisp/printing.el b/lisp/printing.el index e66cca25933..76fdeaec500 100644 --- a/lisp/printing.el +++ b/lisp/printing.el | |||
| @@ -5346,102 +5346,119 @@ If menu binding was not done, calls `pr-menu-bind'." | |||
| 5346 | 5346 | ||
| 5347 | 5347 | ||
| 5348 | (defun pr-toggle-file-duplex-menu (&optional no-menu) | 5348 | (defun pr-toggle-file-duplex-menu (&optional no-menu) |
| 5349 | "Toggle whether to print PostScript files in duplex mode." | ||
| 5349 | (interactive) | 5350 | (interactive) |
| 5350 | (pr-toggle 'pr-file-duplex "PS file duplex" nil 7 5 nil | 5351 | (pr-toggle 'pr-file-duplex "PS file duplex" nil 7 5 nil |
| 5351 | '("PostScript Print" "File") no-menu)) | 5352 | '("PostScript Print" "File") no-menu)) |
| 5352 | 5353 | ||
| 5353 | 5354 | ||
| 5354 | (defun pr-toggle-file-tumble-menu (&optional no-menu) | 5355 | (defun pr-toggle-file-tumble-menu (&optional no-menu) |
| 5356 | "Toggle whether to print PostScript files in tumble mode." | ||
| 5355 | (interactive) | 5357 | (interactive) |
| 5356 | (pr-toggle 'pr-file-tumble "PS file tumble" nil 8 5 nil | 5358 | (pr-toggle 'pr-file-tumble "PS file tumble" nil 8 5 nil |
| 5357 | '("PostScript Print" "File") no-menu)) | 5359 | '("PostScript Print" "File") no-menu)) |
| 5358 | 5360 | ||
| 5359 | 5361 | ||
| 5360 | (defun pr-toggle-file-landscape-menu (&optional no-menu) | 5362 | (defun pr-toggle-file-landscape-menu (&optional no-menu) |
| 5363 | "Toggle whether to print PostScript files in landscape orientation." | ||
| 5361 | (interactive) | 5364 | (interactive) |
| 5362 | (pr-toggle 'pr-file-landscape "PS file landscape" nil 6 5 nil | 5365 | (pr-toggle 'pr-file-landscape "PS file landscape" nil 6 5 nil |
| 5363 | '("PostScript Print" "File") no-menu)) | 5366 | '("PostScript Print" "File") no-menu)) |
| 5364 | 5367 | ||
| 5365 | 5368 | ||
| 5366 | (defun pr-toggle-ghostscript-menu (&optional no-menu) | 5369 | (defun pr-toggle-ghostscript-menu (&optional no-menu) |
| 5370 | "Toggle whether to print using ghostscript." | ||
| 5367 | (interactive) | 5371 | (interactive) |
| 5368 | (pr-toggle 'pr-print-using-ghostscript "Printing using ghostscript" | 5372 | (pr-toggle 'pr-print-using-ghostscript "Printing using ghostscript" |
| 5369 | 'postscript-process 2 12 'toggle nil no-menu)) | 5373 | 'postscript-process 2 12 'toggle nil no-menu)) |
| 5370 | 5374 | ||
| 5371 | 5375 | ||
| 5372 | (defun pr-toggle-faces-menu (&optional no-menu) | 5376 | (defun pr-toggle-faces-menu (&optional no-menu) |
| 5377 | "Toggle whether to print with face attributes." | ||
| 5373 | (interactive) | 5378 | (interactive) |
| 5374 | (pr-toggle 'pr-faces-p "Printing with faces" | 5379 | (pr-toggle 'pr-faces-p "Printing with faces" |
| 5375 | 'postscript-process 1 12 'toggle nil no-menu)) | 5380 | 'postscript-process 1 12 'toggle nil no-menu)) |
| 5376 | 5381 | ||
| 5377 | 5382 | ||
| 5378 | (defun pr-toggle-spool-menu (&optional no-menu) | 5383 | (defun pr-toggle-spool-menu (&optional no-menu) |
| 5384 | "Toggle whether to spool printing in a buffer." | ||
| 5379 | (interactive) | 5385 | (interactive) |
| 5380 | (pr-toggle 'pr-spool-p "Spooling printing" | 5386 | (pr-toggle 'pr-spool-p "Spooling printing" |
| 5381 | 'postscript-process 0 12 'toggle nil no-menu)) | 5387 | 'postscript-process 0 12 'toggle nil no-menu)) |
| 5382 | 5388 | ||
| 5383 | 5389 | ||
| 5384 | (defun pr-toggle-duplex-menu (&optional no-menu) | 5390 | (defun pr-toggle-duplex-menu (&optional no-menu) |
| 5391 | "Toggle whether to generate PostScript for a two-sided printer." | ||
| 5385 | (interactive) | 5392 | (interactive) |
| 5386 | (pr-toggle 'ps-spool-duplex "Printing duplex" | 5393 | (pr-toggle 'ps-spool-duplex "Printing duplex" |
| 5387 | 'postscript-options 5 12 'toggle nil no-menu)) | 5394 | 'postscript-options 5 12 'toggle nil no-menu)) |
| 5388 | 5395 | ||
| 5389 | 5396 | ||
| 5390 | (defun pr-toggle-tumble-menu (&optional no-menu) | 5397 | (defun pr-toggle-tumble-menu (&optional no-menu) |
| 5398 | "Toggle how pages on opposite sides of a sheet are oriented." | ||
| 5391 | (interactive) | 5399 | (interactive) |
| 5392 | (pr-toggle 'ps-spool-tumble "Tumble" | 5400 | (pr-toggle 'ps-spool-tumble "Tumble" |
| 5393 | 'postscript-options 6 12 'toggle nil no-menu)) | 5401 | 'postscript-options 6 12 'toggle nil no-menu)) |
| 5394 | 5402 | ||
| 5395 | 5403 | ||
| 5396 | (defun pr-toggle-landscape-menu (&optional no-menu) | 5404 | (defun pr-toggle-landscape-menu (&optional no-menu) |
| 5405 | "Toggle whether to print in landscape mode." | ||
| 5397 | (interactive) | 5406 | (interactive) |
| 5398 | (pr-toggle 'ps-landscape-mode "Landscape" | 5407 | (pr-toggle 'ps-landscape-mode "Landscape" |
| 5399 | 'postscript-options 0 12 'toggle nil no-menu)) | 5408 | 'postscript-options 0 12 'toggle nil no-menu)) |
| 5400 | 5409 | ||
| 5401 | 5410 | ||
| 5402 | (defun pr-toggle-upside-down-menu (&optional no-menu) | 5411 | (defun pr-toggle-upside-down-menu (&optional no-menu) |
| 5412 | "Toggle whether to print upside-down (that is, rotated by 180 degrees)." | ||
| 5403 | (interactive) | 5413 | (interactive) |
| 5404 | (pr-toggle 'ps-print-upside-down "Upside-Down" | 5414 | (pr-toggle 'ps-print-upside-down "Upside-Down" |
| 5405 | 'postscript-options 7 12 'toggle nil no-menu)) | 5415 | 'postscript-options 7 12 'toggle nil no-menu)) |
| 5406 | 5416 | ||
| 5407 | 5417 | ||
| 5408 | (defun pr-toggle-line-menu (&optional no-menu) | 5418 | (defun pr-toggle-line-menu (&optional no-menu) |
| 5419 | "Toggle whether to means print line numbers." | ||
| 5409 | (interactive) | 5420 | (interactive) |
| 5410 | (pr-toggle 'ps-line-number "Line number" | 5421 | (pr-toggle 'ps-line-number "Line number" |
| 5411 | 'postscript-options 3 12 'toggle nil no-menu)) | 5422 | 'postscript-options 3 12 'toggle nil no-menu)) |
| 5412 | 5423 | ||
| 5413 | 5424 | ||
| 5414 | (defun pr-toggle-zebra-menu (&optional no-menu) | 5425 | (defun pr-toggle-zebra-menu (&optional no-menu) |
| 5426 | "Toggle whether to print zebra stripes." | ||
| 5415 | (interactive) | 5427 | (interactive) |
| 5416 | (pr-toggle 'ps-zebra-stripes "Zebra stripe" | 5428 | (pr-toggle 'ps-zebra-stripes "Zebra stripe" |
| 5417 | 'postscript-options 4 12 'toggle nil no-menu)) | 5429 | 'postscript-options 4 12 'toggle nil no-menu)) |
| 5418 | 5430 | ||
| 5419 | 5431 | ||
| 5420 | (defun pr-toggle-header-menu (&optional no-menu) | 5432 | (defun pr-toggle-header-menu (&optional no-menu) |
| 5433 | "Toggle whether to print a header at the top of each page." | ||
| 5421 | (interactive) | 5434 | (interactive) |
| 5422 | (pr-toggle 'ps-print-header "Print header" | 5435 | (pr-toggle 'ps-print-header "Print header" |
| 5423 | 'postscript-options 1 12 'toggle nil no-menu)) | 5436 | 'postscript-options 1 12 'toggle nil no-menu)) |
| 5424 | 5437 | ||
| 5425 | 5438 | ||
| 5426 | (defun pr-toggle-header-frame-menu (&optional no-menu) | 5439 | (defun pr-toggle-header-frame-menu (&optional no-menu) |
| 5440 | "Toggle whether to draw a gaudy frame around the header." | ||
| 5427 | (interactive) | 5441 | (interactive) |
| 5428 | (pr-toggle 'ps-print-header-frame "Print header frame" | 5442 | (pr-toggle 'ps-print-header-frame "Print header frame" |
| 5429 | 'postscript-options 2 12 'toggle nil no-menu)) | 5443 | 'postscript-options 2 12 'toggle nil no-menu)) |
| 5430 | 5444 | ||
| 5431 | 5445 | ||
| 5432 | (defun pr-toggle-lock-menu (&optional no-menu) | 5446 | (defun pr-toggle-lock-menu (&optional no-menu) |
| 5447 | "Toggle whether the menu is locked while selecting toggle options." | ||
| 5433 | (interactive) | 5448 | (interactive) |
| 5434 | (pr-toggle 'pr-menu-lock "Menu lock" | 5449 | (pr-toggle 'pr-menu-lock "Menu lock" |
| 5435 | 'printing 2 12 'toggle nil no-menu)) | 5450 | 'printing 2 12 'toggle nil no-menu)) |
| 5436 | 5451 | ||
| 5437 | 5452 | ||
| 5438 | (defun pr-toggle-region-menu (&optional no-menu) | 5453 | (defun pr-toggle-region-menu (&optional no-menu) |
| 5454 | "Toggle whether the region is automagically detected." | ||
| 5439 | (interactive) | 5455 | (interactive) |
| 5440 | (pr-toggle 'pr-auto-region "Auto region" | 5456 | (pr-toggle 'pr-auto-region "Auto region" |
| 5441 | 'printing 0 12 'toggle nil no-menu)) | 5457 | 'printing 0 12 'toggle nil no-menu)) |
| 5442 | 5458 | ||
| 5443 | 5459 | ||
| 5444 | (defun pr-toggle-mode-menu (&optional no-menu) | 5460 | (defun pr-toggle-mode-menu (&optional no-menu) |
| 5461 | "Toggle whether major-mode specific printing is prefered over normal printing." | ||
| 5445 | (interactive) | 5462 | (interactive) |
| 5446 | (pr-toggle 'pr-auto-mode "Auto mode" | 5463 | (pr-toggle 'pr-auto-mode "Auto mode" |
| 5447 | 'printing 1 12 'toggle nil no-menu)) | 5464 | 'printing 1 12 'toggle nil no-menu)) |
diff --git a/lisp/subr.el b/lisp/subr.el index 5c9d6c8d724..2b7ba17e10c 100644 --- a/lisp/subr.el +++ b/lisp/subr.el | |||
| @@ -173,7 +173,7 @@ value of last one, or nil if there are none. | |||
| 173 | (progn | 173 | (progn |
| 174 | ;; If we reload subr.el after having loaded CL, be careful not to | 174 | ;; If we reload subr.el after having loaded CL, be careful not to |
| 175 | ;; overwrite CL's extended definition of `dolist', `dotimes', | 175 | ;; overwrite CL's extended definition of `dolist', `dotimes', |
| 176 | ;; `declare', `push' and `pop'. | 176 | ;; `declare', `push', `pop' and `remove-duplicates'. |
| 177 | 177 | ||
| 178 | (defmacro dolist (spec &rest body) | 178 | (defmacro dolist (spec &rest body) |
| 179 | "Loop over a list. | 179 | "Loop over a list. |
| @@ -250,6 +250,15 @@ the return value (nil if RESULT is omitted). | |||
| 250 | Treated as a declaration when used at the right place in a | 250 | Treated as a declaration when used at the right place in a |
| 251 | `defmacro' form. \(See Info anchor `(elisp)Definition of declare'.)" | 251 | `defmacro' form. \(See Info anchor `(elisp)Definition of declare'.)" |
| 252 | nil) | 252 | nil) |
| 253 | |||
| 254 | (defun remove-duplicates (list) | ||
| 255 | "Return a copy of LIST with all duplicate elements removed." | ||
| 256 | (let ((result nil)) | ||
| 257 | (while list | ||
| 258 | (unless (member (car list) result) | ||
| 259 | (push (car list) result)) | ||
| 260 | (pop list)) | ||
| 261 | (nreverse result))) | ||
| 253 | )) | 262 | )) |
| 254 | 263 | ||
| 255 | (defmacro ignore-errors (&rest body) | 264 | (defmacro ignore-errors (&rest body) |
diff --git a/lisp/vc/ediff.el b/lisp/vc/ediff.el index 5e352493dc9..464fdc0a589 100644 --- a/lisp/vc/ediff.el +++ b/lisp/vc/ediff.el | |||
| @@ -1348,7 +1348,7 @@ buffer." | |||
| 1348 | 1348 | ||
| 1349 | ;;;###autoload | 1349 | ;;;###autoload |
| 1350 | (defun ediff-patch-file (&optional arg patch-buf) | 1350 | (defun ediff-patch-file (&optional arg patch-buf) |
| 1351 | "Run Ediff by patching SOURCE-FILENAME. | 1351 | "Query for a file name, and then run Ediff by patching that file. |
| 1352 | If optional PATCH-BUF is given, use the patch in that buffer | 1352 | If optional PATCH-BUF is given, use the patch in that buffer |
| 1353 | and don't ask the user. | 1353 | and don't ask the user. |
| 1354 | If prefix argument, then: if even argument, assume that the patch is in a | 1354 | If prefix argument, then: if even argument, assume that the patch is in a |