aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorKaroly Lorentey2005-03-06 13:31:20 +0000
committerKaroly Lorentey2005-03-06 13:31:20 +0000
commita0d878a9ccbfb7c68dd7cfbe05c2b71b9bd5c830 (patch)
tree79ba80d6f6c4b787c60b36ebcd87c1b26f0906e1 /lisp
parentab455350da7728b0f8e1daf92c084092d8a04c29 (diff)
parentbe6e87e51aaa3a114bc4ff2ceccbc7c9aa2b30d0 (diff)
downloademacs-a0d878a9ccbfb7c68dd7cfbe05c2b71b9bd5c830.tar.gz
emacs-a0d878a9ccbfb7c68dd7cfbe05c2b71b9bd5c830.zip
Merged from miles@gnu.org--gnu-2005 (patch 34-36, 142-158)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-142 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-143 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-144 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-145 (make-text-button): Default button type if not specified * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-146 quick-install-emacs: Use mkdir --verbose only when requested * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-147 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-148 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-149 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-150 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-151 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-152 Add info/dir to arch branch * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-153 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-154 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-155 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-156 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-157 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-158 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-34 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-35 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-36 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-303
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog144
-rw-r--r--lisp/button.el37
-rw-r--r--lisp/calendar/calendar.el10
-rw-r--r--lisp/calendar/diary-lib.el23
-rw-r--r--lisp/calendar/icalendar.el21
-rw-r--r--lisp/double.el1
-rw-r--r--lisp/emacs-lisp/copyright.el37
-rw-r--r--lisp/emacs-lisp/debug.el105
-rw-r--r--lisp/frame.el2
-rw-r--r--lisp/gnus/ChangeLog30
-rw-r--r--lisp/gnus/gnus-sum.el10
-rw-r--r--lisp/gnus/message.el39
-rw-r--r--lisp/gnus/nnweb.el14
-rw-r--r--lisp/ibuf-ext.el12
-rw-r--r--lisp/international/code-pages.el13
-rw-r--r--lisp/menu-bar.el13
-rw-r--r--lisp/progmodes/compile.el4
-rw-r--r--lisp/progmodes/gdb-ui.el51
-rw-r--r--lisp/simple.el46
-rw-r--r--lisp/startup.el10
-rw-r--r--lisp/textmodes/texinfmt.el9
21 files changed, 464 insertions, 167 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7c3842ea3a5..d65a446a376 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,7 +1,147 @@
12005-03-05 Luc Teirlinck <teirllm@auburn.edu>
2
3 * simple.el (goto-line): Remove unbalanced final parenthesis.
4
52005-03-05 Richard M. Stallman <rms@gnu.org>
6
7 * simple.el (goto-line): Use a number at point as the default.
8 With C-u as arg, switch buffers.
9
102005-03-05 Juri Linkov <juri@jurta.org>
11
12 * frame.el (blink-cursor-mode): Replace `emacs-quick-startup'
13 with `no-blinking-cursor'.
14
15 * startup.el (no-blinking-cursor): New defvar.
16 (command-line): Add `--no-blinking-cursor' to longopts.
17 Set `no-blinking-cursor' to t for command line arguments
18 -Q, -nbc, --no-blinking-cursor. Replace `emacs-quick-startup'
19 with `no-blinking-cursor' in the condition for calling
20 `blink-cursor-mode'.
21
222005-03-04 Luc Teirlinck <teirllm@auburn.edu>
23
24 * menu-bar.el (menu-bar-make-mm-toggle): Doc fix.
25 (menu-bar-options-save): Add blink-cursor-mode.
26 (menu-bar-options-menu): Add blink-cursor-mode.
27
282005-03-04 Ulf Jasper <ulf.jasper@web.de>
29
30 * calendar/icalendar.el (icalendar-version): Increase to 0.11.
31 (icalendar-export-file, icalendar-export-region)
32 (icalendar-import-file, icalendar-import-buffer): Add autoload
33 cookies.
34 (icalendar--convert-ical-to-diary): Fix problem with DURATION.
35
362005-03-04 Lute Kamstra <lute@gnu.org>
37
38 * emacs-lisp/debug.el (debugger-step-after-exit): Make it a
39 defvar.
40 (debug-function-list): Ditto.
41
422005-03-04 Robert J. Chassell <bob@rattlesnake.com>
43
44 * textmodes/texinfmt.el (texinfo-append-refill):
45 Redefine the types of line to which @refill
46 is not appended by replacing a search for `@refill\\|@bye' with
47 `@refill\\|^[ \t]*@'. The intent is to solve both the `@end
48 itemize@refill' bug and the unfilled long lines bug.
49 (texinfmt-version): update number and date.
50
512005-03-04 Reiner Steib <Reiner.Steib@gmx.de>
52
53 * international/code-pages.el (windows-1250, windows-125[2-8])
54 (iso-8859-10, -13, -16, georgian-ps): Add autoload cookies.
55
562005-03-03 Stefan Monnier <monnier@iro.umontreal.ca>
57
58 * frame.el (blink-cursor-mode): `emacs-quick-startup' may not be
59 bound yet.
60
612005-03-02 Romain Francoise <romain@orebokech.com>
62
63 * ibuf-ext.el (ibuffer-filter-disable): Move back to the current
64 buffer after removing limits.
65 (ibuffer-pop-filter): Ditto.
66 Update copyright.
67
682005-03-02 Miles Bader <miles@gnu.org>
69
70 * button.el (make-text-button): If the user doesn't specify a
71 type, use the default. Rewrite to use `add-text-properties' and
72 plist functions.
73
742005-03-01 Lute Kamstra <lute@gnu.org>
75
76 * emacs-lisp/debug.el (inhibit-debug-on-entry): Add docstring.
77 (debugger-jumping-flag): New var.
78 (debug-entry-code): Use it.
79 (debugger-jump): Use debugger-jumping-flag and add
80 debugger-reenable to post-command-hook.
81 (debugger-reenable): Use debugger-jumping-flag and remove itself
82 from post-command-hook.
83 (debug, debug-on-entry, cancel-debug-on-entry): Remove call to
84 debugger-reenable.
85
862005-03-01 Robert J. Chassell <bob@rattlesnake.com>
87
88 * textmodes/texinfmt.el (texinfo-no-refill-regexp): Comment out
89 inclusion of "itemize\\|", which may be unnecessary, is certainly
90 inelegant, and stops refilling in itemize lists when formatting
91 Japanese Texinfo files to Info.
92 Update copyright to 2005.
93
942005-03-01 Nick Roberts <nickrob@snap.net.nz>
95
96 * progmodes/gdb-ui.el (gdb-get-location): Use a warning instead
97 of an error if GDB can't find the source file.
98
992005-03-01 Glenn Morris <gmorris@ast.cam.ac.uk>
100
101 * calendar/calendar.el (redraw-calendar): Work from any buffer,
102 not just the calendar.
103
104 * calendar/diary-lib.el (mark-diary-entries): Remove any old marks
105 first.
106 (diary-redraw-calendar): New function.
107 (make-diary-entry): Add diary-redraw-calendar to local
108 write-contents-functions. Turn off selective display before
109 inserting in diary.
110
1112005-03-01 Kim F. Storm <storm@cua.dk>
112
113 * emacs-lisp/copyright.el (copyright-fix-years): New command.
114
1152005-03-01 Lute Kamstra <lute@gnu.org>
116
117 * emacs-lisp/debug.el (debug-on-entry-1): Reimplement to make sure
118 that debug-entry-code can be safely removed from a function while
119 this code is being evaluated. Revert the 2005-02-27 change as the
120 new implementation no longer requires it. Make sure that a
121 function body containing just a string is not mistaken for a
122 docstring.
123 (debug): Skip one more frame in case of debug on entry.
124 (debugger-setup-buffer): Delete one more frame line in case of
125 debug on entry.
126 (debugger-frame-number): Update to use the new text introduced by
127 the 1999-11-03 change. Skip one more frame in case of debug on entry.
128
1292005-02-28 Kim F. Storm <storm@cua.dk>
130
131 * double.el (double-translate-key): Call force-window-update after
132 read-event to avoid crash in redisplay.
133
1342005-02-28 Stefan Monnier <monnier@iro.umontreal.ca>
135
136 * emacs-lisp/debug.el (inhibit-debug-on-entry): New var.
137 (debug): Use it. Move the inhibit-trace earlier.
138 (debug-entry-code): New const.
139 (debug-on-entry-1): Use it.
140
12005-02-28 Chong Yidong" <cyd@stupidchicken.com> (tiny change) 1412005-02-28 Chong Yidong" <cyd@stupidchicken.com> (tiny change)
2 142
3 * international/utf-16.el (ccl-encode-mule-utf-16le): Fix 143 * international/utf-16.el (ccl-encode-mule-utf-16le):
4 BUFFER_MAGNIFICATION to 2. 144 Fix BUFFER_MAGNIFICATION to 2.
5 (ccl-encode-mule-utf-16be): Likewise. 145 (ccl-encode-mule-utf-16be): Likewise.
6 146
72005-02-28 Kenichi Handa <handa@m17n.org> 1472005-02-28 Kenichi Handa <handa@m17n.org>
diff --git a/lisp/button.el b/lisp/button.el
index 5f9b5094e6c..78008f06db2 100644
--- a/lisp/button.el
+++ b/lisp/button.el
@@ -1,6 +1,6 @@
1;;; button.el --- clickable buttons 1;;; button.el --- clickable buttons
2;; 2;;
3;; Copyright (C) 2001 Free Software Foundation, Inc. 3;; Copyright (C) 2001, 2005 Free Software Foundation, Inc.
4;; 4;;
5;; Author: Miles Bader <miles@gnu.org> 5;; Author: Miles Bader <miles@gnu.org>
6;; Keywords: extensions 6;; Keywords: extensions
@@ -298,24 +298,23 @@ large numbers of buttons can also be somewhat faster using
298`make-text-button'. 298`make-text-button'.
299 299
300Also see `insert-text-button'." 300Also see `insert-text-button'."
301 (let (prop val) 301 (let ((type-entry
302 (while properties 302 (or (plist-member properties 'type)
303 (setq prop (pop properties)) 303 (plist-member properties :type))))
304 (setq val (pop properties)) 304 ;; Disallow setting the `category' property directly.
305 ;; Note that all the following code is basically equivalent to 305 (when (plist-get properties 'category)
306 ;; `button-put', but we can do it much more efficiently since we 306 (error "Button `category' property may not be set directly"))
307 ;; already have BEG and END. 307 (if (null type-entry)
308 (cond ((memq prop '(type :type)) 308 ;; The user didn't specify a `type' property, use the default.
309 ;; We translate a `type' property into a `category' 309 (setq properties (cons 'category (cons 'default-button properties)))
310 ;; property, since that's what's actually used by 310 ;; The user did specify a `type' property. Translate it into a
311 ;; text-properties for inheritance. 311 ;; `category' property, which is what's actually used by
312 (setq prop 'category) 312 ;; text-properties for inheritance.
313 (setq val (button-category-symbol val))) 313 (setcar type-entry 'category)
314 ((eq prop 'category) 314 (setcar (cdr type-entry)
315 ;; Disallow setting the `category' property directly. 315 (button-category-symbol (car (cdr type-entry))))))
316 (error "Button `category' property may not be set directly"))) 316 ;; Now add all the text properties at once
317 ;; Add the property. 317 (add-text-properties beg end properties)
318 (put-text-property beg end prop val)))
319 ;; Return something that can be used to get at the button. 318 ;; Return something that can be used to get at the button.
320 beg) 319 beg)
321 320
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 291452db080..66ee1875a23 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -2169,11 +2169,13 @@ the inserted text. Value is always t."
2169 t) 2169 t)
2170 2170
2171(defun redraw-calendar () 2171(defun redraw-calendar ()
2172 "Redraw the calendar display." 2172 "Redraw the calendar display, if `calendar-buffer' is live."
2173 (interactive) 2173 (interactive)
2174 (let ((cursor-date (calendar-cursor-to-nearest-date))) 2174 (if (get-buffer calendar-buffer)
2175 (generate-calendar-window displayed-month displayed-year) 2175 (with-current-buffer calendar-buffer
2176 (calendar-cursor-to-visible-date cursor-date))) 2176 (let ((cursor-date (calendar-cursor-to-nearest-date)))
2177 (generate-calendar-window displayed-month displayed-year)
2178 (calendar-cursor-to-visible-date cursor-date)))))
2177 2179
2178(defcustom calendar-debug-sexp nil 2180(defcustom calendar-debug-sexp nil
2179 "*Turn debugging on when evaluating a sexp in the diary or holiday list." 2181 "*Turn debugging on when evaluating a sexp in the diary or holiday list."
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 5fbae2500d7..97dc1dd0a71 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -1,6 +1,6 @@
1;;; diary-lib.el --- diary functions 1;;; diary-lib.el --- diary functions
2 2
3;; Copyright (C) 1989, 1990, 1992, 1993, 1994, 1995, 2003, 2004 3;; Copyright (C) 1989, 1990, 1992, 1993, 1994, 1995, 2003, 2004, 2005
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Author: Edward M. Reingold <reingold@cs.uiuc.edu> 6;; Author: Edward M. Reingold <reingold@cs.uiuc.edu>
@@ -841,6 +841,10 @@ Each entry in the diary file visible in the calendar window is marked.
841After the entries are marked, the hooks `nongregorian-diary-marking-hook' and 841After the entries are marked, the hooks `nongregorian-diary-marking-hook' and
842`mark-diary-entries-hook' are run." 842`mark-diary-entries-hook' are run."
843 (interactive) 843 (interactive)
844 ;; To remove any deleted diary entries.
845 (when mark-diary-entries-in-calendar
846 (setq mark-diary-entries-in-calendar nil)
847 (redraw-calendar))
844 (let ((marking-diary-entries t) 848 (let ((marking-diary-entries t)
845 file-glob-attrs marks) 849 file-glob-attrs marks)
846 (save-excursion 850 (save-excursion
@@ -1647,11 +1651,26 @@ Do nothing if DATE or STRING is nil."
1647 (append diary-entries-list 1651 (append diary-entries-list
1648 (list (list date string specifier marker globcolor)))))) 1652 (list (list date string specifier marker globcolor))))))
1649 1653
1654(defun diary-redraw-calendar ()
1655 "If `calendar-buffer' is live and diary entries are marked, redraw it."
1656 (and mark-diary-entries-in-calendar
1657 (redraw-calendar))
1658 ;; Return value suitable for `write-contents-functions'.
1659 nil)
1660
1650(defun make-diary-entry (string &optional nonmarking file) 1661(defun make-diary-entry (string &optional nonmarking file)
1651 "Insert a diary entry STRING which may be NONMARKING in FILE. 1662 "Insert a diary entry STRING which may be NONMARKING in FILE.
1652If omitted, NONMARKING defaults to nil and FILE defaults to `diary-file'." 1663If omitted, NONMARKING defaults to nil and FILE defaults to
1664`diary-file'. Adds `diary-redraw-calendar' to
1665`write-contents-functions' for FILE, so that the calendar will be
1666redrawn with the new entry marked, if necessary."
1653 (let ((pop-up-frames (window-dedicated-p (selected-window)))) 1667 (let ((pop-up-frames (window-dedicated-p (selected-window))))
1654 (find-file-other-window (substitute-in-file-name (or file diary-file)))) 1668 (find-file-other-window (substitute-in-file-name (or file diary-file))))
1669 (add-hook 'write-contents-functions 'diary-redraw-calendar nil t)
1670 (when selective-display
1671 (subst-char-in-region (point-min) (point-max) ?\^M ?\n t)
1672 (setq selective-display nil)
1673 (kill-local-variable 'mode-line-format))
1655 (widen) 1674 (widen)
1656 (goto-char (point-max)) 1675 (goto-char (point-max))
1657 (when (let ((case-fold-search t)) 1676 (when (let ((case-fold-search t))
diff --git a/lisp/calendar/icalendar.el b/lisp/calendar/icalendar.el
index fe127be3990..320a6aa0f72 100644
--- a/lisp/calendar/icalendar.el
+++ b/lisp/calendar/icalendar.el
@@ -90,7 +90,7 @@
90 90
91;;; Code: 91;;; Code:
92 92
93(defconst icalendar-version 0.10 93(defconst icalendar-version 0.11
94 "Version number of icalendar.el.") 94 "Version number of icalendar.el.")
95 95
96;; ====================================================================== 96;; ======================================================================
@@ -415,8 +415,10 @@ FIXME: multiple comma-separated values should be allowed!"
415 "Return ISODURATIONSTRING in format like `decode-time'. 415 "Return ISODURATIONSTRING in format like `decode-time'.
416Converts from ISO-8601 to Emacs representation. If ISODURATIONSTRING 416Converts from ISO-8601 to Emacs representation. If ISODURATIONSTRING
417specifies UTC time (trailing letter Z) the decoded time is given in 417specifies UTC time (trailing letter Z) the decoded time is given in
418the local time zone! FIXME: TZID-attributes are ignored....! FIXME: 418the local time zone!
419multiple comma-separated values should be allowed!" 419
420FIXME: TZID-attributes are ignored....!
421FIXME: multiple comma-separated values should be allowed!"
420 (if isodurationstring 422 (if isodurationstring
421 (save-match-data 423 (save-match-data
422 (string-match 424 (string-match
@@ -672,7 +674,7 @@ would be \"pm\"."
672;; Export -- convert emacs-diary to icalendar 674;; Export -- convert emacs-diary to icalendar
673;; ====================================================================== 675;; ======================================================================
674 676
675;; User function 677;;;###autoload
676(defun icalendar-export-file (diary-filename ical-filename) 678(defun icalendar-export-file (diary-filename ical-filename)
677 "Export diary file to iCalendar format. 679 "Export diary file to iCalendar format.
678All diary entries in the file DIARY-FILENAME are converted to iCalendar 680All diary entries in the file DIARY-FILENAME are converted to iCalendar
@@ -686,7 +688,7 @@ Finto iCalendar file: ")
686(defalias 'icalendar-convert-diary-to-ical 'icalendar-export-file) 688(defalias 'icalendar-convert-diary-to-ical 'icalendar-export-file)
687(make-obsolete 'icalendar-convert-diary-to-ical 'icalendar-export-file) 689(make-obsolete 'icalendar-convert-diary-to-ical 'icalendar-export-file)
688 690
689;; User function 691;;;###autoload
690(defun icalendar-export-region (min max ical-filename) 692(defun icalendar-export-region (min max ical-filename)
691 "Export region in diary file to iCalendar format. 693 "Export region in diary file to iCalendar format.
692All diary entries in the region from MIN to MAX in the current buffer are 694All diary entries in the region from MIN to MAX in the current buffer are
@@ -1112,7 +1114,7 @@ FExport diary data into iCalendar file: ")
1112;; Import -- convert icalendar to emacs-diary 1114;; Import -- convert icalendar to emacs-diary
1113;; ====================================================================== 1115;; ======================================================================
1114 1116
1115;; User function 1117;;;###autoload
1116(defun icalendar-import-file (ical-filename diary-filename 1118(defun icalendar-import-file (ical-filename diary-filename
1117 &optional non-marking) 1119 &optional non-marking)
1118 "Import a iCalendar file and append to a diary file. 1120 "Import a iCalendar file and append to a diary file.
@@ -1129,7 +1131,7 @@ p")
1129 (set-buffer (find-file ical-filename)) 1131 (set-buffer (find-file ical-filename))
1130 (icalendar-import-buffer diary-filename t non-marking))) 1132 (icalendar-import-buffer diary-filename t non-marking)))
1131 1133
1132;; User function 1134;;;###autoload
1133(defun icalendar-import-buffer (&optional diary-file do-not-ask 1135(defun icalendar-import-buffer (&optional diary-file do-not-ask
1134 non-marking) 1136 non-marking)
1135 "Extract iCalendar events from current buffer. 1137 "Extract iCalendar events from current buffer.
@@ -1423,10 +1425,7 @@ written into the buffer ` *icalendar-errors*'."
1423 ((not (string= start-d end-d)) 1425 ((not (string= start-d end-d))
1424 (icalendar--dmsg "non-recurring event") 1426 (icalendar--dmsg "non-recurring event")
1425 (let ((ds (icalendar--datetime-to-diary-date dtstart)) 1427 (let ((ds (icalendar--datetime-to-diary-date dtstart))
1426 (de (icalendar--datetime-to-diary-date 1428 (de (icalendar--datetime-to-diary-date dtend)))
1427 (icalendar--decode-isodatetime
1428 (icalendar--get-event-property e 'DTEND)
1429 -1))))
1430 (setq diary-string 1429 (setq diary-string
1431 (format "%%%%(and (diary-block %s %s))" 1430 (format "%%%%(and (diary-block %s %s))"
1432 ds de))) 1431 ds de)))
diff --git a/lisp/double.el b/lisp/double.el
index fc931992bd1..c9c27203344 100644
--- a/lisp/double.el
+++ b/lisp/double.el
@@ -116,6 +116,7 @@ but not `C-u X' or `ESC X' since the X is not the prefix key."
116 ;; End of generated event. See if he will repeat it... 116 ;; End of generated event. See if he will repeat it...
117 (let ((new (double-read-event prompt)) 117 (let ((new (double-read-event prompt))
118 (entry (assoc double-last-event double-map))) 118 (entry (assoc double-last-event double-map)))
119 (force-window-update (selected-window))
119 (if (eq new double-last-event) 120 (if (eq new double-last-event)
120 (progn 121 (progn
121 (setq unread-command-events 122 (setq unread-command-events
diff --git a/lisp/emacs-lisp/copyright.el b/lisp/emacs-lisp/copyright.el
index 3d160f54606..0be9d139fd2 100644
--- a/lisp/emacs-lisp/copyright.el
+++ b/lisp/emacs-lisp/copyright.el
@@ -1,6 +1,6 @@
1;;; copyright.el --- update the copyright notice in current buffer 1;;; copyright.el --- update the copyright notice in current buffer
2 2
3;; Copyright (C) 1991, 92, 93, 94, 95, 1998, 2001, 2003, 2004 3;; Copyright (C) 1991, 1992, 1993, 1994, 1995, 1998, 2001, 2003, 2004, 2005
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Author: Daniel Pfeiffer <occitan@esperanto.org> 6;; Author: Daniel Pfeiffer <occitan@esperanto.org>
@@ -178,6 +178,41 @@ version \\([0-9]+\\), or (at"
178 178
179 179
180;;;###autoload 180;;;###autoload
181(defun copyright-fix-years ()
182 "Convert 2 digit years to 4 digit years.
183Uses heuristic: year >= 50 means 19xx, < 50 means 20xx."
184 (interactive)
185 (widen)
186 (goto-char (point-min))
187 (if (re-search-forward copyright-regexp (+ (point) copyright-limit) t)
188 (let ((s (match-beginning 2)) (e (make-marker))
189 last)
190 (set-marker e (1+ (match-end 2)))
191 (goto-char s)
192 (while (and (< (point) (marker-position e))
193 (re-search-forward "\\([^0-9]\\)\\([0-9]+\\)[^0-9]"
194 (marker-position e) t))
195 (let ((p (point))
196 (sep (match-string 1))
197 (year (string-to-number (match-string 2))))
198 (goto-char (1+ (match-beginning 0)))
199 (unless (= (char-syntax (string-to-char sep)) ?\s)
200 (insert " "))
201 (if (< year 100)
202 (insert (if (>= year 50) "19" "20")))
203 (goto-char p)
204 (setq last p)))
205 (when last
206 (goto-char last)
207 (let ((fill-prefix " "))
208 (fill-region s last))
209 )
210 (set-marker e nil)
211 (copyright-update nil t))
212 (message "No copyright message")
213 (goto-char (point-min))))
214
215;;;###autoload
181(define-skeleton copyright 216(define-skeleton copyright
182 "Insert a copyright by $ORGANIZATION notice at cursor." 217 "Insert a copyright by $ORGANIZATION notice at cursor."
183 "Company: " 218 "Company: "
diff --git a/lisp/emacs-lisp/debug.el b/lisp/emacs-lisp/debug.el
index 58fb3b4a1b8..ab197e8e119 100644
--- a/lisp/emacs-lisp/debug.el
+++ b/lisp/emacs-lisp/debug.el
@@ -25,7 +25,7 @@
25 25
26;;; Commentary: 26;;; Commentary:
27 27
28;; This is a major mode documented in the Emacs manual. 28;; This is a major mode documented in the Emacs Lisp manual.
29 29
30;;; Code: 30;;; Code:
31 31
@@ -51,15 +51,11 @@ the middle is discarded, and just the beginning and end are displayed."
51 :group 'debugger 51 :group 'debugger
52 :version "21.1") 52 :version "21.1")
53 53
54(defcustom debug-function-list nil 54(defvar debug-function-list nil
55 "List of functions currently set for debug on entry." 55 "List of functions currently set for debug on entry.")
56 :type '(repeat function)
57 :group 'debugger)
58 56
59(defcustom debugger-step-after-exit nil 57(defvar debugger-step-after-exit nil
60 "Non-nil means \"single-step\" after the debugger exits." 58 "Non-nil means \"single-step\" after the debugger exits.")
61 :type 'boolean
62 :group 'debugger)
63 59
64(defvar debugger-value nil 60(defvar debugger-value nil
65 "This is the value for the debugger to return, when it returns.") 61 "This is the value for the debugger to return, when it returns.")
@@ -93,6 +89,21 @@ This is to optimize `debugger-make-xrefs'.")
93(defvar debugger-outer-inhibit-redisplay) 89(defvar debugger-outer-inhibit-redisplay)
94(defvar debugger-outer-cursor-in-echo-area) 90(defvar debugger-outer-cursor-in-echo-area)
95 91
92(defvar inhibit-debug-on-entry nil
93 "Non-nil means that debug-on-entry is disabled.")
94
95(defvar debugger-jumping-flag nil
96 "Non-nil means that debug-on-entry is disabled.
97This variable is used by `debugger-jump' and `debugger-reenable'.")
98
99;; When you change this, you may also need to change the number of
100;; frames that the debugger skips.
101(defconst debug-entry-code
102 '(if (or inhibit-debug-on-entry debugger-jumping-flag)
103 nil
104 (debug 'debug))
105 "Code added to a function to cause it to call the debugger upon entry.")
106
96;;;###autoload 107;;;###autoload
97(setq debugger 'debug) 108(setq debugger 'debug)
98;;;###autoload 109;;;###autoload
@@ -147,6 +158,8 @@ first will be printed into the backtrace buffer."
147 (setq overriding-terminal-local-map nil) 158 (setq overriding-terminal-local-map nil)
148 ;; Don't let these magic variables affect the debugger itself. 159 ;; Don't let these magic variables affect the debugger itself.
149 (let ((last-command nil) this-command track-mouse 160 (let ((last-command nil) this-command track-mouse
161 (inhibit-trace t)
162 (inhibit-debug-on-entry t)
150 unread-command-events 163 unread-command-events
151 unread-post-input-method-events 164 unread-post-input-method-events
152 last-input-event last-command-event last-nonmenu-event 165 last-input-event last-command-event last-nonmenu-event
@@ -185,12 +198,11 @@ first will be printed into the backtrace buffer."
185 (message "%s" (buffer-string)) 198 (message "%s" (buffer-string))
186 (kill-emacs)) 199 (kill-emacs))
187 (if (eq (car debugger-args) 'debug) 200 (if (eq (car debugger-args) 'debug)
188 ;; Skip the frames for backtrace-debug, byte-code, and debug. 201 ;; Skip the frames for backtrace-debug, byte-code,
189 (backtrace-debug 3 t)) 202 ;; and debug-entry-code.
190 (debugger-reenable) 203 (backtrace-debug 4 t))
191 (message "") 204 (message "")
192 (let ((inhibit-trace t) 205 (let ((standard-output nil)
193 (standard-output nil)
194 (buffer-read-only t)) 206 (buffer-read-only t))
195 (message "") 207 (message "")
196 ;; Make sure we unbind buffer-read-only in the right buffer. 208 ;; Make sure we unbind buffer-read-only in the right buffer.
@@ -250,7 +262,9 @@ That buffer should be current already."
250 (delete-region (point) 262 (delete-region (point)
251 (progn 263 (progn
252 (search-forward "\n debug(") 264 (search-forward "\n debug(")
253 (forward-line 1) 265 (forward-line (if (eq (car debugger-args) 'debug)
266 2 ; Remove debug-entry-code frame.
267 1))
254 (point))) 268 (point)))
255 (insert "Debugger entered") 269 (insert "Debugger entered")
256 ;; lambda is for debug-on-call when a function call is next. 270 ;; lambda is for debug-on-call when a function call is next.
@@ -395,25 +409,17 @@ will be used, such as in a debug on exit from a frame."
395 "Continue to exit from this frame, with all debug-on-entry suspended." 409 "Continue to exit from this frame, with all debug-on-entry suspended."
396 (interactive) 410 (interactive)
397 (debugger-frame) 411 (debugger-frame)
398 ;; Turn off all debug-on-entry functions 412 (setq debugger-jumping-flag t)
399 ;; but leave them in the list. 413 (add-hook 'post-command-hook 'debugger-reenable)
400 (let ((list debug-function-list))
401 (while list
402 (fset (car list)
403 (debug-on-entry-1 (car list) (symbol-function (car list)) nil))
404 (setq list (cdr list))))
405 (message "Continuing through this frame") 414 (message "Continuing through this frame")
406 (exit-recursive-edit)) 415 (exit-recursive-edit))
407 416
408(defun debugger-reenable () 417(defun debugger-reenable ()
409 "Turn all debug-on-entry functions back on." 418 "Turn all debug-on-entry functions back on.
410 (let ((list debug-function-list)) 419This function is put on `post-command-hook' by `debugger-jump' and
411 (while list 420removes itself from that hook."
412 (or (consp (symbol-function (car list))) 421 (setq debugger-jumping-flag nil)
413 (debug-convert-byte-code (car list))) 422 (remove-hook 'post-command-hook 'debugger-reenable))
414 (fset (car list)
415 (debug-on-entry-1 (car list) (symbol-function (car list)) t))
416 (setq list (cdr list)))))
417 423
418(defun debugger-frame-number () 424(defun debugger-frame-number ()
419 "Return number of frames in backtrace before the one point points at." 425 "Return number of frames in backtrace before the one point points at."
@@ -423,14 +429,13 @@ will be used, such as in a debug on exit from a frame."
423 (count 0)) 429 (count 0))
424 (while (not (eq (cadr (backtrace-frame count)) 'debug)) 430 (while (not (eq (cadr (backtrace-frame count)) 'debug))
425 (setq count (1+ count))) 431 (setq count (1+ count)))
432 ;; Skip debug-entry-code frame.
433 (when (member '(debug (quote debug)) (cdr (backtrace-frame (1+ count))))
434 (setq count (1+ count)))
426 (goto-char (point-min)) 435 (goto-char (point-min))
427 (if (or (equal (buffer-substring (point) (+ (point) 6)) 436 (when (looking-at "Debugger entered--\\(Lisp error\\|returning value\\):")
428 "Signal") 437 (goto-char (match-end 0))
429 (equal (buffer-substring (point) (+ (point) 6)) 438 (forward-sexp 1))
430 "Return"))
431 (progn
432 (search-forward ":")
433 (forward-sexp 1)))
434 (forward-line 1) 439 (forward-line 1)
435 (while (progn 440 (while (progn
436 (forward-char 2) 441 (forward-char 2)
@@ -476,8 +481,6 @@ Applies to the frame whose line point is on in the backtrace."
476 (insert ? ))) 481 (insert ? )))
477 (beginning-of-line)) 482 (beginning-of-line))
478 483
479
480
481(put 'debugger-env-macro 'lisp-indent-function 0) 484(put 'debugger-env-macro 'lisp-indent-function 0)
482(defmacro debugger-env-macro (&rest body) 485(defmacro debugger-env-macro (&rest body)
483 "Run BODY in original environment." 486 "Run BODY in original environment."
@@ -626,7 +629,6 @@ which must be written in Lisp, not predefined.
626Use \\[cancel-debug-on-entry] to cancel the effect of this command. 629Use \\[cancel-debug-on-entry] to cancel the effect of this command.
627Redefining FUNCTION also cancels it." 630Redefining FUNCTION also cancels it."
628 (interactive "aDebug on entry (to function): ") 631 (interactive "aDebug on entry (to function): ")
629 (debugger-reenable)
630 ;; Handle a function that has been aliased to some other function. 632 ;; Handle a function that has been aliased to some other function.
631 (if (and (subrp (symbol-function function)) 633 (if (and (subrp (symbol-function function))
632 (eq (cdr (subr-arity (symbol-function function))) 'unevalled)) 634 (eq (cdr (subr-arity (symbol-function function))) 'unevalled))
@@ -657,7 +659,6 @@ If argument is nil or an empty string, cancel for all functions."
657 (mapcar 'symbol-name debug-function-list) 659 (mapcar 'symbol-name debug-function-list)
658 nil t nil))) 660 nil t nil)))
659 (if name (intern name))))) 661 (if name (intern name)))))
660 (debugger-reenable)
661 (if (and function (not (string= function ""))) 662 (if (and function (not (string= function "")))
662 (progn 663 (progn
663 (let ((f (debug-on-entry-1 function (symbol-function function) nil))) 664 (let ((f (debug-on-entry-1 function (symbol-function function) nil)))
@@ -698,22 +699,18 @@ If argument is nil or an empty string, cancel for all functions."
698 (debug-on-entry-1 function (cdr defn) flag) 699 (debug-on-entry-1 function (cdr defn) flag)
699 (or (eq (car defn) 'lambda) 700 (or (eq (car defn) 'lambda)
700 (error "%s not user-defined Lisp function" function)) 701 (error "%s not user-defined Lisp function" function))
701 (let ((tail (cddr defn))) 702 (let ((tail (cdr defn)))
702 ;; Skip the docstring. 703 ;; Skip the docstring.
703 (if (stringp (car tail)) (setq tail (cdr tail))) 704 (when (and (stringp (cadr tail)) (cddr tail))
705 (setq tail (cdr tail)))
704 ;; Skip the interactive form. 706 ;; Skip the interactive form.
705 (if (eq 'interactive (car-safe (car tail))) (setq tail (cdr tail))) 707 (when (eq 'interactive (car-safe (cadr tail)))
706 (unless (eq flag (equal (car tail) '(debug 'debug))) 708 (setq tail (cdr tail)))
707 ;; If the function has no body, add nil as a body element. 709 (unless (eq flag (equal (cadr tail) debug-entry-code))
708 (when (null tail)
709 (setq tail (list nil))
710 (nconc defn tail))
711 ;; Add/remove debug statement as needed. 710 ;; Add/remove debug statement as needed.
712 (if (not flag) 711 (if flag
713 (progn (setcar tail (cadr tail)) 712 (setcdr tail (cons debug-entry-code (cdr tail)))
714 (setcdr tail (cddr tail))) 713 (setcdr tail (cddr tail))))
715 (setcdr tail (cons (car tail) (cdr tail)))
716 (setcar tail '(debug 'debug))))
717 defn)))) 714 defn))))
718 715
719(defun debugger-list-functions () 716(defun debugger-list-functions ()
diff --git a/lisp/frame.el b/lisp/frame.el
index 0fa10babf12..25cc5aa38c8 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -1341,7 +1341,7 @@ Note that this command is effective only when Emacs
1341displays through a window system, because then Emacs does its own 1341displays through a window system, because then Emacs does its own
1342cursor display. On a text-only terminal, this is not implemented." 1342cursor display. On a text-only terminal, this is not implemented."
1343 :init-value (not (or noninteractive 1343 :init-value (not (or noninteractive
1344 emacs-quick-startup 1344 (if (boundp 'no-blinking-cursor) no-blinking-cursor)
1345 (eq system-type 'ms-dos) 1345 (eq system-type 'ms-dos)
1346 (not (memq initial-window-system '(x w32))))) 1346 (not (memq initial-window-system '(x w32)))))
1347 :group 'cursor 1347 :group 'cursor
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 7ade8548764..76d4cb419cb 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,11 +1,37 @@
12005-03-04 Reiner Steib <Reiner.Steib@gmx.de>
2
3 * message.el: Don't autoload former message-utils variables.
4 (message-strip-subject-trailing-was): Changed doc string.
5
6 * nnweb.el: Fixes for `gnus-group-make-web-group'.
7 (nnweb-type-definition): Don't add "hl=en" in `address'. Added
8 `base'.
9 (nnweb-google-search): Add "hl=en" here.
10 (nnweb-google-parse-1, nnweb-google-create-mapping): Don't
11 hardcode URL.
12
132005-03-03 Reiner Steib <Reiner.Steib@gmx.de>
14
15 * message.el (message-get-reply-headers, message-followup):
16 Mention related variables `message-use-followup-to' and
17 `message-use-mail-followup-to', in the information buffer.
18
19 * nnweb.el (nnweb-type-definition): Use groups.google.de instead
20 of broken groups(-beta).google.com.
21
222005-03-01 Stefan Monnier <monnier@iro.umontreal.ca>
23
24 * gnus-sum.el (gnus-summary-exit): Undo last change and fix it in
25 a more conservative way.
26
12005-02-27 Arne J,Ax(Brgensen <arne@arnested.dk> 272005-02-27 Arne J,Ax(Brgensen <arne@arnested.dk>
2 28
3 * mm-decode.el (mm-dissect-buffer): Pass the from field on to 29 * mm-decode.el (mm-dissect-buffer): Pass the from field on to
4 `mm-dissect-multipart' and receive the from field as an (optional) 30 `mm-dissect-multipart' and receive the from field as an (optional)
5 argument from `mm-dissect-multipart'. 31 argument from `mm-dissect-multipart'.
6 (mm-dissect-multipart): Receive the from field as an argument and 32 (mm-dissect-multipart): Receive the from field as an argument and
7 pass it on when we call `mm-dissect-buffer' on MIME parts. Fixes 33 pass it on when we call `mm-dissect-buffer' on MIME parts.
8 verification/decryption of signed/encrypted MIME parts. 34 Fixes verification/decryption of signed/encrypted MIME parts.
9 35
102005-02-26 Stefan Monnier <monnier@iro.umontreal.ca> 362005-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
11 37
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 73ac963bd3b..ea8f7e063fe 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -6680,11 +6680,13 @@ If FORCE (the prefix), also save the .newsrc file(s)."
6680 (set-buffer gnus-group-buffer) 6680 (set-buffer gnus-group-buffer)
6681 (if quit-config 6681 (if quit-config
6682 (gnus-handle-ephemeral-exit quit-config) 6682 (gnus-handle-ephemeral-exit quit-config)
6683 (goto-char group-point)
6684 ;; If gnus-group-buffer is already displayed, make sure we also move
6685 ;; the cursor in the window that displays it.
6686 (let ((win (get-buffer-window (current-buffer) 0)))
6687 (if win (set-window-point win (point))))
6683 (unless leave-hidden 6688 (unless leave-hidden
6684 (gnus-configure-windows 'group 'force)) 6689 (gnus-configure-windows 'group 'force)))
6685 ;; Move point after calling gnus-configure-windows to make sure it
6686 ;; moves the window's point as well.
6687 (goto-char group-point))
6688 ;; Clear the current group name. 6690 ;; Clear the current group name.
6689 (unless quit-config 6691 (unless quit-config
6690 (setq gnus-newsgroup-name nil))))) 6692 (setq gnus-newsgroup-name nil)))))
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
index e30e9a6b123..e579084474e 100644
--- a/lisp/gnus/message.el
+++ b/lisp/gnus/message.el
@@ -335,11 +335,8 @@ few false positives here."
335 :link '(custom-manual "(message)Message Headers") 335 :link '(custom-manual "(message)Message Headers")
336 :type 'regexp) 336 :type 'regexp)
337 337
338;; Fixme: Why are all these things autoloaded?
339
340;;; marking inserted text 338;;; marking inserted text
341 339
342;;;###autoload
343(defcustom message-mark-insert-begin 340(defcustom message-mark-insert-begin
344 "--8<---------------cut here---------------start------------->8---\n" 341 "--8<---------------cut here---------------start------------->8---\n"
345 "How to mark the beginning of some inserted text." 342 "How to mark the beginning of some inserted text."
@@ -348,7 +345,6 @@ few false positives here."
348 :link '(custom-manual "(message)Insertion Variables") 345 :link '(custom-manual "(message)Insertion Variables")
349 :group 'message-various) 346 :group 'message-various)
350 347
351;;;###autoload
352(defcustom message-mark-insert-end 348(defcustom message-mark-insert-end
353 "--8<---------------cut here---------------end--------------->8---\n" 349 "--8<---------------cut here---------------end--------------->8---\n"
354 "How to mark the end of some inserted text." 350 "How to mark the end of some inserted text."
@@ -357,9 +353,7 @@ few false positives here."
357 :link '(custom-manual "(message)Insertion Variables") 353 :link '(custom-manual "(message)Insertion Variables")
358 :group 'message-various) 354 :group 'message-various)
359 355
360;;;###autoload 356(defcustom message-archive-header "X-No-Archive: Yes\n"
361(defcustom message-archive-header
362 "X-No-Archive: Yes\n"
363 "Header to insert when you don't want your article to be archived. 357 "Header to insert when you don't want your article to be archived.
364Archives \(such as groups.google.com\) respect this header." 358Archives \(such as groups.google.com\) respect this header."
365 :version "22.1" 359 :version "22.1"
@@ -367,7 +361,6 @@ Archives \(such as groups.google.com\) respect this header."
367 :link '(custom-manual "(message)Header Commands") 361 :link '(custom-manual "(message)Header Commands")
368 :group 'message-various) 362 :group 'message-various)
369 363
370;;;###autoload
371(defcustom message-archive-note 364(defcustom message-archive-note
372 "X-No-Archive: Yes - save http://groups.google.com/" 365 "X-No-Archive: Yes - save http://groups.google.com/"
373 "Note to insert why you wouldn't want this posting archived. 366 "Note to insert why you wouldn't want this posting archived.
@@ -385,7 +378,6 @@ If nil, don't insert any text in the body."
385 "Old target for cross-posts or follow-ups.") 378 "Old target for cross-posts or follow-ups.")
386(make-variable-buffer-local 'message-cross-post-old-target) 379(make-variable-buffer-local 'message-cross-post-old-target)
387 380
388;;;###autoload
389(defcustom message-cross-post-default t 381(defcustom message-cross-post-default t
390 "When non-nil `message-cross-post-followup-to' will perform a crosspost. 382 "When non-nil `message-cross-post-followup-to' will perform a crosspost.
391If nil, `message-cross-post-followup-to' will only do a followup. Note that 383If nil, `message-cross-post-followup-to' will only do a followup. Note that
@@ -395,25 +387,19 @@ you can explicitly override this setting by calling
395 :type 'boolean 387 :type 'boolean
396 :group 'message-various) 388 :group 'message-various)
397 389
398;;;###autoload 390(defcustom message-cross-post-note "Crosspost & Followup-To: "
399(defcustom message-cross-post-note
400 "Crosspost & Followup-To: "
401 "Note to insert before signature to notify of cross-post and follow-up." 391 "Note to insert before signature to notify of cross-post and follow-up."
402 :version "22.1" 392 :version "22.1"
403 :type 'string 393 :type 'string
404 :group 'message-various) 394 :group 'message-various)
405 395
406;;;###autoload 396(defcustom message-followup-to-note "Followup-To: "
407(defcustom message-followup-to-note
408 "Followup-To: "
409 "Note to insert before signature to notify of follow-up only." 397 "Note to insert before signature to notify of follow-up only."
410 :version "22.1" 398 :version "22.1"
411 :type 'string 399 :type 'string
412 :group 'message-various) 400 :group 'message-various)
413 401
414;;;###autoload 402(defcustom message-cross-post-note-function 'message-cross-post-insert-note
415(defcustom message-cross-post-note-function
416 'message-cross-post-insert-note
417 "Function to use to insert note about Crosspost or Followup-To. 403 "Function to use to insert note about Crosspost or Followup-To.
418The function will be called with four arguments. The function should not only 404The function will be called with four arguments. The function should not only
419insert a note, but also ensure old notes are deleted. See the documentation 405insert a note, but also ensure old notes are deleted. See the documentation
@@ -1766,7 +1752,7 @@ see `message-narrow-to-headers-or-head'."
1766;;; Start of functions adopted from `message-utils.el'. 1752;;; Start of functions adopted from `message-utils.el'.
1767 1753
1768(defun message-strip-subject-trailing-was (subject) 1754(defun message-strip-subject-trailing-was (subject)
1769 "Remove trailing \"(Was: <old subject>)\" from SUBJECT lines. 1755 "Remove trailing \"(was: <old subject>)\" from SUBJECT lines.
1770Leading \"Re: \" is not stripped by this function. Use the function 1756Leading \"Re: \" is not stripped by this function. Use the function
1771`message-strip-subject-re' for this." 1757`message-strip-subject-re' for this."
1772 (let* ((query message-subject-trailing-was-query) 1758 (let* ((query message-subject-trailing-was-query)
@@ -5675,7 +5661,10 @@ because discussions that are spread over several lists tend to be
5675fragmented and very difficult to follow. 5661fragmented and very difficult to follow.
5676 5662
5677Also, some source/announcement lists are not intended for discussion; 5663Also, some source/announcement lists are not intended for discussion;
5678responses here are directed to other addresses."))) 5664responses here are directed to other addresses.
5665
5666You may customize the variable `message-use-mail-followup-to', if you
5667want to get rid of this query permanently.")))
5679 (setq recipients (concat ", " mft))) 5668 (setq recipients (concat ", " mft)))
5680 (to-address 5669 (to-address
5681 (setq recipients (concat ", " to-address)) 5670 (setq recipients (concat ", " to-address))
@@ -5871,7 +5860,10 @@ You should normally obey the Followup-To: header.
5871`Followup-To: poster' sends your response via e-mail instead of news. 5860`Followup-To: poster' sends your response via e-mail instead of news.
5872 5861
5873A typical situation where `Followup-To: poster' is used is when the poster 5862A typical situation where `Followup-To: poster' is used is when the poster
5874does not read the newsgroup, so he wouldn't see any replies sent to it.")) 5863does not read the newsgroup, so he wouldn't see any replies sent to it.
5864
5865You may customize the variable `message-use-followup-to', if you
5866want to get rid of this query permanently."))
5875 (progn 5867 (progn
5876 (setq message-this-is-news nil) 5868 (setq message-this-is-news nil)
5877 (cons 'To (or mrt reply-to from ""))) 5869 (cons 'To (or mrt reply-to from "")))
@@ -5894,7 +5886,10 @@ because discussions that are spread over several newsgroup tend to
5894be fragmented and very difficult to follow. 5886be fragmented and very difficult to follow.
5895 5887
5896Also, some source/announcement newsgroups are not intended for discussion; 5888Also, some source/announcement newsgroups are not intended for discussion;
5897responses here are directed to other newsgroups.")) 5889responses here are directed to other newsgroups.
5890
5891You may customize the variable `message-use-followup-to', if you
5892want to get rid of this query permanently."))
5898 (cons 'Newsgroups followup-to) 5893 (cons 'Newsgroups followup-to)
5899 (cons 'Newsgroups newsgroups)))))) 5894 (cons 'Newsgroups newsgroups))))))
5900 (posted-to 5895 (posted-to
diff --git a/lisp/gnus/nnweb.el b/lisp/gnus/nnweb.el
index 063a1c8f376..89a4a739792 100644
--- a/lisp/gnus/nnweb.el
+++ b/lisp/gnus/nnweb.el
@@ -54,11 +54,12 @@ Valid types include `google', `dejanews', and `gmane'.")
54(defvar nnweb-type-definition 54(defvar nnweb-type-definition
55 '((google 55 '((google
56 (article . ignore) 56 (article . ignore)
57 (id . "http://groups.google.com/groups?selm=%s&output=gplain") 57 (id . "http://groups.google.de/groups?selm=%s&output=gplain")
58 (reference . identity) 58 (reference . identity)
59 (map . nnweb-google-create-mapping) 59 (map . nnweb-google-create-mapping)
60 (search . nnweb-google-search) 60 (search . nnweb-google-search)
61 (address . "http://groups.google.com/groups") 61 (address . "http://groups.google.de/groups")
62 (base . "http://groups.google.de")
62 (identifier . nnweb-google-identity)) 63 (identifier . nnweb-google-identity))
63 (dejanews ;; alias of google 64 (dejanews ;; alias of google
64 (article . ignore) 65 (article . ignore)
@@ -67,6 +68,7 @@ Valid types include `google', `dejanews', and `gmane'.")
67 (map . nnweb-google-create-mapping) 68 (map . nnweb-google-create-mapping)
68 (search . nnweb-google-search) 69 (search . nnweb-google-search)
69 (address . "http://groups.google.com/groups") 70 (address . "http://groups.google.com/groups")
71 (base . "http://groups.google.com")
70 (identifier . nnweb-google-identity)) 72 (identifier . nnweb-google-identity))
71 (gmane 73 (gmane
72 (article . nnweb-gmane-wash-article) 74 (article . nnweb-gmane-wash-article)
@@ -349,7 +351,7 @@ Valid types include `google', `dejanews', and `gmane'.")
349 "a href=/groups\\(\\?[^ \">]*selm=\\([^ &\">]+\\)\\)" nil t) 351 "a href=/groups\\(\\?[^ \">]*selm=\\([^ &\">]+\\)\\)" nil t)
350 (setq mid (match-string 2) 352 (setq mid (match-string 2)
351 url (format 353 url (format
352 "http://groups.google.com/groups?selm=%s&output=gplain" mid)) 354 (nnweb-definition 'id) mid))
353 (narrow-to-region (search-forward ">" nil t) 355 (narrow-to-region (search-forward ">" nil t)
354 (search-forward "</a>" nil t)) 356 (search-forward "</a>" nil t))
355 (mm-url-remove-markup) 357 (mm-url-remove-markup)
@@ -420,7 +422,7 @@ Valid types include `google', `dejanews', and `gmane'.")
420 (>= i nnweb-max-hits)) 422 (>= i nnweb-max-hits))
421 (setq more nil) 423 (setq more nil)
422 ;; Yup, there are more articles 424 ;; Yup, there are more articles
423 (setq more (concat "http://groups.google.com" (match-string 1))) 425 (setq more (concat (nnweb-definition 'base) (match-string 1)))
424 (when more 426 (when more
425 (erase-buffer) 427 (erase-buffer)
426 (mm-url-insert more)))) 428 (mm-url-insert more))))
@@ -435,9 +437,9 @@ Valid types include `google', `dejanews', and `gmane'.")
435 "?" 437 "?"
436 (mm-url-encode-www-form-urlencoded 438 (mm-url-encode-www-form-urlencoded
437 `(("q" . ,search) 439 `(("q" . ,search)
438 ("num". "100") 440 ("num" . "100")
439 ("hq" . "") 441 ("hq" . "")
440 ("hl" . "") 442 ("hl" . "en")
441 ("lr" . "") 443 ("lr" . "")
442 ("safe" . "off") 444 ("safe" . "off")
443 ("sites" . "groups"))))) 445 ("sites" . "groups")))))
diff --git a/lisp/ibuf-ext.el b/lisp/ibuf-ext.el
index bed4330d0c2..e2e5d251371 100644
--- a/lisp/ibuf-ext.el
+++ b/lisp/ibuf-ext.el
@@ -1,6 +1,6 @@
1;;; ibuf-ext.el --- extensions for ibuffer 1;;; ibuf-ext.el --- extensions for ibuffer
2 2
3;; Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. 3;; Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4 4
5;; Author: Colin Walters <walters@verbum.org> 5;; Author: Colin Walters <walters@verbum.org>
6;; Maintainer: John Paul Wallington <jpw@gnu.org> 6;; Maintainer: John Paul Wallington <jpw@gnu.org>
@@ -753,7 +753,10 @@ of replacing the current filters."
753 "Disable all filters currently in effect in this buffer." 753 "Disable all filters currently in effect in this buffer."
754 (interactive) 754 (interactive)
755 (setq ibuffer-filtering-qualifiers nil) 755 (setq ibuffer-filtering-qualifiers nil)
756 (ibuffer-update nil t)) 756 (let ((buf (ibuffer-current-buffer)))
757 (ibuffer-update nil t)
758 (when buf
759 (ibuffer-jump-to-buffer (buffer-name buf)))))
757 760
758;;;###autoload 761;;;###autoload
759(defun ibuffer-pop-filter () 762(defun ibuffer-pop-filter ()
@@ -762,7 +765,10 @@ of replacing the current filters."
762 (when (null ibuffer-filtering-qualifiers) 765 (when (null ibuffer-filtering-qualifiers)
763 (error "No filters in effect")) 766 (error "No filters in effect"))
764 (pop ibuffer-filtering-qualifiers) 767 (pop ibuffer-filtering-qualifiers)
765 (ibuffer-update nil t)) 768 (let ((buf (ibuffer-current-buffer)))
769 (ibuffer-update nil t)
770 (when buf
771 (ibuffer-jump-to-buffer (buffer-name buf)))))
766 772
767(defun ibuffer-push-filter (qualifier) 773(defun ibuffer-push-filter (qualifier)
768 "Add QUALIFIER to `ibuffer-filtering-qualifiers'." 774 "Add QUALIFIER to `ibuffer-filtering-qualifiers'."
diff --git a/lisp/international/code-pages.el b/lisp/international/code-pages.el
index 0f8cdbf5713..cc4e1766145 100644
--- a/lisp/international/code-pages.el
+++ b/lisp/international/code-pages.el
@@ -1,6 +1,6 @@
1;;; code-pages.el --- coding systems for assorted codepages -*-coding: utf-8;-*- 1;;; code-pages.el --- coding systems for assorted codepages -*-coding: utf-8;-*-
2 2
3;; Copyright (C) 2001, 2002 Free Software Foundation, Inc. 3;; Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4 4
5;; Author: Dave Love <fx@gnu.org> 5;; Author: Dave Love <fx@gnu.org>
6;; Keywords: i18n 6;; Keywords: i18n
@@ -2440,6 +2440,7 @@ Return an updated `non-iso-charset-alist'."
2440 nil 2440 nil
2441 nil]) 2441 nil])
2442 2442
2443;;;###autoload(autoload-coding-system 'windows-1250 '(require 'code-pages))
2443(cp-make-coding-system 2444(cp-make-coding-system
2444 windows-1250 2445 windows-1250
2445 [?\€ 2446 [?\€
@@ -2571,6 +2572,7 @@ Return an updated `non-iso-charset-alist'."
2571 ?\Å£ 2572 ?\Å£
2572 ?\Ë™]) 2573 ?\Ë™])
2573 2574
2575;;;###autoload(autoload-coding-system 'windows-1253 '(require 'code-pages))
2574(cp-make-coding-system 2576(cp-make-coding-system
2575 windows-1253 2577 windows-1253
2576 [?\€ 2578 [?\€
@@ -2703,6 +2705,7 @@ Return an updated `non-iso-charset-alist'."
2703 nil] 2705 nil]
2704 nil ?g) ;; Greek 2706 nil ?g) ;; Greek
2705 2707
2708;;;###autoload(autoload-coding-system 'windows-1254 '(require 'code-pages))
2706(cp-make-coding-system 2709(cp-make-coding-system
2707 windows-1254 2710 windows-1254
2708 [?\€ 2711 [?\€
@@ -2835,6 +2838,7 @@ Return an updated `non-iso-charset-alist'."
2835 ?\ÿ]) 2838 ?\ÿ])
2836 2839
2837;; yi_US 2840;; yi_US
2841;;;###autoload(autoload-coding-system 'windows-1255 '(require 'code-pages))
2838(cp-make-coding-system 2842(cp-make-coding-system
2839 windows-1255 2843 windows-1255
2840 [?\€ 2844 [?\€
@@ -2967,6 +2971,7 @@ Return an updated `non-iso-charset-alist'."
2967 nil] 2971 nil]
2968 nil ?h) ;; Hebrew 2972 nil ?h) ;; Hebrew
2969 2973
2974;;;###autoload(autoload-coding-system 'windows-1256 '(require 'code-pages))
2970(cp-make-coding-system 2975(cp-make-coding-system
2971 windows-1256 2976 windows-1256
2972 [?\€ 2977 [?\€
@@ -3099,6 +3104,7 @@ Return an updated `non-iso-charset-alist'."
3099 ?\Û’] 3104 ?\Û’]
3100 nil ?a) ;; Arabic 3105 nil ?a) ;; Arabic
3101 3106
3107;;;###autoload(autoload-coding-system 'windows-1257 '(require 'code-pages))
3102(cp-make-coding-system 3108(cp-make-coding-system
3103 windows-1257 3109 windows-1257
3104 [?\€ 3110 [?\€
@@ -3230,6 +3236,7 @@ Return an updated `non-iso-charset-alist'."
3230 ?\ž 3236 ?\ž
3231 nil]) 3237 nil])
3232 3238
3239;;;###autoload(autoload-coding-system 'windows-1258 '(require 'code-pages))
3233(cp-make-coding-system 3240(cp-make-coding-system
3234 windows-1258 3241 windows-1258
3235 [?\€ 3242 [?\€
@@ -3652,6 +3659,7 @@ Return an updated `non-iso-charset-alist'."
3652;; ISO 8859-16 was primarily designed for single-byte encoding the Romanian 3659;; ISO 8859-16 was primarily designed for single-byte encoding the Romanian
3653;; language. The UTF-8 charset is the preferred and in today's MIME software 3660;; language. The UTF-8 charset is the preferred and in today's MIME software
3654;; more widely implemented encoding suitable for Romanian. 3661;; more widely implemented encoding suitable for Romanian.
3662;;;###autoload(autoload-coding-system 'iso-8859-16 '(require 'code-pages))
3655(cp-make-coding-system 3663(cp-make-coding-system
3656 iso-latin-10 ; consistent with, e.g. Latin-1 3664 iso-latin-10 ; consistent with, e.g. Latin-1
3657 [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil 3665 [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
@@ -3823,6 +3831,7 @@ Return an updated `non-iso-charset-alist'."
3823 ?6) 3831 ?6)
3824(define-coding-system-alias 'arabic-iso-8bit 'iso-8859-6) 3832(define-coding-system-alias 'arabic-iso-8bit 'iso-8859-6)
3825 3833
3834;;;###autoload(autoload-coding-system 'iso-8859-10 '(require 'code-pages))
3826(cp-make-coding-system 3835(cp-make-coding-system
3827 iso-latin-6 3836 iso-latin-6
3828 [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil 3837 [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
@@ -3929,6 +3938,7 @@ Return an updated `non-iso-charset-alist'."
3929(define-coding-system-alias 'latin-6 'iso-latin-6) 3938(define-coding-system-alias 'latin-6 'iso-latin-6)
3930 3939
3931;; used by lt_LT, lv_LV, mi_NZ 3940;; used by lt_LT, lv_LV, mi_NZ
3941;;;###autoload(autoload-coding-system 'iso-8859-13 '(require 'code-pages))
3932(cp-make-coding-system 3942(cp-make-coding-system
3933 iso-latin-7 3943 iso-latin-7
3934 [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil 3944 [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil
@@ -4039,6 +4049,7 @@ Return an updated `non-iso-charset-alist'."
4039;; Fixme: check on the C1 characters which libiconv includes. They 4049;; Fixme: check on the C1 characters which libiconv includes. They
4040;; are reproduced below, but are probably wrong. I can't find an 4050;; are reproduced below, but are probably wrong. I can't find an
4041;; official definition of georgian-ps. 4051;; official definition of georgian-ps.
4052;;;###autoload(autoload-coding-system 'georgian-ps '(require 'code-pages))
4042(cp-make-coding-system 4053(cp-make-coding-system
4043 georgian-ps ; used by glibc for ka_GE 4054 georgian-ps ; used by glibc for ka_GE
4044 [?\€ 4055 [?\€
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 1c95e54dc5c..093969d5725 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -590,7 +590,7 @@ Do the same for the keys of the same name."
590(defmacro menu-bar-make-mm-toggle (fname doc help &optional props) 590(defmacro menu-bar-make-mm-toggle (fname doc help &optional props)
591 "Make a menu-item for a global minor mode toggle. 591 "Make a menu-item for a global minor mode toggle.
592FNAME is the minor mode's name (variable and function). 592FNAME is the minor mode's name (variable and function).
593DOC is the text to use the menu entry. 593DOC is the text to use for the menu entry.
594HELP is the text to use for the tooltip. 594HELP is the text to use for the tooltip.
595PROPS are additional properties." 595PROPS are additional properties."
596 `'(menu-item ,doc ,fname 596 `'(menu-item ,doc ,fname
@@ -637,7 +637,8 @@ by \"Save Options\" in Custom buffers.")
637 ;; These are set with menu-bar-make-mm-toggle, which does not 637 ;; These are set with menu-bar-make-mm-toggle, which does not
638 ;; put on a customized-value property. 638 ;; put on a customized-value property.
639 (dolist (elt '(line-number-mode column-number-mode cua-mode show-paren-mode 639 (dolist (elt '(line-number-mode column-number-mode cua-mode show-paren-mode
640 transient-mark-mode global-font-lock-mode)) 640 transient-mark-mode global-font-lock-mode
641 blink-cursor-mode))
641 (and (customize-mark-to-save elt) 642 (and (customize-mark-to-save elt)
642 (setq need-save t))) 643 (setq need-save t)))
643 ;; These are set with `customize-set-variable'. 644 ;; These are set with `customize-set-variable'.
@@ -959,6 +960,14 @@ by \"Save Options\" in Custom buffers.")
959 "Enter Lisp debugger when an error is signaled")) 960 "Enter Lisp debugger when an error is signaled"))
960(define-key menu-bar-options-menu [debugger-separator] 961(define-key menu-bar-options-menu [debugger-separator]
961 '("--")) 962 '("--"))
963
964(define-key menu-bar-options-menu [blink-cursor-mode]
965 (menu-bar-make-mm-toggle blink-cursor-mode
966 "Blinking Cursor"
967 "Whether the cursor blinks (Blink Cursor mode)"))
968(define-key menu-bar-options-menu [cursor-separator]
969 '("--"))
970
962(define-key menu-bar-options-menu [toggle-auto-compression] 971(define-key menu-bar-options-menu [toggle-auto-compression]
963 '(menu-item "Automatic File De/compression" 972 '(menu-item "Automatic File De/compression"
964 auto-compression-mode 973 auto-compression-mode
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index 79a6b4b43be..457177d7c4c 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -514,6 +514,10 @@ Faces `compilation-error-face', `compilation-warning-face',
514 (and (cdr type) (match-end (cdr type)) compilation-info-face) 514 (and (cdr type) (match-end (cdr type)) compilation-info-face)
515 compilation-error-face)) 515 compilation-error-face))
516 516
517;; Internal function for calculating the text properties of a directory
518;; change message. The directory property is important, because it is
519;; the stack of nested enter-messages. Relative filenames on the following
520;; lines are relative to the top of the stack.
517(defun compilation-directory-properties (idx leave) 521(defun compilation-directory-properties (idx leave)
518 (if leave (setq leave (match-end leave))) 522 (if leave (setq leave (match-end leave)))
519 ;; find previous stack, and push onto it, or if `leave' pop it 523 ;; find previous stack, and push onto it, or if `leave' pop it
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 5fdf77c29d8..00da2e70dd7 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -880,8 +880,7 @@ sink to `user' in `gdb-stopping', that is fine."
880 "An annotation handler for `post-prompt'. 880 "An annotation handler for `post-prompt'.
881This begins the collection of output from the current command if that 881This begins the collection of output from the current command if that
882happens to be appropriate." 882happens to be appropriate."
883 (if (not gdb-pending-triggers) 883 (unless gdb-pending-triggers
884 (progn
885 (gdb-get-current-frame) 884 (gdb-get-current-frame)
886 (gdb-invalidate-frames) 885 (gdb-invalidate-frames)
887 (gdb-invalidate-breakpoints) 886 (gdb-invalidate-breakpoints)
@@ -897,7 +896,7 @@ happens to be appropriate."
897 (setq gdb-var-changed t) ; force update 896 (setq gdb-var-changed t) ; force update
898 (dolist (var gdb-var-list) 897 (dolist (var gdb-var-list)
899 (setcar (nthcdr 5 var) nil)) 898 (setcar (nthcdr 5 var) nil))
900 (gdb-var-update))))) 899 (gdb-var-update))))
901 (let ((sink gdb-output-sink)) 900 (let ((sink gdb-output-sink))
902 (cond 901 (cond
903 ((eq sink 'user) t) 902 ((eq sink 'user) t)
@@ -1211,14 +1210,13 @@ static char *magick[] = {
1211 (goto-line (string-to-number line)) 1210 (goto-line (string-to-number line))
1212 (gdb-put-breakpoint-icon (eq flag ?y) bptno))) 1211 (gdb-put-breakpoint-icon (eq flag ?y) bptno)))
1213 (gdb-enqueue-input 1212 (gdb-enqueue-input
1214 (list (concat gdb-server-prefix "list " 1213 (list (concat "list "
1215 (match-string-no-properties 1) ":1\n") 1214 (match-string-no-properties 1) ":1\n")
1216 'ignore)) 1215 'ignore))
1217 (gdb-enqueue-input 1216 (gdb-enqueue-input
1218 (list (concat gdb-server-prefix "info source\n") 1217 (list "info source\n"
1219 `(lambda () 1218 `(lambda () (gdb-get-location
1220 (gdb-get-location 1219 ,bptno ,line ,flag)))))))))))
1221 ,bptno ,line ,flag)))))))))))
1222 (end-of-line))))) 1220 (end-of-line)))))
1223 (if (gdb-get-buffer 'gdb-assembler-buffer) (gdb-assembler-custom))) 1221 (if (gdb-get-buffer 'gdb-assembler-buffer) (gdb-assembler-custom)))
1224 1222
@@ -2108,22 +2106,29 @@ buffers."
2108 "Find the directory containing the relevant source file. 2106 "Find the directory containing the relevant source file.
2109Put in buffer and place breakpoint icon." 2107Put in buffer and place breakpoint icon."
2110 (goto-char (point-min)) 2108 (goto-char (point-min))
2111 (if (search-forward "Located in " nil t) 2109 (catch 'file-not-found
2112 (if (looking-at "\\S-*") 2110 (if (search-forward "Located in " nil t)
2113 (push (cons bptno (match-string 0)) gdb-location-list)) 2111 (if (looking-at "\\S-*")
2114 (gdb-resync) 2112 (push (cons bptno (match-string 0)) gdb-location-list))
2115 (push (cons bptno "File not found") gdb-location-list) 2113 (gdb-resync)
2116 (error "Cannot find source file for breakpoint location. 2114 (push (cons bptno "File not found") gdb-location-list)
2115 (if (eq window-system 'x)
2116 (x-popup-dialog
2117 t '("Cannot find source file for breakpoint location.\n\
2118Add directory to search path for source files using the GDB command, dir."
2119 ("Ok" . nil)))
2120 (message "Cannot find source file for breakpoint location.\n\
2117Add directory to search path for source files using the GDB command, dir.")) 2121Add directory to search path for source files using the GDB command, dir."))
2118 (with-current-buffer 2122 (throw 'file-not-found nil))
2119 (find-file-noselect (match-string 0)) 2123 (with-current-buffer
2120 (save-current-buffer 2124 (find-file-noselect (match-string 0))
2121 (set (make-local-variable 'gud-minor-mode) 'gdba) 2125 (save-current-buffer
2122 (set (make-local-variable 'tool-bar-map) gud-tool-bar-map)) 2126 (set (make-local-variable 'gud-minor-mode) 'gdba)
2123 ;; only want one breakpoint icon at each location 2127 (set (make-local-variable 'tool-bar-map) gud-tool-bar-map))
2124 (save-excursion 2128 ;; only want one breakpoint icon at each location
2125 (goto-line (string-to-number line)) 2129 (save-excursion
2126 (gdb-put-breakpoint-icon (eq flag ?y) bptno)))) 2130 (goto-line (string-to-number line))
2131 (gdb-put-breakpoint-icon (eq flag ?y) bptno)))))
2127 2132
2128(add-hook 'find-file-hook 'gdb-find-file-hook) 2133(add-hook 'find-file-hook 'gdb-find-file-hook)
2129 2134
diff --git a/lisp/simple.el b/lisp/simple.el
index be9bded5382..0b40d53b756 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -733,10 +733,48 @@ that uses or sets the mark."
733 733
734;; Counting lines, one way or another. 734;; Counting lines, one way or another.
735 735
736(defun goto-line (arg) 736(defun goto-line (arg &optional buffer)
737 "Goto line ARG, counting from line 1 at beginning of buffer." 737 "Goto line ARG, counting from line 1 at beginning of buffer.
738 (interactive "NGoto line: ") 738Normally, move point in the curren buffer.
739 (setq arg (prefix-numeric-value arg)) 739With just C-u as argument, move point in the most recently displayed
740other buffer, and switch to it.
741
742If there's a number in the buffer at point, it is the default for ARG."
743 (interactive
744 (if (and current-prefix-arg (not (consp current-prefix-arg)))
745 (list (prefix-numeric-value current-prefix-arg))
746 ;; Look for a default, a number in the buffer at point.
747 (let* ((default
748 (save-excursion
749 (skip-chars-backward "0-9")
750 (if (looking-at "[0-9]")
751 (buffer-substring-no-properties
752 (point)
753 (progn (skip-chars-forward "0-9")
754 (point))))))
755 ;; Decide if we're switching buffers.
756 (buffer
757 (if (consp current-prefix-arg)
758 (other-buffer (current-buffer) t)))
759 (buffer-prompt
760 (if buffer
761 (concat " in " (buffer-name buffer))
762 "")))
763 ;; Read the argument, offering that number (if any) as default.
764 (list (read-from-minibuffer (format (if default "Goto line%s (%s): "
765 "Goto line%s: ")
766 buffer-prompt
767 default)
768 nil nil t
769 'minibuffer-history
770 default)
771 buffer))))
772 ;; Switch to the desired buffer, one way or another.
773 (if buffer
774 (let ((window (get-buffer-window buffer)))
775 (if window (select-window window)
776 (switch-to-buffer-other-window buffer))))
777 ;; Move to the specified line number in that buffer.
740 (save-restriction 778 (save-restriction
741 (widen) 779 (widen)
742 (goto-char 1) 780 (goto-char 1)
diff --git a/lisp/startup.el b/lisp/startup.el
index b66ceb38ea1..b16cfdeb0c9 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -290,6 +290,8 @@ from being initialized."
290 290
291(defvar normal-top-level-add-subdirs-inode-list nil) 291(defvar normal-top-level-add-subdirs-inode-list nil)
292 292
293(defvar no-blinking-cursor nil)
294
293(defvar pure-space-overflow nil 295(defvar pure-space-overflow nil
294 "Non-nil if building Emacs overflowed pure space.") 296 "Non-nil if building Emacs overflowed pure space.")
295 297
@@ -674,7 +676,8 @@ opening the first frame (e.g. open a connection to the server).")
674 ;; does things. 676 ;; does things.
675 (while (and (not done) args) 677 (while (and (not done) args)
676 (let* ((longopts '(("--no-init-file") ("--no-site-file") ("--user") 678 (let* ((longopts '(("--no-init-file") ("--no-site-file") ("--user")
677 ("--debug-init") ("--iconic") ("--icon-type"))) 679 ("--debug-init") ("--iconic") ("--icon-type")
680 ("--no-blinking-cursor")))
678 (argi (pop args)) 681 (argi (pop args))
679 (orig-argi argi) 682 (orig-argi argi)
680 argval) 683 argval)
@@ -697,6 +700,7 @@ opening the first frame (e.g. open a connection to the server).")
697 ((equal argi "-Q") 700 ((equal argi "-Q")
698 (setq init-file-user nil 701 (setq init-file-user nil
699 site-run-file nil 702 site-run-file nil
703 no-blinking-cursor t
700 emacs-quick-startup t) 704 emacs-quick-startup t)
701 (push '(vertical-scroll-bars . nil) initial-frame-alist)) 705 (push '(vertical-scroll-bars . nil) initial-frame-alist))
702 ((member argi '("-q" "-no-init-file")) 706 ((member argi '("-q" "-no-init-file"))
@@ -712,6 +716,8 @@ opening the first frame (e.g. open a connection to the server).")
712 (push '(visibility . icon) initial-frame-alist)) 716 (push '(visibility . icon) initial-frame-alist))
713 ((member argi '("-icon-type" "-i" "-itype")) 717 ((member argi '("-icon-type" "-i" "-itype"))
714 (push '(icon-type . t) default-frame-alist)) 718 (push '(icon-type . t) default-frame-alist))
719 ((member argi '("-nbc" "-no-blinking-cursor"))
720 (setq no-blinking-cursor t))
715 ;; Push the popped arg back on the list of arguments. 721 ;; Push the popped arg back on the list of arguments.
716 (t 722 (t
717 (push argi args) 723 (push argi args)
@@ -747,7 +753,7 @@ opening the first frame (e.g. open a connection to the server).")
747 ;; you should also change the corresponding expression in the 753 ;; you should also change the corresponding expression in the
748 ;; defcustom in frame.el, or Custom will be badly confused. 754 ;; defcustom in frame.el, or Custom will be badly confused.
749 (unless (or noninteractive 755 (unless (or noninteractive
750 emacs-quick-startup 756 no-blinking-cursor
751 (eq system-type 'ms-dos) 757 (eq system-type 'ms-dos)
752 (not (memq initial-window-system '(x w32)))) 758 (not (memq initial-window-system '(x w32))))
753 (blink-cursor-mode 1)) 759 (blink-cursor-mode 1))
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el
index 470f4d4a1bd..e478169c250 100644
--- a/lisp/textmodes/texinfmt.el
+++ b/lisp/textmodes/texinfmt.el
@@ -1,7 +1,7 @@
1;;; texinfmt.el --- format Texinfo files into Info files 1;;; texinfmt.el --- format Texinfo files into Info files
2 2
3;; Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993, 3;; Copyright (C) 1985, 1986, 1988, 1990, 1991, 1992, 1993,
4;; 1994, 1995, 1996, 1997, 1998, 2000, 2001 4;; 1994, 1995, 1996, 1997, 1998, 2000, 2001, 2005
5;; Free Software Foundation, Inc. 5;; Free Software Foundation, Inc.
6 6
7;; Maintainer: Robert J. Chassell <bug-texinfo@gnu.org> 7;; Maintainer: Robert J. Chassell <bug-texinfo@gnu.org>
@@ -37,7 +37,7 @@
37 (defmacro defcustom (var value doc &rest ignore) 37 (defmacro defcustom (var value doc &rest ignore)
38 `(defvar ,var ,value ,doc))) 38 `(defvar ,var ,value ,doc)))
39 39
40(defvar texinfmt-version "2.40 of 6 Dec 2002") 40(defvar texinfmt-version "2.41 of 1 Mar 2005")
41 41
42(defun texinfmt-version (&optional here) 42(defun texinfmt-version (&optional here)
43 "Show the version of texinfmt.el in the minibuffer. 43 "Show the version of texinfmt.el in the minibuffer.
@@ -486,7 +486,8 @@ if large. You can use Info-split to do this manually."
486 ;; I don't know if this causes other problems. 486 ;; I don't know if this causes other problems.
487 ;; I suspect itemized lists don't get filled properly and a 487 ;; I suspect itemized lists don't get filled properly and a
488 ;; more precise fix is required. Bob 488 ;; more precise fix is required. Bob
489 "itemize\\|" 489 ;; commented out on 2005 Feb 28 by Bob
490 ;; "itemize\\|"
490 "direntry\\|" 491 "direntry\\|"
491 "lisp\\|" 492 "lisp\\|"
492 "smalllisp\\|" 493 "smalllisp\\|"
@@ -636,7 +637,7 @@ Do not append @refill to paragraphs containing @w{TEXT} or @*."
636 (forward-char 1) 637 (forward-char 1)
637 (unless (re-search-backward "@c[ \t\n]\\|@comment[ \t\n]" line-beg t) 638 (unless (re-search-backward "@c[ \t\n]\\|@comment[ \t\n]" line-beg t)
638 (forward-char -1)) 639 (forward-char -1))
639 (unless (re-search-backward "@refill\\|@bye" line-beg t) 640 (unless (re-search-backward "@refill\\|^[ \t]*@" line-beg t)
640 (insert "@refill"))) 641 (insert "@refill")))
641 (forward-line 1)))))) 642 (forward-line 1))))))
642 643