aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKaroly Lorentey2005-07-10 19:26:29 +0000
committerKaroly Lorentey2005-07-10 19:26:29 +0000
commitc6fb7c433ceae69c5d1627fefeefc02bf6c19537 (patch)
treea8891c6337a6286da6b65e548ca487dec2004394 /lisp
parentcc7d6d6f6d422efeba9934486bdf7b418391660f (diff)
parent9750d7720ab04db6daf909dba5e257c165d70722 (diff)
downloademacs-c6fb7c433ceae69c5d1627fefeefc02bf6c19537.tar.gz
emacs-c6fb7c433ceae69c5d1627fefeefc02bf6c19537.zip
Merged from miles@gnu.org--gnu-2005 (patch 474)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-474 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-377
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog16
-rw-r--r--lisp/elide-head.el4
-rw-r--r--lisp/replace.el17
3 files changed, 24 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a40afc7733a..f5dbc71ff97 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,13 @@
12005-07-07 Juanma Barranquero <lekktu@gmail.com>
2
3 * replace.el (occur-rename-buffer): Use `generate-new-buffer' also
4 when called non-interactively. Doc fix.
5
62005-07-07 Lute Kamstra <lute@gnu.org>
7
8 * elide-head.el (elide-head-headers-to-hide): Recognize the FSF's
9 new address as well.
10
12005-07-07 Kenichi Handa <handa@m17n.org> 112005-07-07 Kenichi Handa <handa@m17n.org>
2 12
3 * international/mule.el (make-coding-system): Describe 13 * international/mule.el (make-coding-system): Describe
@@ -6,13 +16,13 @@
6 ascii-incompatible. 16 ascii-incompatible.
7 (set-keyboard-coding-system): Likewise. 17 (set-keyboard-coding-system): Likewise.
8 18
9 * international/mule-cmds.el (set-default-coding-systems): Don't 19 * international/mule-cmds.el (set-default-coding-systems):
10 set default-file-name-coding-system and 20 Don't set default-file-name-coding-system and
11 default-keyboard-coding-system if coding-system is 21 default-keyboard-coding-system if coding-system is
12 ASCII-incompatible. 22 ASCII-incompatible.
13 23
14 * international/utf-16.el: Declare that all UTF-16-based coding 24 * international/utf-16.el: Declare that all UTF-16-based coding
15 systems ASCII-incompatible. 25 systems are ASCII-incompatible.
16 26
172005-07-07 Nick Roberts <nickrob@snap.net.nz> 272005-07-07 Nick Roberts <nickrob@snap.net.nz>
18 28
diff --git a/lisp/elide-head.el b/lisp/elide-head.el
index f47e9e871ea..86e3365c5dd 100644
--- a/lisp/elide-head.el
+++ b/lisp/elide-head.el
@@ -53,9 +53,9 @@
53 53
54(defcustom elide-head-headers-to-hide 54(defcustom elide-head-headers-to-hide
55 '(("is free software; you can redistribute it" . ; GNU boilerplate 55 '(("is free software; you can redistribute it" . ; GNU boilerplate
56 "Boston, MA 02111-1307, USA\\.") 56 "Boston, MA 0211\\(1-1307\\|0-1301\\), USA\\.")
57 ("The Regents of the University of California\\. All rights reserved\\." . 57 ("The Regents of the University of California\\. All rights reserved\\." .
58 "SUCH DAMAGE\\.") ; BSD 58 "SUCH DAMAGE\\.") ; BSD
59 ("Permission is hereby granted, free of charge" . ; X11 59 ("Permission is hereby granted, free of charge" . ; X11
60 "authorization from the X Consortium\\.")) 60 "authorization from the X Consortium\\."))
61 "Alist of regexps defining start end end of text to elide. 61 "Alist of regexps defining start end end of text to elide.
diff --git a/lisp/replace.el b/lisp/replace.el
index 4b745d54433..a8ef61e828d 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -921,21 +921,22 @@ If the value is nil, don't highlight the buffer names specially."
921 (when current-prefix-arg 921 (when current-prefix-arg
922 (prefix-numeric-value current-prefix-arg)))) 922 (prefix-numeric-value current-prefix-arg))))
923 923
924(defun occur-rename-buffer (&optional unique-p) 924(defun occur-rename-buffer (&optional unique-p interactive-p)
925 "Rename the current *Occur* buffer to *Occur: original-buffer-name*. 925 "Rename the current *Occur* buffer to *Occur: original-buffer-name*.
926Here `original-buffer-name' is the buffer name were occur was originally run. 926Here `original-buffer-name' is the buffer name were Occur was originally run.
927When given the prefix argument, the renaming will not clobber the existing 927When given the prefix argument, or called non-interactively, the renaming
928buffer(s) of that name, but use `generate-new-buffer-name' instead. 928will not clobber the existing buffer(s) of that name, but use
929You can add this to `occur-mode-hook' if you always want a separate *Occur* 929`generate-new-buffer-name' instead. You can add this to `occur-hook'
930buffer for each buffer where you invoke `occur'." 930if you always want a separate *Occur* buffer for each buffer where you
931 (interactive "P") 931invoke `occur'."
932 (interactive "P\np")
932 (with-current-buffer 933 (with-current-buffer
933 (if (eq major-mode 'occur-mode) (current-buffer) (get-buffer "*Occur*")) 934 (if (eq major-mode 'occur-mode) (current-buffer) (get-buffer "*Occur*"))
934 (rename-buffer (concat "*Occur: " 935 (rename-buffer (concat "*Occur: "
935 (mapconcat #'buffer-name 936 (mapconcat #'buffer-name
936 (car (cddr occur-revert-arguments)) "/") 937 (car (cddr occur-revert-arguments)) "/")
937 "*") 938 "*")
938 unique-p))) 939 (or unique-p (not interactive-p)))))
939 940
940(defun occur (regexp &optional nlines) 941(defun occur (regexp &optional nlines)
941 "Show all lines in the current buffer containing a match for REGEXP. 942 "Show all lines in the current buffer containing a match for REGEXP.