aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2006-01-17 16:28:02 +0000
committerKaroly Lorentey2006-01-17 16:28:02 +0000
commitf6271f1b584e5e3dcc9e29650575b802ae879b06 (patch)
tree7e6071cdffd5cd18a2e88420c77b9839d86d5ce3
parentc3a63088aa9f1cb2d47e9805889b8c0ec16f852a (diff)
parent2e040f4ea19f3f81cb3d19afa6d5429e29206fab (diff)
downloademacs-f6271f1b584e5e3dcc9e29650575b802ae879b06.tar.gz
emacs-f6271f1b584e5e3dcc9e29650575b802ae879b06.zip
Merged from miles@gnu.org--gnu-2005 (patch 185-186, 700-703)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-700 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-701 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-702 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-703 Update from CVS: lisp/cus-edit.el (customize-rogue): Minor doc fix. * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-185 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-186 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-497
-rw-r--r--etc/NEWS3
-rw-r--r--lisp/ChangeLog72
-rw-r--r--lisp/bindings.el24
-rw-r--r--lisp/buff-menu.el5
-rw-r--r--lisp/cus-edit.el2
-rw-r--r--lisp/dired-aux.el12
-rw-r--r--lisp/faces.el39
-rw-r--r--lisp/gnus/ChangeLog29
-rw-r--r--lisp/gnus/gnus-art.el2
-rw-r--r--lisp/gnus/gnus-cus.el2
-rw-r--r--lisp/gnus/gnus-group.el2
-rw-r--r--lisp/gnus/gnus-start.el2
-rw-r--r--lisp/gnus/gnus-sum.el2
-rw-r--r--lisp/gnus/message.el17
-rw-r--r--lisp/gnus/mm-uu.el2
-rw-r--r--lisp/gnus/mm-view.el2
-rw-r--r--lisp/gnus/nnrss.el32
-rw-r--r--lisp/info.el29
-rw-r--r--lisp/international/code-pages.el7
-rw-r--r--lisp/international/mule.el47
-rw-r--r--lisp/log-view.el20
-rw-r--r--lisp/man.el2
-rw-r--r--lisp/mh-e/ChangeLog34
-rw-r--r--lisp/mh-e/mh-acros.el36
-rw-r--r--lisp/mh-e/mh-alias.el16
-rw-r--r--lisp/mh-e/mh-comp.el4
-rw-r--r--lisp/mh-e/mh-e.el8
-rw-r--r--lisp/mh-e/mh-identity.el2
-rw-r--r--lisp/mh-e/mh-mime.el14
-rw-r--r--lisp/mh-e/mh-search.el36
-rw-r--r--lisp/mh-e/mh-seq.el11
-rw-r--r--lisp/textmodes/sgml-mode.el11
-rw-r--r--lisp/time.el2
-rw-r--r--man/ChangeLog9
-rw-r--r--man/display.texi6
-rw-r--r--man/gnus.texi2
36 files changed, 383 insertions, 162 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 8bf912b346a..50bc6b1089d 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -828,6 +828,9 @@ uses the "very visible" cursor (the default) or the normal cursor.
828elements on mode-line (and header-line) like `highlight' face on text 828elements on mode-line (and header-line) like `highlight' face on text
829areas. 829areas.
830 830
831*** `mode-line-buffer-id' is the standard face for buffer identification
832parts of the mode line.
833
831+++ 834+++
832*** `shadow' face defines the appearance of the "shadowed" text, i.e. 835*** `shadow' face defines the appearance of the "shadowed" text, i.e.
833the text which should be less noticeable than the surrounding text. 836the text which should be less noticeable than the surrounding text.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 87a8c40d176..a907eb5876d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,65 @@
12006-01-16 Luc Teirlinck <teirllm@auburn.edu>
2
3 * cus-edit.el (customize-rogue): Minor doc fix.
4
52006-01-17 Juri Linkov <juri@jurta.org>
6
7 * dired-aux.el (dired-diff): Use dired-dwim-target-directory
8 instead of the file at the mark as default if the file at the mark
9 is the same as the file at point or if dired-dwim-target-directory
10 is not the same as the current directory and the mark is not active.
11
12 * log-view.el (log-view-minor-wrap): Use the same logic to get
13 revisions as `log-view-diff'.
14
15 * info.el (Info-revert-find-node): Check for Info-current-file
16 before preserving new-history.
17
18 * man.el (Man-heading-regexp): Add `/'.
19
20 * textmodes/sgml-mode.el: Add `coding: iso-2022-7bit' cookie.
21 (html-mode): Set `sentence-end-base' instead of `sentence-end'.
22
232006-01-16 Juri Linkov <juri@jurta.org>
24
25 * faces.el (mode-line-faces): New defgroup.
26 (mode-line-highlight): Move definition after new defgroup.
27 (mode-line, mode-line-inactive, mode-line-highlight):
28 Replace :group `modeline' with `mode-line-faces'.
29 (mode-line-buffer-id): New face.
30 (modeline-buffer-id): New face alias.
31 (vertical-border): Remove :group `modeline'.
32
33 * bindings.el (propertized-buffer-identification): Use face
34 `mode-line-buffer-id' instead of `Buffer-menu-buffer'.
35 (mode-line-next-buffer, mode-line-previous-buffer): New functions.
36 (mode-line-buffer-identification-keymap): For mouse-1 replace
37 `mode-line-unbury-buffer' with `mode-line-previous-buffer'.
38 Replace `mode-line-bury-buffer' with `mode-line-next-buffer' for
39 mouse-3.
40
41 * buff-menu.el (buffer-menu-buffer) <defface>: Renamed from
42 Buffer-menu-buffer. Doc fix.
43 (Buffer-menu-buffer): Face alias to buffer-menu-buffer.
44
45 * info.el (Info-mode-line-node-keymap): New defvar.
46 (Info-set-mode-line): Use `stringp' to check Info-current-file.
47 Propertize Info-current-node with `mode-line-buffer-id' and
48 `mode-line-highlight' faces and `Info-mode-line-node-keymap'.
49
50 * time.el (display-time-mail-face): Replace :group `faces' with
51 `mode-line-faces'.
52
532006-01-16 Kenichi Handa <handa@m17n.org>
54
55 * international/code-pages.el: Add autoload cookies for
56 cp125[0345678].
57
58 * language/european.el (cp1252): New alias for windows-1252.
59
60 * international/mule.el (autoload-coding-system): Prepare for EOL
61 variants.
62
12006-01-15 Dan Nicolaescu <dann@ics.uci.edu> 632006-01-15 Dan Nicolaescu <dann@ics.uci.edu>
2 64
3 * term.el (term-raw-map): Add mapping for insert. 65 * term.el (term-raw-map): Add mapping for insert.
@@ -57,7 +119,7 @@
57 119
582006-01-13 Carsten Dominik <dominik@science.uva.nl> 1202006-01-13 Carsten Dominik <dominik@science.uva.nl>
59 121
60 * textmodes/org.el: (org-open-file): Use mailcap for selecting an 122 * textmodes/org.el (org-open-file): Use mailcap for selecting an
61 application. 123 application.
62 (org-file-apps-defaults-gnu): Use mailcap as the default for 124 (org-file-apps-defaults-gnu): Use mailcap as the default for
63 selecting an application on a UNIX system. 125 selecting an application on a UNIX system.
@@ -343,7 +405,7 @@
343 405
3442006-01-05 Carsten Dominik <dominik@science.uva.nl> 4062006-01-05 Carsten Dominik <dominik@science.uva.nl>
345 407
346 * textmodes/org.el: (org-end-of-subtree): New function. 408 * textmodes/org.el (org-end-of-subtree): New function.
347 (org-cycle, org-subtree-end-visible-p, org-scan-tags): 409 (org-cycle, org-subtree-end-visible-p, org-scan-tags):
348 Use `org-end-of-subtree'. 410 Use `org-end-of-subtree'.
349 (org-agenda, org-agenda-convert-date): Protect calls to 411 (org-agenda, org-agenda-convert-date): Protect calls to
@@ -1064,7 +1126,7 @@
1064 1126
10652005-12-20 Carsten Dominik <dominik@science.uva.nl> 11272005-12-20 Carsten Dominik <dominik@science.uva.nl>
1066 1128
1067 * textmodes/org.el: (org-agenda-custom-commands): New option. 1129 * textmodes/org.el (org-agenda-custom-commands): New option.
1068 (org-agenda): Offer custom commands on splash screen. 1130 (org-agenda): Offer custom commands on splash screen.
1069 (org-make-tags-matcher): Parser for Boolean logic added. 1131 (org-make-tags-matcher): Parser for Boolean logic added.
1070 (org-agenda-set-tags): New command. 1132 (org-agenda-set-tags): New command.
@@ -1180,7 +1242,7 @@
1180 1242
11812005-12-16 Carsten Dominik <dominik@science.uva.nl> 12432005-12-16 Carsten Dominik <dominik@science.uva.nl>
1182 1244
1183 * textmodes/org.el: (org-tags-match-list-sublevels): New option. 1245 * textmodes/org.el (org-tags-match-list-sublevels): New option.
1184 (org-open-at-point): Implement tag searches as links. 1246 (org-open-at-point): Implement tag searches as links.
1185 (org-fit-agenda-window, org-get-buffer-tags, org-get-tags) 1247 (org-fit-agenda-window, org-get-buffer-tags, org-get-tags)
1186 (org-make-tags-matcher, org-scan-tags, org-activate-tags): New funs. 1248 (org-make-tags-matcher, org-scan-tags, org-activate-tags): New funs.
@@ -1402,7 +1464,7 @@
1402 1464
14032005-12-12 Carsten Dominik <dominik@science.uva.nl> 14652005-12-12 Carsten Dominik <dominik@science.uva.nl>
1404 1466
1405 * textmodes/org.el: (org-agenda, org-timeline, org-todo): 1467 * textmodes/org.el (org-agenda, org-timeline, org-todo):
1406 Implement Logging and the keep-modes setting. 1468 Implement Logging and the keep-modes setting.
1407 (org-get-category): Make sure a string is returned. 1469 (org-get-category): Make sure a string is returned.
1408 (org-log-done): New function. 1470 (org-log-done): New function.
diff --git a/lisp/bindings.el b/lisp/bindings.el
index a978300fee7..7819916130b 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -371,6 +371,20 @@ Switch to the most recently selected buffer other than the current one."
371 (interactive) 371 (interactive)
372 (switch-to-buffer (other-buffer))) 372 (switch-to-buffer (other-buffer)))
373 373
374(defun mode-line-next-buffer (event)
375 "Like `next-buffer', but temporarily select EVENT's window."
376 (interactive "e")
377 (save-selected-window
378 (select-window (posn-window (event-start event)))
379 (next-buffer)))
380
381(defun mode-line-previous-buffer (event)
382 "Like `previous-buffer', but temporarily select EVENT's window."
383 (interactive "e")
384 (save-selected-window
385 (select-window (posn-window (event-start event)))
386 (previous-buffer)))
387
374(defvar mode-line-mode-menu (make-sparse-keymap "Minor Modes") "\ 388(defvar mode-line-mode-menu (make-sparse-keymap "Minor Modes") "\
375Menu of mode operations in the mode line.") 389Menu of mode operations in the mode line.")
376 390
@@ -444,13 +458,13 @@ Menu of mode operations in the mode line.")
444(let ((map (make-sparse-keymap))) 458(let ((map (make-sparse-keymap)))
445 ;; Bind down- events so that the global keymap won't ``shine 459 ;; Bind down- events so that the global keymap won't ``shine
446 ;; through''. 460 ;; through''.
447 (define-key map [mode-line mouse-1] 'mode-line-unbury-buffer) 461 (define-key map [mode-line mouse-1] 'mode-line-previous-buffer)
448 (define-key map [header-line down-mouse-1] 'ignore) 462 (define-key map [header-line down-mouse-1] 'ignore)
449 (define-key map [header-line mouse-1] 'mode-line-unbury-buffer) 463 (define-key map [header-line mouse-1] 'mode-line-previous-buffer)
450 (define-key map [header-line down-mouse-3] 'ignore) 464 (define-key map [header-line down-mouse-3] 'ignore)
451 (define-key map [mode-line mouse-3] 'mode-line-bury-buffer) 465 (define-key map [mode-line mouse-3] 'mode-line-next-buffer)
452 (define-key map [header-line down-mouse-3] 'ignore) 466 (define-key map [header-line down-mouse-3] 'ignore)
453 (define-key map [header-line mouse-3] 'mode-line-bury-buffer) 467 (define-key map [header-line mouse-3] 'mode-line-next-buffer)
454 (setq mode-line-buffer-identification-keymap map)) 468 (setq mode-line-buffer-identification-keymap map))
455 469
456(defun propertized-buffer-identification (fmt) 470(defun propertized-buffer-identification (fmt)
@@ -458,7 +472,7 @@ Menu of mode operations in the mode line.")
458FMT is a format specifier such as \"%12b\". This function adds 472FMT is a format specifier such as \"%12b\". This function adds
459text properties for face, help-echo, and local-map to it." 473text properties for face, help-echo, and local-map to it."
460 (list (propertize fmt 474 (list (propertize fmt
461 'face 'Buffer-menu-buffer 475 'face 'mode-line-buffer-id
462 'help-echo 476 'help-echo
463 (purecopy "mouse-1: previous buffer, mouse-3: next buffer") 477 (purecopy "mouse-1: previous buffer, mouse-3: next buffer")
464 'mouse-face 'mode-line-highlight 478 'mouse-face 'mode-line-highlight
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index d8e90408889..cbfaa02f76e 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -74,10 +74,11 @@
74 :type 'boolean 74 :type 'boolean
75 :group 'Buffer-menu) 75 :group 'Buffer-menu)
76 76
77(defface Buffer-menu-buffer 77(defface buffer-menu-buffer
78 '((t (:weight bold))) 78 '((t (:weight bold)))
79 "Face used to highlight buffer name." 79 "Face used to highlight buffer names in the buffer menu."
80 :group 'Buffer-menu) 80 :group 'Buffer-menu)
81(put 'Buffer-menu-buffer 'face-alias 'buffer-menu-buffer)
81 82
82(defcustom Buffer-menu-buffer+size-width 26 83(defcustom Buffer-menu-buffer+size-width 26
83 "*How wide to jointly make the buffer name and size columns." 84 "*How wide to jointly make the buffer name and size columns."
diff --git a/lisp/cus-edit.el b/lisp/cus-edit.el
index cf69ce61ac2..a5f9e301946 100644
--- a/lisp/cus-edit.el
+++ b/lisp/cus-edit.el
@@ -1249,7 +1249,7 @@ suggest to customize that face, if it's customizable."
1249 1249
1250;;;###autoload 1250;;;###autoload
1251(defun customize-rogue () 1251(defun customize-rogue ()
1252 "Customize all user variable modified outside customize." 1252 "Customize all user variables modified outside customize."
1253 (interactive) 1253 (interactive)
1254 (let ((found nil)) 1254 (let ((found nil))
1255 (mapatoms (lambda (symbol) 1255 (mapatoms (lambda (symbol)
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index f946199bbd6..7a34c39bed5 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -53,14 +53,20 @@ FILE defaults to the file at the mark. (That's the mark set by
53\\[set-mark-command], not by Dired's \\[dired-mark] command.) 53\\[set-mark-command], not by Dired's \\[dired-mark] command.)
54The prompted-for file is the first file given to `diff'. 54The prompted-for file is the first file given to `diff'.
55With prefix arg, prompt for second argument SWITCHES, 55With prefix arg, prompt for second argument SWITCHES,
56 which is options for `diff'." 56which is options for `diff'."
57 (interactive 57 (interactive
58 (let ((default (if (mark t) 58 (let ((current (dired-get-filename t))
59 (default (if (mark t)
59 (save-excursion (goto-char (mark t)) 60 (save-excursion (goto-char (mark t))
60 (dired-get-filename t t))))) 61 (dired-get-filename t t)))))
62 (if (or (equal default current)
63 (and (not (equal (dired-dwim-target-directory)
64 (dired-current-directory)))
65 (not mark-active)))
66 (setq default nil))
61 (require 'diff) 67 (require 'diff)
62 (list (read-file-name (format "Diff %s with%s: " 68 (list (read-file-name (format "Diff %s with%s: "
63 (dired-get-filename t) 69 current
64 (if default 70 (if default
65 (concat " (default " default ")") 71 (concat " (default " default ")")
66 "")) 72 ""))
diff --git a/lisp/faces.el b/lisp/faces.el
index a5482f565f2..a030a40bde0 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1976,16 +1976,6 @@ created."
1976 "Basic face for highlighting." 1976 "Basic face for highlighting."
1977 :group 'basic-faces) 1977 :group 'basic-faces)
1978 1978
1979(defface mode-line-highlight
1980 '((((class color) (min-colors 88))
1981 :box (:line-width 2 :color "grey40" :style released-button))
1982 (t
1983 :inherit highlight))
1984 "Basic mode line face for highlighting."
1985 :version "22.1"
1986 :group 'modeline
1987 :group 'basic-faces)
1988
1989(defface region 1979(defface region
1990 '((((class color) (min-colors 88) (background dark)) 1980 '((((class color) (min-colors 88) (background dark))
1991 :background "blue3") 1981 :background "blue3")
@@ -2050,6 +2040,12 @@ created."
2050 :group 'basic-faces 2040 :group 'basic-faces
2051 :version "22.1") 2041 :version "22.1")
2052 2042
2043(defgroup mode-line-faces nil
2044 "Faces used in the mode line."
2045 :group 'modeline
2046 :group 'faces
2047 :version "22.1")
2048
2053(defface mode-line 2049(defface mode-line
2054 '((((class color) (min-colors 88)) 2050 '((((class color) (min-colors 88))
2055 :box (:line-width -1 :style released-button) 2051 :box (:line-width -1 :style released-button)
@@ -2058,7 +2054,7 @@ created."
2058 :inverse-video t)) 2054 :inverse-video t))
2059 "Basic mode line face for selected window." 2055 "Basic mode line face for selected window."
2060 :version "21.1" 2056 :version "21.1"
2061 :group 'modeline 2057 :group 'mode-line-faces
2062 :group 'basic-faces) 2058 :group 'basic-faces)
2063 2059
2064(defface mode-line-inactive 2060(defface mode-line-inactive
@@ -2074,13 +2070,31 @@ created."
2074 :foreground "grey80" :background "grey30")) 2070 :foreground "grey80" :background "grey30"))
2075 "Basic mode line face for non-selected windows." 2071 "Basic mode line face for non-selected windows."
2076 :version "22.1" 2072 :version "22.1"
2077 :group 'modeline 2073 :group 'mode-line-faces
2074 :group 'basic-faces)
2075
2076(defface mode-line-highlight
2077 '((((class color) (min-colors 88))
2078 :box (:line-width 2 :color "grey40" :style released-button))
2079 (t
2080 :inherit highlight))
2081 "Basic mode line face for highlighting."
2082 :version "22.1"
2083 :group 'mode-line-faces
2084 :group 'basic-faces)
2085
2086(defface mode-line-buffer-id
2087 '((t (:weight bold)))
2088 "Face used for buffer identification parts of the mode line."
2089 :version "22.1"
2090 :group 'mode-line-faces
2078 :group 'basic-faces) 2091 :group 'basic-faces)
2079 2092
2080;; Make `modeline' an alias for `mode-line', for compatibility. 2093;; Make `modeline' an alias for `mode-line', for compatibility.
2081(put 'modeline 'face-alias 'mode-line) 2094(put 'modeline 'face-alias 'mode-line)
2082(put 'modeline-inactive 'face-alias 'mode-line-inactive) 2095(put 'modeline-inactive 'face-alias 'mode-line-inactive)
2083(put 'modeline-highlight 'face-alias 'mode-line-highlight) 2096(put 'modeline-highlight 'face-alias 'mode-line-highlight)
2097(put 'modeline-buffer-id 'face-alias 'mode-line-buffer-id)
2084 2098
2085(defface header-line 2099(defface header-line
2086 '((default 2100 '((default
@@ -2121,7 +2135,6 @@ created."
2121 '((((type tty)) :inherit mode-line-inactive)) 2135 '((((type tty)) :inherit mode-line-inactive))
2122 "Face used for vertical window dividers on ttys." 2136 "Face used for vertical window dividers on ttys."
2123 :version "22.1" 2137 :version "22.1"
2124 :group 'modeline
2125 :group 'basic-faces) 2138 :group 'basic-faces)
2126 2139
2127(defface minibuffer-prompt 2140(defface minibuffer-prompt
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index b4c02fa2b3b..6e0405c24eb 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,5 +1,26 @@
12006-01-16 Katsumi Yamaoka <yamaoka@jpl.org> 12006-01-16 Katsumi Yamaoka <yamaoka@jpl.org>
2 2
3 * nnrss.el: Update copyright.
4 (nnrss-opml-import): Query whether to subscribe to each entry.
5
6 * gnus-art.el:
7 * gnus-cus.el:
8 * gnus-group.el:
9 * gnus-start.el:
10 * gnus-sum.el:
11 * mm-uu.el:
12 * mm-view.el: Update copyright.
13
142006-01-16 Reiner Steib <Reiner.Steib@gmx.de>
15
16 * message.el (message-info): New function.
17 (message-mode-menu): Add it.
18 Update copyright.
19
20 * ChangeLog: Fix and update copyright.
21
222006-01-16 Katsumi Yamaoka <yamaoka@jpl.org>
23
3 * mm-uu.el (mm-uu-text-plain-type): New variable. 24 * mm-uu.el (mm-uu-text-plain-type): New variable.
4 (mm-uu-pgp-signed-extract-1): Use it. 25 (mm-uu-pgp-signed-extract-1): Use it.
5 (mm-uu-pgp-encrypted-extract-1): Use it. 26 (mm-uu-pgp-encrypted-extract-1): Use it.
@@ -53,12 +74,6 @@
53 RFC822 style. Suggested by Mark Plaksin <happy@mcplaksin.org>. 74 RFC822 style. Suggested by Mark Plaksin <happy@mcplaksin.org>.
54 (nnrss-check-group): Use it. 75 (nnrss-check-group): Use it.
55 76
562006-01-03 Rodrigo Ventura <yoda@isr.ist.utl.pt> (tiny change)
57
58 * gnus-xmas.el (gnus-xmas-group-startup-message): Typo
59 gnus-splash-face -> gnus-splash. Fixes starting from a TTY in
60 XEmacs.
61
622006-01-01 Katsumi Yamaoka <yamaoka@jpl.org> 772006-01-01 Katsumi Yamaoka <yamaoka@jpl.org>
63 78
64 * gnus-sum.el (gnus-summary-work-articles): Remove useless `min'. 79 * gnus-sum.el (gnus-summary-work-articles): Remove useless `min'.
@@ -3274,7 +3289,7 @@
3274 3289
3275See ChangeLog.2 for earlier changes. 3290See ChangeLog.2 for earlier changes.
3276 3291
3277 Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. 3292 Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
3278 Copying and distribution of this file, with or without modification, 3293 Copying and distribution of this file, with or without modification,
3279 are permitted provided the copyright notice and this notice are preserved. 3294 are permitted provided the copyright notice and this notice are preserved.
3280 3295
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 2b5cc46d936..92a4f09ded3 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -1,7 +1,7 @@
1;;; gnus-art.el --- article mode commands for Gnus 1;;; gnus-art.el --- article mode commands for Gnus
2 2
3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; Keywords: news 7;; Keywords: news
diff --git a/lisp/gnus/gnus-cus.el b/lisp/gnus/gnus-cus.el
index df09fd43e48..fdce8d1b665 100644
--- a/lisp/gnus/gnus-cus.el
+++ b/lisp/gnus/gnus-cus.el
@@ -1,7 +1,7 @@
1;;; gnus-cus.el --- customization commands for Gnus 1;;; gnus-cus.el --- customization commands for Gnus
2 2
3;; Copyright (C) 1996, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1996, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Per Abrahamsen <abraham@dina.kvl.dk> 6;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
7;; Keywords: news 7;; Keywords: news
diff --git a/lisp/gnus/gnus-group.el b/lisp/gnus/gnus-group.el
index 4246dbe6d86..933c3762ed9 100644
--- a/lisp/gnus/gnus-group.el
+++ b/lisp/gnus/gnus-group.el
@@ -1,7 +1,7 @@
1;;; gnus-group.el --- group mode commands for Gnus 1;;; gnus-group.el --- group mode commands for Gnus
2 2
3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; Keywords: news 7;; Keywords: news
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el
index a7ae3eb95fe..465ce0627b7 100644
--- a/lisp/gnus/gnus-start.el
+++ b/lisp/gnus/gnus-start.el
@@ -1,7 +1,7 @@
1;;; gnus-start.el --- startup functions for Gnus 1;;; gnus-start.el --- startup functions for Gnus
2 2
3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; Keywords: news 7;; Keywords: news
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index cd8d3c03d79..b2a70b8fcb6 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -1,7 +1,7 @@
1;;; gnus-sum.el --- summary mode commands for Gnus 1;;; gnus-sum.el --- summary mode commands for Gnus
2 2
3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; Keywords: news 7;; Keywords: news
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index ec420ea4b2e..797d2233fe5 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -1,7 +1,7 @@
1;;; message.el --- composing mail and news messages 1;;; message.el --- composing mail and news messages
2 2
3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; Keywords: mail, news 7;; Keywords: mail, news
@@ -2185,6 +2185,15 @@ Point is left at the beginning of the narrowed-to region."
2185 (1+ max))))) 2185 (1+ max)))))
2186 (message-sort-headers-1)))) 2186 (message-sort-headers-1))))
2187 2187
2188(defun message-info (&optional arg)
2189 "Display the Message manual.
2190
2191Prefixed with one \\[universal-argument], display the Emacs MIME manual.
2192Prefixed with two \\[universal-argument]'s, display the PGG manual."
2193 (interactive "p")
2194 (cond ((eq arg 16) (Info-goto-node "(pgg)Top"))
2195 ((eq arg 4) (Info-goto-node "(emacs-mime)Top"))
2196 (t (Info-goto-node "(message)Top"))))
2188 2197
2189 2198
2190 2199
@@ -2312,7 +2321,11 @@ Point is left at the beginning of the narrowed-to region."
2312 '(:help "Ask, then arrange to send message at that time"))] 2321 '(:help "Ask, then arrange to send message at that time"))]
2313 ["Kill Message" message-kill-buffer 2322 ["Kill Message" message-kill-buffer
2314 ,@(if (featurep 'xemacs) '(t) 2323 ,@(if (featurep 'xemacs) '(t)
2315 '(:help "Delete this message without sending"))])) 2324 '(:help "Delete this message without sending"))]
2325 "----"
2326 ["Message manual" message-info
2327 ,@(if (featurep 'xemacs) '(t)
2328 '(:help "Display the Message manual"))]))
2316 2329
2317(easy-menu-define 2330(easy-menu-define
2318 message-mode-field-menu message-mode-map "" 2331 message-mode-field-menu message-mode-map ""
diff --git a/lisp/gnus/mm-uu.el b/lisp/gnus/mm-uu.el
index f3328c1f789..312c3dd8542 100644
--- a/lisp/gnus/mm-uu.el
+++ b/lisp/gnus/mm-uu.el
@@ -1,7 +1,7 @@
1;;; mm-uu.el --- Return uu stuff as mm handles 1;;; mm-uu.el --- Return uu stuff as mm handles
2 2
3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Shenghuo Zhu <zsh@cs.rochester.edu> 6;; Author: Shenghuo Zhu <zsh@cs.rochester.edu>
7;; Keywords: postscript uudecode binhex shar forward gnatsweb pgp 7;; Keywords: postscript uudecode binhex shar forward gnatsweb pgp
diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el
index 882937c7cb2..645e960b535 100644
--- a/lisp/gnus/mm-view.el
+++ b/lisp/gnus/mm-view.el
@@ -1,7 +1,7 @@
1;;; mm-view.el --- functions for viewing MIME objects 1;;; mm-view.el --- functions for viewing MIME objects
2 2
3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> 6;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
7;; This file is part of GNU Emacs. 7;; This file is part of GNU Emacs.
diff --git a/lisp/gnus/nnrss.el b/lisp/gnus/nnrss.el
index 18a54d05d0d..318560179f5 100644
--- a/lisp/gnus/nnrss.el
+++ b/lisp/gnus/nnrss.el
@@ -1,6 +1,7 @@
1;;; nnrss.el --- interfacing with RSS 1;;; nnrss.el --- interfacing with RSS
2 2
3;; Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 3;; Copyright (C) 2001, 2002, 2003, 2004, 2005,
4;; 2006 Free Software Foundation, Inc.
4 5
5;; Author: Shenghuo Zhu <zsh@cs.rochester.edu> 6;; Author: Shenghuo Zhu <zsh@cs.rochester.edu>
6;; Keywords: RSS 7;; Keywords: RSS
@@ -755,14 +756,29 @@ which RSS 2.0 allows."
755 "OPML subscriptions import. 756 "OPML subscriptions import.
756Read the file and attempt to subscribe to each Feed in the file." 757Read the file and attempt to subscribe to each Feed in the file."
757 (interactive "fImport file: ") 758 (interactive "fImport file: ")
758 (mapcar 759 (mapc
759 (lambda (node) (gnus-group-make-rss-group 760 (lambda (node)
760 (cdr (assq 'xmlUrl (cadr node))))) 761 (let ((xmlurl (cdr (assq 'xmlUrl (cadr node)))))
762 (when (and xmlurl
763 (not (string-match "\\`[\t ]*\\'" xmlurl))
764 (prog1
765 (y-or-n-p (format "Subscribe to %s " xmlurl))
766 (message "")))
767 (condition-case err
768 (progn
769 (gnus-group-make-rss-group xmlurl)
770 (forward-line 1))
771 (error
772 (message
773 "Failed to subscribe to %s (%s); type any key to continue: "
774 xmlurl
775 (error-message-string err))
776 (let ((echo-keystrokes 0))
777 (read-char)))))))
761 (nnrss-find-el 'outline 778 (nnrss-find-el 'outline
762 (progn 779 (mm-with-multibyte-buffer
763 (find-file opml-file) 780 (insert-file-contents opml-file)
764 (xml-parse-region (point-min) 781 (xml-parse-region (point-min) (point-max))))))
765 (point-max))))))
766 782
767(defun nnrss-opml-export () 783(defun nnrss-opml-export ()
768 "OPML subscription export. 784 "OPML subscription export.
diff --git a/lisp/info.el b/lisp/info.el
index 386f549d3e2..61d59741078 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -731,7 +731,8 @@ is preserved, if possible."
731 (pline (count-lines (point-min) (line-beginning-position))) 731 (pline (count-lines (point-min) (line-beginning-position)))
732 (wline (count-lines (point-min) (window-start))) 732 (wline (count-lines (point-min) (window-start)))
733 (old-history Info-history) 733 (old-history Info-history)
734 (new-history (list Info-current-file Info-current-node (point)))) 734 (new-history (and Info-current-file
735 (list Info-current-file Info-current-node (point)))))
735 (kill-buffer (current-buffer)) 736 (kill-buffer (current-buffer))
736 (Info-find-node filename nodename) 737 (Info-find-node filename nodename)
737 (setq Info-history old-history) 738 (setq Info-history old-history)
@@ -1399,15 +1400,31 @@ any double quotes or backslashes must be escaped (\\\",\\\\)."
1399 (Info-hide-cookies-node) 1400 (Info-hide-cookies-node)
1400 (run-hooks 'Info-selection-hook))))) 1401 (run-hooks 'Info-selection-hook)))))
1401 1402
1403(defvar Info-mode-line-node-keymap
1404 (let ((map (make-sparse-keymap)))
1405 (define-key map [mode-line mouse-1] 'Info-scroll-up)
1406 (define-key map [mode-line mouse-3] 'Info-scroll-down)
1407 map)
1408 "Keymap to put on the Info node name in the mode line.")
1409
1402(defun Info-set-mode-line () 1410(defun Info-set-mode-line ()
1403 (setq mode-line-buffer-identification 1411 (setq mode-line-buffer-identification
1404 (nconc (propertized-buffer-identification "%b") 1412 (nconc (propertized-buffer-identification "%b")
1405 (list 1413 (list
1406 (concat " (" 1414 (concat
1407 (if Info-current-file 1415 " ("
1408 (file-name-nondirectory Info-current-file) 1416 (if (stringp Info-current-file)
1409 " ") 1417 (file-name-nondirectory Info-current-file)
1410 ") " (or Info-current-node "")))))) 1418 "")
1419 ") "
1420 (if Info-current-node
1421 (propertize Info-current-node
1422 'face 'mode-line-buffer-id
1423 'help-echo
1424 "mouse-1: scroll forward, mouse-3: scroll back"
1425 'mouse-face 'mode-line-highlight
1426 'local-map Info-mode-line-node-keymap)
1427 ""))))))
1411 1428
1412;; Go to an Info node specified with a filename-and-nodename string 1429;; Go to an Info node specified with a filename-and-nodename string
1413;; of the sort that is found in pointers in nodes. 1430;; of the sort that is found in pointers in nodes.
diff --git a/lisp/international/code-pages.el b/lisp/international/code-pages.el
index a3f5ff4819f..359773ac346 100644
--- a/lisp/international/code-pages.el
+++ b/lisp/international/code-pages.el
@@ -2464,6 +2464,7 @@ Return an updated `non-iso-charset-alist'."
2464 nil]) 2464 nil])
2465 2465
2466;;;###autoload(autoload-coding-system 'windows-1250 '(require 'code-pages)) 2466;;;###autoload(autoload-coding-system 'windows-1250 '(require 'code-pages))
2467;;;###autoload(autoload-coding-system 'cp1250 '(require 'code-pages))
2467(cp-make-coding-system 2468(cp-make-coding-system
2468 windows-1250 2469 windows-1250
2469 [?\€ 2470 [?\€
@@ -2596,6 +2597,7 @@ Return an updated `non-iso-charset-alist'."
2596 ?\˙]) 2597 ?\˙])
2597 2598
2598;;;###autoload(autoload-coding-system 'windows-1253 '(require 'code-pages)) 2599;;;###autoload(autoload-coding-system 'windows-1253 '(require 'code-pages))
2600;;;###autoload(autoload-coding-system 'cp1253 '(require 'code-pages))
2599(cp-make-coding-system 2601(cp-make-coding-system
2600 windows-1253 2602 windows-1253
2601 [?\€ 2603 [?\€
@@ -2729,6 +2731,7 @@ Return an updated `non-iso-charset-alist'."
2729 nil ?g) ;; Greek 2731 nil ?g) ;; Greek
2730 2732
2731;;;###autoload(autoload-coding-system 'windows-1254 '(require 'code-pages)) 2733;;;###autoload(autoload-coding-system 'windows-1254 '(require 'code-pages))
2734;;;###autoload(autoload-coding-system 'cp1254 '(require 'code-pages))
2732(cp-make-coding-system 2735(cp-make-coding-system
2733 windows-1254 2736 windows-1254
2734 [?\€ 2737 [?\€
@@ -2862,6 +2865,7 @@ Return an updated `non-iso-charset-alist'."
2862 2865
2863;; yi_US 2866;; yi_US
2864;;;###autoload(autoload-coding-system 'windows-1255 '(require 'code-pages)) 2867;;;###autoload(autoload-coding-system 'windows-1255 '(require 'code-pages))
2868;;;###autoload(autoload-coding-system 'cp1255 '(require 'code-pages))
2865(cp-make-coding-system 2869(cp-make-coding-system
2866 windows-1255 2870 windows-1255
2867 [?\€ 2871 [?\€
@@ -2995,6 +2999,7 @@ Return an updated `non-iso-charset-alist'."
2995 nil ?h) ;; Hebrew 2999 nil ?h) ;; Hebrew
2996 3000
2997;;;###autoload(autoload-coding-system 'windows-1256 '(require 'code-pages)) 3001;;;###autoload(autoload-coding-system 'windows-1256 '(require 'code-pages))
3002;;;###autoload(autoload-coding-system 'cp1256 '(require 'code-pages))
2998(cp-make-coding-system 3003(cp-make-coding-system
2999 windows-1256 3004 windows-1256
3000 [?\€ 3005 [?\€
@@ -3128,6 +3133,7 @@ Return an updated `non-iso-charset-alist'."
3128 nil ?a) ;; Arabic 3133 nil ?a) ;; Arabic
3129 3134
3130;;;###autoload(autoload-coding-system 'windows-1257 '(require 'code-pages)) 3135;;;###autoload(autoload-coding-system 'windows-1257 '(require 'code-pages))
3136;;;###autoload(autoload-coding-system 'cp1257 '(require 'code-pages))
3131(cp-make-coding-system 3137(cp-make-coding-system
3132 windows-1257 3138 windows-1257
3133 [?\€ 3139 [?\€
@@ -3260,6 +3266,7 @@ Return an updated `non-iso-charset-alist'."
3260 nil]) 3266 nil])
3261 3267
3262;;;###autoload(autoload-coding-system 'windows-1258 '(require 'code-pages)) 3268;;;###autoload(autoload-coding-system 'windows-1258 '(require 'code-pages))
3269;;;###autoload(autoload-coding-system 'cp1258 '(require 'code-pages))
3263(cp-make-coding-system 3270(cp-make-coding-system
3264 windows-1258 3271 windows-1258
3265 [?\€ 3272 [?\€
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index e708ed4b3f0..96f1fc1cf58 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -1144,7 +1144,11 @@ Return the resulting coding system."
1144FROM is a form to evaluate to define the coding-system." 1144FROM is a form to evaluate to define the coding-system."
1145 (put symbol 'coding-system-define-form form) 1145 (put symbol 'coding-system-define-form form)
1146 (setq coding-system-alist (cons (list (symbol-name symbol)) 1146 (setq coding-system-alist (cons (list (symbol-name symbol))
1147 coding-system-alist))) 1147 coding-system-alist))
1148 (dolist (elt '("-unix" "-dos" "-mac"))
1149 (let ((name (concat (symbol-name symbol) elt)))
1150 (put (intern name) 'coding-system-define-form form)
1151 (setq coding-system-alist (cons (list name) coding-system-alist)))))
1148 1152
1149(defun set-buffer-file-coding-system (coding-system &optional force nomodify) 1153(defun set-buffer-file-coding-system (coding-system &optional force nomodify)
1150 "Set the file coding-system of the current buffer to CODING-SYSTEM. 1154 "Set the file coding-system of the current buffer to CODING-SYSTEM.
@@ -1596,6 +1600,23 @@ and the contents of `file-coding-system-alist'."
1596 :type '(repeat (cons (regexp :tag "Regexp") 1600 :type '(repeat (cons (regexp :tag "Regexp")
1597 (symbol :tag "Coding system")))) 1601 (symbol :tag "Coding system"))))
1598 1602
1603(defun auto-coding-regexp-alist-lookup (from to)
1604 "Lookup `auto-coding-regexp-alist' for the contents of the current buffer.
1605The value is a coding system is specified for the region FROM and TO,
1606or nil."
1607 (save-excursion
1608 (goto-char from)
1609 (let ((alist auto-coding-regexp-alist)
1610 coding-system)
1611 (while (and alist (not coding-system))
1612 (let ((regexp (car (car alist))))
1613 (if enable-multibyte-characters
1614 (setq regexp (string-to-multibyte regexp)))
1615 (if (re-search-forward regexp to t)
1616 (setq coding-system (cdr (car alist)))
1617 (setq alist (cdr alist)))))
1618 coding-system)))
1619
1599;; See the bottom of this file for built-in auto coding functions. 1620;; See the bottom of this file for built-in auto coding functions.
1600(defcustom auto-coding-functions '(sgml-xml-auto-coding-function 1621(defcustom auto-coding-functions '(sgml-xml-auto-coding-function
1601 sgml-html-meta-auto-coding-function) 1622 sgml-html-meta-auto-coding-function)
@@ -1655,24 +1676,15 @@ indicating by what CODING is specified. Note that the validity
1655of CODING is not checked; it's callers responsibility to check 1676of CODING is not checked; it's callers responsibility to check
1656it. 1677it.
1657 1678
1658If nothing is specified, the return value is nil. 1679If nothing is specified, the return value is nil."
1659
1660The variable `set-auto-coding-function' (which see) is set to this
1661function by default."
1662 (or (let ((coding-system (auto-coding-alist-lookup filename))) 1680 (or (let ((coding-system (auto-coding-alist-lookup filename)))
1663 (if coding-system 1681 (if coding-system
1664 (cons coding-system 'auto-coding-alist))) 1682 (cons coding-system 'auto-coding-alist)))
1665 ;; Try using `auto-coding-regexp-alist'. 1683 ;; Try using `auto-coding-regexp-alist'.
1666 (save-excursion 1684 (let ((coding-system (auto-coding-regexp-alist-lookup (point)
1667 (let ((alist auto-coding-regexp-alist) 1685 (+ (point) size))))
1668 coding-system) 1686 (if coding-system
1669 (while (and alist (not coding-system)) 1687 (cons coding-system 'auto-coding-regexp-alist)))
1670 (let ((regexp (car (car alist))))
1671 (when (re-search-forward regexp (+ (point) size) t)
1672 (setq coding-system (cdr (car alist)))))
1673 (setq alist (cdr alist)))
1674 (if coding-system
1675 (cons coding-system 'auto-coding-regexp-alist))))
1676 (let* ((case-fold-search t) 1688 (let* ((case-fold-search t)
1677 (head-start (point)) 1689 (head-start (point))
1678 (head-end (+ head-start (min size 1024))) 1690 (head-end (+ head-start (min size 1024)))
@@ -1765,7 +1777,10 @@ function by default."
1765(defun set-auto-coding (filename size) 1777(defun set-auto-coding (filename size)
1766 "Return coding system for a file FILENAME of which SIZE bytes follow point. 1778 "Return coding system for a file FILENAME of which SIZE bytes follow point.
1767See `find-auto-coding' for how the coding system is found. 1779See `find-auto-coding' for how the coding system is found.
1768Return nil if an invalid coding system is found." 1780Return nil if an invalid coding system is found.
1781
1782The variable `set-auto-coding-function' (which see) is set to this
1783function by default."
1769 (let ((found (find-auto-coding filename size))) 1784 (let ((found (find-auto-coding filename size)))
1770 (if (and found (coding-system-p (car found))) 1785 (if (and found (coding-system-p (car found)))
1771 (car found)))) 1786 (car found))))
diff --git a/lisp/log-view.el b/lisp/log-view.el
index 7025a893287..91320f08dd9 100644
--- a/lisp/log-view.el
+++ b/lisp/log-view.el
@@ -225,14 +225,18 @@
225 225
226(defun log-view-minor-wrap (buf f) 226(defun log-view-minor-wrap (buf f)
227 (let ((data (with-current-buffer buf 227 (let ((data (with-current-buffer buf
228 (cons 228 (let* ((beg (if mark-active (region-beginning) (point)))
229 (cons (log-view-current-file) 229 (end (if mark-active (region-end) (point)))
230 (log-view-current-tag)) 230 (fr (log-view-current-tag beg))
231 (when mark-active 231 (to (log-view-current-tag end)))
232 (save-excursion 232 (when (string-equal fr to)
233 (goto-char (mark)) 233 (save-excursion
234 (cons (log-view-current-file) 234 (goto-char end)
235 (log-view-current-tag)))))))) 235 (log-view-msg-next)
236 (setq to (log-view-current-tag))))
237 (cons
238 (cons (log-view-current-file) to)
239 (cons (log-view-current-file) fr))))))
236 (let ((cvs-branch-prefix (cdar data)) 240 (let ((cvs-branch-prefix (cdar data))
237 (cvs-secondary-branch-prefix (and (cdar data) (cddr data))) 241 (cvs-secondary-branch-prefix (and (cdar data) (cddr data)))
238 (cvs-minor-current-files 242 (cvs-minor-current-files
diff --git a/lisp/man.el b/lisp/man.el
index fd3f98e0dcb..acd3decdc61 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -274,7 +274,7 @@ the associated section number."
274 "(\\(" Man-section-regexp "\\))\\).*\\1")) 274 "(\\(" Man-section-regexp "\\))\\).*\\1"))
275 "Regular expression describing the heading of a page.") 275 "Regular expression describing the heading of a page.")
276 276
277(defvar Man-heading-regexp "^\\([A-Z][A-Z -]+\\)$" 277(defvar Man-heading-regexp "^\\([A-Z][A-Z /-]+\\)$"
278 "Regular expression describing a manpage heading entry.") 278 "Regular expression describing a manpage heading entry.")
279 279
280(defvar Man-see-also-regexp "SEE ALSO" 280(defvar Man-see-also-regexp "SEE ALSO"
diff --git a/lisp/mh-e/ChangeLog b/lisp/mh-e/ChangeLog
index 23a0a2041a5..589f041c3c7 100644
--- a/lisp/mh-e/ChangeLog
+++ b/lisp/mh-e/ChangeLog
@@ -1,3 +1,37 @@
12006-01-16 Bill Wohler <wohler@newt.com>
2
3 * mh-acros.el (require): Remove defadvice of require as defadvice
4 is verboten within Emacs and our implementation was returning the
5 wrong value from require. Upcoming restructuring should make this
6 unnecessary.
7 (mh-assoc-ignore-case): Replace with defsubst assoc-string.
8
9 * mh-alias.el (mh-alias-local-users, mh-alias-reload,
10 mh-alias-expand, mh-alias-minibuffer-confirm-address): Use it.
11
12 * mh-identity.el (mh-identity-field-handler): Use it.
13
14 * mh-comp.el (mh-show-buffer-message-number): Replace (car
15 (read-from-string string) with (string-to-number string).
16
17 * mh-e.el (mh-parse-flist-output-line, mh-folder-size-folder):
18 Ditto.
19
20 * mh-mime.el (mh-mml-forward-message): Ditto.
21
22 * mh-search.el (mh-swish-next-result, mh-mairix-next-result)
23 (mh-namazu-next-result, mh-grep-next-result, mh-md5sum-parser)
24 (mh-openssl-parser, mh-index-update-maps): Ditto.
25
26 * mh-seq.el (mh-translate-range, mh-narrow-to-header-field)
27 (mh-thread-generate): Ditto.
28
292006-01-16 Katsumi Yamaoka <yamaoka@jpl.org>
30
31 * mh-mime.el (mh-mime-display, mh-mm-inline-message): Fix use of
32 mm- functions for proper text=flowed handling (addresses SF
33 #1273521).
34
12006-01-15 Bill Wohler <wohler@newt.com> 352006-01-15 Bill Wohler <wohler@newt.com>
2 36
3 * mh-e.el (mh-limit-map, mh-help-messages): Change keybinding of 37 * mh-e.el (mh-limit-map, mh-help-messages): Change keybinding of
diff --git a/lisp/mh-e/mh-acros.el b/lisp/mh-e/mh-acros.el
index e37705ea54f..de2a714fc77 100644
--- a/lisp/mh-e/mh-acros.el
+++ b/lisp/mh-e/mh-acros.el
@@ -26,14 +26,14 @@
26 26
27;;; Commentary: 27;;; Commentary:
28 28
29;; This file contains macros that would normally be in mh-utils.el except that 29;; This file contains most, if not all, macros. It is so named with a
30;; their presence there would cause a dependency loop with mh-customize.el. 30;; silent "m" so that it is compiled first. Otherwise, "make
31;; recompile" in CVS Emacs may use compiled files with stale macro
32;; definitions.
33
31;; This file must always be included like this: 34;; This file must always be included like this:
32;; 35;;
33;; (eval-when-compile (require 'mh-acros)) 36;; (eval-when-compile (require 'mh-acros))
34;;
35;; It is so named with a silent "m" so that it is compiled first. Otherwise,
36;; "make recompile" in Emacs 21.4 fails.
37 37
38;;; Change Log: 38;;; Change Log:
39 39
@@ -150,23 +150,15 @@ more details."
150 (list 'nth ,x z))) 150 (list 'nth ,x z)))
151 (quote ,struct-name)))) 151 (quote ,struct-name))))
152 152
153;; A better solution would be to use Stefan's change in bytecomp.el. 153(unless (fboundp 'assoc-string)
154;; If it were checked in, we can drop the advice to require and it 154 (defsubst assoc-string (key list case-fold)
155;; will make things nicer elsewhere too. 155 "Like `assoc' but specifically for strings.
156(defadvice require (around mh-prefer-el activate) 156Case is ignored if CASE-FOLD is non-nil.
157 "Modify `require' to load uncompiled MH-E files." 157This function added by MH-E for Emacs versions that lack
158 (or (featurep (ad-get-arg 0)) 158`assoc-string', introduced in Emacs 22."
159 (and (string-match "^mh-" (symbol-name (ad-get-arg 0))) 159 (if case-fold
160 (load (format "%s.el" (ad-get-arg 0)) t t)) 160 (assoc-ignore-case key alist)
161 ad-do-it)) 161 (assoc key alist))))
162
163(defmacro mh-assoc-ignore-case (key alist)
164 "Check if KEY is present in ALIST while ignoring case to do the comparison.
165Compatibility macro for Emacs versions that lack `assoc-string',
166introduced in Emacs 22."
167 (if (fboundp 'assoc-string)
168 `(assoc-string ,key ,alist t)
169 `(assoc-ignore-case ,key ,alist)))
170 162
171(provide 'mh-acros) 163(provide 'mh-acros)
172 164
diff --git a/lisp/mh-e/mh-alias.el b/lisp/mh-e/mh-alias.el
index 399113e318d..081237b3b39 100644
--- a/lisp/mh-e/mh-alias.el
+++ b/lisp/mh-e/mh-alias.el
@@ -179,7 +179,7 @@ Exclude all aliases already in `mh-alias-alist' from \"ali\""
179 (if (string-equal username realname) 179 (if (string-equal username realname)
180 (concat "<" username ">") 180 (concat "<" username ">")
181 (concat realname " <" username ">")))) 181 (concat realname " <" username ">"))))
182 (when (not (mh-assoc-ignore-case alias-name mh-alias-alist)) 182 (when (not (assoc-string alias-name mh-alias-alist t))
183 (setq passwd-alist (cons (list alias-name alias-translation) 183 (setq passwd-alist (cons (list alias-name alias-translation)
184 passwd-alist))))))) 184 passwd-alist)))))))
185 (forward-line 1))) 185 (forward-line 1)))
@@ -209,12 +209,12 @@ been loaded."
209 (cond 209 (cond
210 ((looking-at "^[ \t]")) ;Continuation line 210 ((looking-at "^[ \t]")) ;Continuation line
211 ((looking-at "\\(.+\\): .+: .*$") ; A new -blind- MH alias 211 ((looking-at "\\(.+\\): .+: .*$") ; A new -blind- MH alias
212 (when (not (mh-assoc-ignore-case (match-string 1) mh-alias-blind-alist)) 212 (when (not (assoc-string (match-string 1) mh-alias-blind-alist t))
213 (setq mh-alias-blind-alist 213 (setq mh-alias-blind-alist
214 (cons (list (match-string 1)) mh-alias-blind-alist)) 214 (cons (list (match-string 1)) mh-alias-blind-alist))
215 (setq mh-alias-alist (cons (list (match-string 1)) mh-alias-alist)))) 215 (setq mh-alias-alist (cons (list (match-string 1)) mh-alias-alist))))
216 ((looking-at "\\(.+\\): .*$") ; A new MH alias 216 ((looking-at "\\(.+\\): .*$") ; A new MH alias
217 (when (not (mh-assoc-ignore-case (match-string 1) mh-alias-alist)) 217 (when (not (assoc-string (match-string 1) mh-alias-alist t))
218 (setq mh-alias-alist 218 (setq mh-alias-alist
219 (cons (list (match-string 1)) mh-alias-alist))))) 219 (cons (list (match-string 1)) mh-alias-alist)))))
220 (forward-line 1))) 220 (forward-line 1)))
@@ -225,7 +225,7 @@ been loaded."
225 user) 225 user)
226 (while local-users 226 (while local-users
227 (setq user (car local-users)) 227 (setq user (car local-users))
228 (if (not (mh-assoc-ignore-case (car user) mh-alias-alist)) 228 (if (not (assoc-string (car user) mh-alias-alist t))
229 (setq mh-alias-alist (append mh-alias-alist (list user)))) 229 (setq mh-alias-alist (append mh-alias-alist (list user))))
230 (setq local-users (cdr local-users))))) 230 (setq local-users (cdr local-users)))))
231 (run-hooks 'mh-alias-reloaded-hook) 231 (run-hooks 'mh-alias-reloaded-hook)
@@ -262,10 +262,10 @@ returns the string unchanged if not defined. The same is done here."
262 "Return expansion for ALIAS. 262 "Return expansion for ALIAS.
263Blind aliases or users from /etc/passwd are not expanded." 263Blind aliases or users from /etc/passwd are not expanded."
264 (cond 264 (cond
265 ((mh-assoc-ignore-case alias mh-alias-blind-alist) 265 ((assoc-string alias mh-alias-blind-alist t)
266 alias) ; Don't expand a blind alias 266 alias) ; Don't expand a blind alias
267 ((mh-assoc-ignore-case alias mh-alias-passwd-alist) 267 ((assoc-string alias mh-alias-passwd-alist t)
268 (cadr (mh-assoc-ignore-case alias mh-alias-passwd-alist))) 268 (cadr (assoc-string alias mh-alias-passwd-alist t)))
269 (t 269 (t
270 (mh-alias-ali alias)))) 270 (mh-alias-ali alias))))
271 271
@@ -300,7 +300,7 @@ Blind aliases or users from /etc/passwd are not expanded."
300 (let* ((case-fold-search t) 300 (let* ((case-fold-search t)
301 (beg (mh-beginning-of-word)) 301 (beg (mh-beginning-of-word))
302 (the-name (buffer-substring-no-properties beg (point)))) 302 (the-name (buffer-substring-no-properties beg (point))))
303 (if (mh-assoc-ignore-case the-name mh-alias-alist) 303 (if (assoc-string the-name mh-alias-alist t)
304 (message "%s -> %s" the-name (mh-alias-expand the-name)) 304 (message "%s -> %s" the-name (mh-alias-expand the-name))
305 ;; Check if if was a single word likely to be an alias 305 ;; Check if if was a single word likely to be an alias
306 (if (and (equal mh-alias-flash-on-comma 1) 306 (if (and (equal mh-alias-flash-on-comma 1)
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el
index 07f4bc60dc7..984af4e461d 100644
--- a/lisp/mh-e/mh-comp.el
+++ b/lisp/mh-e/mh-comp.el
@@ -522,8 +522,8 @@ Optional argument BUFFER can be used to specify the buffer."
522 (set-buffer buffer)) 522 (set-buffer buffer))
523 (cond ((eq major-mode 'mh-show-mode) 523 (cond ((eq major-mode 'mh-show-mode)
524 (let ((number-start (mh-search-from-end ?/ buffer-file-name))) 524 (let ((number-start (mh-search-from-end ?/ buffer-file-name)))
525 (car (read-from-string (substring buffer-file-name 525 (string-to-number (substring buffer-file-name
526 (1+ number-start)))))) 526 (1+ number-start)))))
527 ((and (eq major-mode 'mh-folder-mode) 527 ((and (eq major-mode 'mh-folder-mode)
528 mh-show-buffer 528 mh-show-buffer
529 (get-buffer mh-show-buffer)) 529 (get-buffer mh-show-buffer))
diff --git a/lisp/mh-e/mh-e.el b/lisp/mh-e/mh-e.el
index c173b0c75dc..f92d777309a 100644
--- a/lisp/mh-e/mh-e.el
+++ b/lisp/mh-e/mh-e.el
@@ -1372,13 +1372,13 @@ folders whose names end with a '+' character."
1372 (goto-char (point-max)) 1372 (goto-char (point-max))
1373 (let (folder unseen total p) 1373 (let (folder unseen total p)
1374 (when (search-backward " out of " (point-min) t) 1374 (when (search-backward " out of " (point-min) t)
1375 (setq total (read-from-string 1375 (setq total (string-to-number
1376 (buffer-substring-no-properties 1376 (buffer-substring-no-properties
1377 (match-end 0) (line-end-position)))) 1377 (match-end 0) (line-end-position))))
1378 (when (search-backward " in sequence " (point-min) t) 1378 (when (search-backward " in sequence " (point-min) t)
1379 (setq p (point)) 1379 (setq p (point))
1380 (when (search-backward " has " (point-min) t) 1380 (when (search-backward " has " (point-min) t)
1381 (setq unseen (read-from-string (buffer-substring-no-properties 1381 (setq unseen (string-to-number (buffer-substring-no-properties
1382 (match-end 0) p))) 1382 (match-end 0) p)))
1383 (while (eq (char-after) ? ) 1383 (while (eq (char-after) ? )
1384 (backward-char)) 1384 (backward-char))
@@ -1387,7 +1387,7 @@ folders whose names end with a '+' character."
1387 (when (and (equal (aref folder (1- (length folder))) ?+) 1387 (when (and (equal (aref folder (1- (length folder))) ?+)
1388 (equal current-folder folder)) 1388 (equal current-folder folder))
1389 (setq folder (substring folder 0 (1- (length folder))))) 1389 (setq folder (substring folder 0 (1- (length folder)))))
1390 (values (format "+%s" folder) (car unseen) (car total)))))))) 1390 (values (format "+%s" folder) unseen total)))))))
1391 1391
1392(defun mh-folder-size-folder (folder) 1392(defun mh-folder-size-folder (folder)
1393 "Find size of FOLDER using \"folder\"." 1393 "Find size of FOLDER using \"folder\"."
@@ -1398,7 +1398,7 @@ folders whose names end with a '+' character."
1398 "-norecurse" folder) 1398 "-norecurse" folder)
1399 (goto-char (point-min)) 1399 (goto-char (point-min))
1400 (if (re-search-forward " has \\([0-9]+\\) " nil t) 1400 (if (re-search-forward " has \\([0-9]+\\) " nil t)
1401 (values (car (read-from-string (match-string 1))) u folder) 1401 (values (string-to-number (match-string 1)) u folder)
1402 (values 0 u folder))))) 1402 (values 0 u folder)))))
1403 1403
1404(defun mh-folder-size-flist (folder) 1404(defun mh-folder-size-flist (folder)
diff --git a/lisp/mh-e/mh-identity.el b/lisp/mh-e/mh-identity.el
index 92467b783a9..cd6cff1daed 100644
--- a/lisp/mh-e/mh-identity.el
+++ b/lisp/mh-e/mh-identity.el
@@ -127,7 +127,7 @@ The field name is downcased. If the FIELD begins with the
127character \":\", then it must have a special handler defined in 127character \":\", then it must have a special handler defined in
128`mh-identity-handlers', else return an error since it is not a 128`mh-identity-handlers', else return an error since it is not a
129valid header field." 129valid header field."
130 (or (cdr (mh-assoc-ignore-case field mh-identity-handlers)) 130 (or (cdr (assoc-string field mh-identity-handlers t))
131 (and (eq (aref field 0) ?:) 131 (and (eq (aref field 0) ?:)
132 (error "Field %s not found in `mh-identity-handlers'" field)) 132 (error "Field %s not found in `mh-identity-handlers'" field))
133 (cdr (assoc ":default" mh-identity-handlers)) 133 (cdr (assoc ":default" mh-identity-handlers))
diff --git a/lisp/mh-e/mh-mime.el b/lisp/mh-e/mh-mime.el
index 0f2396d1804..a91d7b1212a 100644
--- a/lisp/mh-e/mh-mime.el
+++ b/lisp/mh-e/mh-mime.el
@@ -543,7 +543,7 @@ The function will prompt the user for a DESCRIPTION, a FOLDER and
543MESSAGE number." 543MESSAGE number."
544 (let ((msg (if (and (equal message "") (numberp mh-sent-from-msg)) 544 (let ((msg (if (and (equal message "") (numberp mh-sent-from-msg))
545 mh-sent-from-msg 545 mh-sent-from-msg
546 (car (read-from-string message))))) 546 (string-to-number message))))
547 (cond ((integerp msg) 547 (cond ((integerp msg)
548 (if (string= "" description) 548 (if (string= "" description)
549 ;; Rationale: mml-attach-file constructs a malformed composition 549 ;; Rationale: mml-attach-file constructs a malformed composition
@@ -921,7 +921,10 @@ parsed and then displayed."
921 ;; If needed dissect the current buffer 921 ;; If needed dissect the current buffer
922 (if pre-dissected-handles 922 (if pre-dissected-handles
923 (setq handles pre-dissected-handles) 923 (setq handles pre-dissected-handles)
924 (setq handles (or (mm-dissect-buffer nil) (mm-uu-dissect))) 924 (if (setq handles (mm-dissect-buffer nil))
925 (when (fboundp 'mm-uu-dissect-text-parts)
926 (mm-uu-dissect-text-parts handles))
927 (setq handles (mm-uu-dissect)))
925 (setf (mh-mime-handles (mh-buffer-data)) 928 (setf (mh-mime-handles (mh-buffer-data))
926 (mm-merge-handles handles 929 (mm-merge-handles handles
927 (mh-mime-handles (mh-buffer-data)))) 930 (mh-mime-handles (mh-buffer-data))))
@@ -1477,8 +1480,11 @@ decoding the same message multiple times."
1477 (mh-mime-display 1480 (mh-mime-display
1478 (or (gethash handle (mh-mime-handles-cache (mh-buffer-data))) 1481 (or (gethash handle (mh-mime-handles-cache (mh-buffer-data)))
1479 (setf (gethash handle (mh-mime-handles-cache (mh-buffer-data))) 1482 (setf (gethash handle (mh-mime-handles-cache (mh-buffer-data)))
1480 (let ((handles (or (mm-dissect-buffer nil) 1483 (let ((handles (mm-dissect-buffer nil)))
1481 (mm-uu-dissect)))) 1484 (if handles
1485 (when (fboundp 'mm-uu-dissect-text-parts)
1486 (mm-uu-dissect-text-parts handles))
1487 (setq handles (mm-uu-dissect)))
1482 (setf (mh-mime-handles (mh-buffer-data)) 1488 (setf (mh-mime-handles (mh-buffer-data))
1483 (mm-merge-handles 1489 (mm-merge-handles
1484 handles (mh-mime-handles (mh-buffer-data)))) 1490 handles (mh-mime-handles (mh-buffer-data))))
diff --git a/lisp/mh-e/mh-search.el b/lisp/mh-e/mh-search.el
index 55cbd02dd97..55e6d7b076f 100644
--- a/lisp/mh-e/mh-search.el
+++ b/lisp/mh-e/mh-search.el
@@ -1105,10 +1105,8 @@ is used to search."
1105 (substring s (match-end 0) (1- (length s)))) 1105 (substring s (match-end 0) (1- (length s))))
1106 (return 'error))) 1106 (return 'error)))
1107 (let* ((s (buffer-substring-no-properties (1+ (point)) end)) 1107 (let* ((s (buffer-substring-no-properties (1+ (point)) end))
1108 (val (ignore-errors (read-from-string s)))) 1108 (n (ignore-errors (string-to-number s))))
1109 (if (and (consp val) (numberp (car val))) 1109 (if n n (return 'error)))
1110 (car val)
1111 (return 'error)))
1112 nil))) 1110 nil)))
1113 (forward-line))) 1111 (forward-line)))
1114 1112
@@ -1184,8 +1182,8 @@ SEARCH-REGEXP-LIST is used to search."
1184 (return 'error)) 1182 (return 'error))
1185 (list (format "+%s" (buffer-substring-no-properties 1183 (list (format "+%s" (buffer-substring-no-properties
1186 (point) (1- msg-start))) 1184 (point) (1- msg-start)))
1187 (car (read-from-string 1185 (string-to-number
1188 (buffer-substring-no-properties msg-start end))) 1186 (buffer-substring-no-properties msg-start end))
1189 nil))) 1187 nil)))
1190 (forward-line))) 1188 (forward-line)))
1191 1189
@@ -1313,11 +1311,9 @@ is used to search."
1313 (mark (mh-search-from-end ?/ folder/msg))) 1311 (mark (mh-search-from-end ?/ folder/msg)))
1314 (unless mark (return 'error)) 1312 (unless mark (return 'error))
1315 (list (format "+%s" (substring folder/msg 0 mark)) 1313 (list (format "+%s" (substring folder/msg 0 mark))
1316 (let ((n (ignore-errors (read-from-string 1314 (let ((n (ignore-errors (string-to-number
1317 (substring folder/msg (1+ mark)))))) 1315 (substring folder/msg (1+ mark))))))
1318 (if (and (consp n) (numberp (car n))) 1316 (if n n (return 'error)))
1319 (car n)
1320 (return 'error)))
1321 nil)))) 1317 nil))))
1322 (forward-line))) 1318 (forward-line)))
1323 1319
@@ -1458,12 +1454,10 @@ record is invalid return 'error."
1458 (return 'error)) 1454 (return 'error))
1459 (list (format "+%s" (buffer-substring-no-properties 1455 (list (format "+%s" (buffer-substring-no-properties
1460 folder-start (point))) 1456 folder-start (point)))
1461 (let ((val (ignore-errors (read-from-string 1457 (let ((n (ignore-errors (string-to-number
1462 (buffer-substring-no-properties 1458 (buffer-substring-no-properties
1463 (1+ (point)) msg-end))))) 1459 (1+ (point)) msg-end)))))
1464 (if (and (consp val) (integerp (car val))) 1460 (if n n (return 'error)))
1465 (car val)
1466 (return 'error)))
1467 match)))) 1461 match))))
1468 (forward-line))) 1462 (forward-line)))
1469 1463
@@ -1804,8 +1798,8 @@ PROC is used to convert the value to actual data."
1804 (goto-char end) 1798 (goto-char end)
1805 (setq last-slash (search-backward "/" begin t)) 1799 (setq last-slash (search-backward "/" begin t))
1806 (cond ((and first-space last-slash) 1800 (cond ((and first-space last-slash)
1807 (cons (car (read-from-string (buffer-substring-no-properties 1801 (cons (string-to-number (buffer-substring-no-properties
1808 (1+ last-slash) end))) 1802 (1+ last-slash) end))
1809 (buffer-substring-no-properties begin (1- first-space)))) 1803 (buffer-substring-no-properties begin (1- first-space))))
1810 (t (cons nil nil))))) 1804 (t (cons nil nil)))))
1811 1805
@@ -1818,8 +1812,8 @@ PROC is used to convert the value to actual data."
1818 (setq last-space (search-backward " " begin t)) 1812 (setq last-space (search-backward " " begin t))
1819 (setq last-slash (search-backward "/" begin t)) 1813 (setq last-slash (search-backward "/" begin t))
1820 (cond ((and last-slash last-space) 1814 (cond ((and last-slash last-space)
1821 (cons (car (read-from-string (buffer-substring-no-properties 1815 (cons (string-to-number (buffer-substring-no-properties
1822 (1+ last-slash) (1- last-space)))) 1816 (1+ last-slash) (1- last-space)))
1823 (buffer-substring-no-properties (1+ last-space) end)))))) 1817 (buffer-substring-no-properties (1+ last-space) end))))))
1824 1818
1825(defalias 'mh-md5-parser 'mh-openssl-parser) 1819(defalias 'mh-md5-parser 'mh-openssl-parser)
@@ -1858,7 +1852,7 @@ origin-index) map is updated too."
1858 ;; update maps 1852 ;; update maps
1859 (setq checksum (buffer-substring-no-properties 1853 (setq checksum (buffer-substring-no-properties
1860 (point) (line-end-position))) 1854 (point) (line-end-position)))
1861 (let ((msg (car (read-from-string msg)))) 1855 (let ((msg (string-to-number msg)))
1862 (set-buffer folder) 1856 (set-buffer folder)
1863 (mh-index-update-single-msg msg checksum origin-map))))) 1857 (mh-index-update-single-msg msg checksum origin-map)))))
1864 (forward-line)))) 1858 (forward-line))))
diff --git a/lisp/mh-e/mh-seq.el b/lisp/mh-e/mh-seq.el
index 4f2f7de5916..842289ae635 100644
--- a/lisp/mh-e/mh-seq.el
+++ b/lisp/mh-e/mh-seq.el
@@ -560,7 +560,7 @@ should be replaced with:
560 (set-buffer mh-temp-buffer) 560 (set-buffer mh-temp-buffer)
561 (goto-char (point-min)) 561 (goto-char (point-min))
562 (while (re-search-forward "/\\([0-9]*\\)$" nil t) 562 (while (re-search-forward "/\\([0-9]*\\)$" nil t)
563 (push (car (read-from-string (match-string 1))) result)) 563 (push (string-to-number (match-string 1)) result))
564 (nreverse result))))) 564 (nreverse result)))))
565 565
566(defun mh-seq-names (seq-list) 566(defun mh-seq-names (seq-list)
@@ -928,9 +928,10 @@ The MH command pick is used to do the match."
928 (append original (list "-list") pick-expr)) 928 (append original (list "-list") pick-expr))
929 (goto-char (point-min)) 929 (goto-char (point-min))
930 (while (not (eobp)) 930 (while (not (eobp))
931 (let ((num (read-from-string 931 (let ((num (ignore-errors
932 (buffer-substring (point) (line-end-position))))) 932 (string-to-number
933 (when (numberp (car num)) (push (car num) msg-list)) 933 (buffer-substring (point) (line-end-position))))))
934 (when num (push num msg-list))
934 (forward-line)))) 935 (forward-line))))
935 (if (null msg-list) 936 (if (null msg-list)
936 (message "No matches") 937 (message "No matches")
@@ -1350,7 +1351,7 @@ Only information about messages in MSG-LIST are added to the tree."
1350 (let* ((index-line 1351 (let* ((index-line
1351 (prog1 (buffer-substring (point) (line-end-position)) 1352 (prog1 (buffer-substring (point) (line-end-position))
1352 (forward-line))) 1353 (forward-line)))
1353 (index (car (read-from-string index-line))) 1354 (index (string-to-number index-line))
1354 (id (prog1 (buffer-substring (point) (line-end-position)) 1355 (id (prog1 (buffer-substring (point) (line-end-position))
1355 (forward-line))) 1356 (forward-line)))
1356 (refs (prog1 (buffer-substring (point) (line-end-position)) 1357 (refs (prog1 (buffer-substring (point) (line-end-position))
diff --git a/lisp/textmodes/sgml-mode.el b/lisp/textmodes/sgml-mode.el
index 79e41cecfc1..77f625b8456 100644
--- a/lisp/textmodes/sgml-mode.el
+++ b/lisp/textmodes/sgml-mode.el
@@ -1,4 +1,4 @@
1;;; sgml-mode.el --- SGML- and HTML-editing modes 1;;; sgml-mode.el --- SGML- and HTML-editing modes -*- coding: iso-2022-7bit -*-
2 2
3;; Copyright (C) 1992, 1995, 1996, 1998, 2001, 2002, 2003, 2004, 3;; Copyright (C) 1992, 1995, 1996, 1998, 2001, 2002, 2003, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005 Free Software Foundation, Inc.
@@ -1828,12 +1828,9 @@ To work around that, do:
1828 (make-local-variable 'outline-regexp) 1828 (make-local-variable 'outline-regexp)
1829 (make-local-variable 'outline-heading-end-regexp) 1829 (make-local-variable 'outline-heading-end-regexp)
1830 (make-local-variable 'outline-level) 1830 (make-local-variable 'outline-level)
1831 (make-local-variable 'sentence-end) 1831 (make-local-variable 'sentence-end-base)
1832 (setq sentence-end 1832 (setq sentence-end-base "[.?!][]\"'$B!I$,1r}(B)}]*\\(<[^>]*>\\)*"
1833 (if sentence-end-double-space 1833 sgml-tag-alist html-tag-alist
1834 "[.?!][]\"')}]*\\(<[^>]*>\\)*\\($\\| $\\|\t\\| \\)[ \t\n]*"
1835 "[.?!][]\"')}]*\\(<[^>]*>\\)*\\($\\|[ \t]\\)[ \t\n]*"))
1836 (setq sgml-tag-alist html-tag-alist
1837 sgml-face-tag-alist html-face-tag-alist 1834 sgml-face-tag-alist html-face-tag-alist
1838 sgml-tag-help html-tag-help 1835 sgml-tag-help html-tag-help
1839 outline-regexp "^.*<[Hh][1-6]\\>" 1836 outline-regexp "^.*<[Hh][1-6]\\>"
diff --git a/lisp/time.el b/lisp/time.el
index b70e7f7b00e..614bb055b25 100644
--- a/lisp/time.el
+++ b/lisp/time.el
@@ -129,7 +129,7 @@ This runs the normal hook `display-time-hook' after each update."
129If `display-time-use-mail-icon' is non-nil, the image's 129If `display-time-use-mail-icon' is non-nil, the image's
130background color is the background of this face. Set this to 130background color is the background of this face. Set this to
131make the mail indicator stand out on a color display." 131make the mail indicator stand out on a color display."
132 :group 'faces 132 :group 'mode-line-faces
133 :group 'display-time 133 :group 'display-time
134 :version "22.1" 134 :version "22.1"
135 :type '(choice (const :tag "None" nil) face)) 135 :type '(choice (const :tag "None" nil) face))
diff --git a/man/ChangeLog b/man/ChangeLog
index 423a4355030..eace76aae1a 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,12 @@
12006-01-16 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * gnus.texi: Update copyright.
4
52006-01-16 Juri Linkov <juri@jurta.org>
6
7 * display.texi (Standard Faces): Add `mode-line-buffer-id'.
8 Move `mode-line-highlight' before `mode-line-buffer-id'.
9
12006-01-13 Katsumi Yamaoka <yamaoka@jpl.org> 102006-01-13 Katsumi Yamaoka <yamaoka@jpl.org>
2 11
3 * gnus.texi (Article Washing): Additions. 12 * gnus.texi (Article Washing): Additions.
diff --git a/man/display.texi b/man/display.texi
index 2a3fc30ad82..e1f40e790b1 100644
--- a/man/display.texi
+++ b/man/display.texi
@@ -142,8 +142,6 @@ their own faces for this purpose.)
142@item highlight 142@item highlight
143This face is used for highlighting portions of text, in various modes. 143This face is used for highlighting portions of text, in various modes.
144For example, mouse-sensitive text is highlighted using this face. 144For example, mouse-sensitive text is highlighted using this face.
145@item mode-line-highlight
146Like @code{highlight}, but used for portions of text on mode lines.
147@item isearch 145@item isearch
148This face is used for highlighting Isearch matches. 146This face is used for highlighting Isearch matches.
149@item lazy-highlight 147@item lazy-highlight
@@ -193,6 +191,10 @@ Like @code{mode-line}, but used for mode lines of the windows other
193than the selected one (if @code{mode-line-in-non-selected-windows} is 191than the selected one (if @code{mode-line-in-non-selected-windows} is
194non-@code{nil}). This face inherits from @code{mode-line}, so changes 192non-@code{nil}). This face inherits from @code{mode-line}, so changes
195in that face affect mode lines in all windows. 193in that face affect mode lines in all windows.
194@item mode-line-highlight
195Like @code{highlight}, but used for portions of text on mode lines.
196@item mode-line-buffer-id
197This face is used for buffer identification parts in the mode line.
196@item header-line 198@item header-line
197Similar to @code{mode-line} for a window's header line. Most modes 199Similar to @code{mode-line} for a window's header line. Most modes
198don't use the header line, but some special modes, such the Info mode, do. 200don't use the header line, but some special modes, such the Info mode, do.
diff --git a/man/gnus.texi b/man/gnus.texi
index e28537329ba..8fe7355a4c8 100644
--- a/man/gnus.texi
+++ b/man/gnus.texi
@@ -8,7 +8,7 @@
8 8
9@copying 9@copying
10Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 10Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001,
11 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 11 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
12 12
13@quotation 13@quotation
14Permission is granted to copy, distribute and/or modify this document 14Permission is granted to copy, distribute and/or modify this document