aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorMiles Bader2004-07-28 07:05:52 +0000
committerMiles Bader2004-07-28 07:05:52 +0000
commit54685a78a73fcf2f53fd0e8a7a3c7478b8650f1b (patch)
tree998cde32667cb156ef66ceda314d53b168370588 /lisp
parent6bb4a8bf9aaa63141ad7c12ab6b6ba9939050178 (diff)
parentb687047c72d2d13ced9ce55d38193b24ec722773 (diff)
downloademacs-54685a78a73fcf2f53fd0e8a7a3c7478b8650f1b.tar.gz
emacs-54685a78a73fcf2f53fd0e8a7a3c7478b8650f1b.zip
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-26
Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-466 - miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-470 Update from CVS
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog57
-rw-r--r--lisp/autorevert.el2
-rw-r--r--lisp/font-lock.el5
-rw-r--r--lisp/frame.el12
-rw-r--r--lisp/imenu.el19
-rw-r--r--lisp/mail/rmail.el2
-rw-r--r--lisp/makefile.w32-in2
-rw-r--r--lisp/ps-print.el44
-rw-r--r--lisp/replace.el8
-rw-r--r--lisp/select.el23
-rw-r--r--lisp/simple.el7
-rw-r--r--lisp/subr.el6
-rw-r--r--lisp/term/tty-colors.el13
-rw-r--r--lisp/textmodes/flyspell.el2
-rw-r--r--lisp/wdired.el5
15 files changed, 136 insertions, 71 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3ece6ce0fb8..4f1d0859f65 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,11 +1,58 @@
12004-07-26 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * imenu.el (imenu-prev-index-position-function)
4 (imenu-extract-index-name-function, imenu-name-lookup-function)
5 (imenu--index-alist): Docstring redundancy fix.
6
72004-07-25 Lars Hansen <larsh@math.ku.dk>
8
9 * wdired.el (wdired-finish-edit): Require dired-aux before locally
10 binding dired-backup-overwrite.
11
122004-07-25 John Paul Wallington <jpw@gnu.org>
13
14 * subr.el (butlast, event-modifiers, event-basic-type): Doc fixes.
15
162004-07-24 Luc Teirlinck <teirllm@auburn.edu>
17
18 * term/tty-colors.el (tty-color-approximate): Doc fix.
19
20 * select.el (x-get-selection, x-set-selection): Doc fixes.
21
22 * frame.el (make-frame): Doc fix.
23
242004-07-24 Richard M. Stallman <rms@gnu.org>
25
26 * mail/rmail.el (rmail-mime-charset-pattern):
27 Don't include semicolon in the charset value.
28
29 * replace.el (occur-next-error): Call set-window-point.
30 (occur-engine): Handle negative NLINES.
31
322004-07-23 Luc Teirlinck <teirllm@auburn.edu>
33
34 * frame.el (modify-all-frames-parameters): Minor doc fix.
35 (set-frame-configuration): Doc fix.
36
372004-07-23 Matt Hodges <matt@stchem.bham.ac.uk> (tiny change)
38
39 * simple.el (completion-setup-function): Compute the common parts
40 and the first difference place correctly when
41 partial-completion-mode is on.
42
12004-07-22 Vinicius Jose Latorre <viniciusjl@ig.com.br> 432004-07-22 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2 44
3 * ps-print.el: Doc fix. Improve the DSC compliance of the generated 45 * ps-print.el: Doc fix.
4 PostScript. Suggested by Michael Piotrowski <mxp@dynalabs.de>.
5 (ps-print-version): New version 6.6.5. 46 (ps-print-version): New version 6.6.5.
6 (ps-printing-region): Doc fix. 47 (ps-printing-region): Doc fix.
7 (ps-generate-string-list): Comment fix. 48 (ps-generate-string-list): Comment fix.
8 (ps-message-log-max, ps-begin-file): Code fix. 49 (ps-message-log-max): Code fix.
50
51
522004-07-22 Michael Piotrowski <mxp@dynalabs.de> (tiny change)
53
54 * ps-print.el (ps-begin-file): Improve the DSC compliance of the
55 generated PostScript.
9 56
102004-07-22 Kim F. Storm <storm@cua.dk> 572004-07-22 Kim F. Storm <storm@cua.dk>
11 58
@@ -38,8 +85,8 @@
38 85
392004-07-17 Kai Grossjohann <kai.grossjohann@gmx.net> 862004-07-17 Kai Grossjohann <kai.grossjohann@gmx.net>
40 87
41 * net/tramp.el (tramp-handle-verify-visited-file-modtime): New 88 * net/tramp.el (tramp-handle-verify-visited-file-modtime):
42 docstring. From Luc Teirlinck. 89 New docstring. From Luc Teirlinck.
43 90
442004-07-17 Luc Teirlinck <teirllm@auburn.edu> 912004-07-17 Luc Teirlinck <teirllm@auburn.edu>
45 92
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index ef438eb4b97..796ebaa27c8 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -1,6 +1,6 @@
1;;; autorevert.el --- revert buffers when files on disk change 1;;; autorevert.el --- revert buffers when files on disk change
2 2
3;; Copyright (C) 1997, 1998, 1999, 2001 Free Software Foundation, Inc. 3;; Copyright (C) 1997, 1998, 1999, 2001, 2004 Free Software Foundation, Inc.
4 4
5;; Author: Anders Lindgren <andersl@andersl.com> 5;; Author: Anders Lindgren <andersl@andersl.com>
6;; Keywords: convenience 6;; Keywords: convenience
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index 6e46676c871..04b22fd0280 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -358,8 +358,9 @@ Each element in a user-level keywords list should have one of these forms:
358 (eval . FORM) 358 (eval . FORM)
359 359
360where MATCHER can be either the regexp to search for, or the function name to 360where MATCHER can be either the regexp to search for, or the function name to
361call to make the search (called with one argument, the limit of the search) and 361call to make the search (called with one argument, the limit of the search;
362return non-nil if it succeeds (and set `match-data' appropriately). 362it should return non-nil, move point, and set `match-data' appropriately iff
363it succeeds; like `re-search-forward' would).
363MATCHER regexps can be generated via the function `regexp-opt'. 364MATCHER regexps can be generated via the function `regexp-opt'.
364 365
365FORM is an expression, whose value should be a keyword element, evaluated when 366FORM is an expression, whose value should be a keyword element, evaluated when
diff --git a/lisp/frame.el b/lisp/frame.el
index 521938cfc18..a364d7f491b 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -520,7 +520,7 @@ React to settings of `default-frame-alist', `initial-frame-alist' there."
520;;;; Creation of additional frames, and other frame miscellanea 520;;;; Creation of additional frames, and other frame miscellanea
521 521
522(defun modify-all-frames-parameters (alist) 522(defun modify-all-frames-parameters (alist)
523 "Modify all current and future frames parameters according to ALIST. 523 "Modify all current and future frames' parameters according to ALIST.
524This changes `default-frame-alist' and possibly `initial-frame-alist'. 524This changes `default-frame-alist' and possibly `initial-frame-alist'.
525See help of `modify-frame-parameters' for more information." 525See help of `modify-frame-parameters' for more information."
526 (let (element) ;; temp 526 (let (element) ;; temp
@@ -612,7 +612,13 @@ You cannot specify either `width' or `height', you must use neither or both.
612 612
613Before the frame is created (via `frame-creation-function'), functions on the 613Before the frame is created (via `frame-creation-function'), functions on the
614hook `before-make-frame-hook' are run. After the frame is created, functions 614hook `before-make-frame-hook' are run. After the frame is created, functions
615on `after-make-frame-functions' are run with one arg, the newly created frame." 615on `after-make-frame-functions' are run with one arg, the newly created frame.
616
617This function itself does not make the new frame the selected frame.
618The previously selected frame remains selected. However, the
619window system may select the new frame for its own reasons, for
620instance if the frame appears under the mouse pointer and your
621setup is for focus to follow the pointer."
616 (interactive) 622 (interactive)
617 (run-hooks 'before-make-frame-hook) 623 (run-hooks 'before-make-frame-hook)
618 (let ((frame (funcall frame-creation-function parameters))) 624 (let ((frame (funcall frame-creation-function parameters)))
@@ -789,6 +795,8 @@ where
789 "Restore the frames to the state described by CONFIGURATION. 795 "Restore the frames to the state described by CONFIGURATION.
790Each frame listed in CONFIGURATION has its position, size, window 796Each frame listed in CONFIGURATION has its position, size, window
791configuration, and other parameters set as specified in CONFIGURATION. 797configuration, and other parameters set as specified in CONFIGURATION.
798However, this function does not restore deleted frames.
799
792Ordinarily, this function deletes all existing frames not 800Ordinarily, this function deletes all existing frames not
793listed in CONFIGURATION. But if optional second argument NODELETE 801listed in CONFIGURATION. But if optional second argument NODELETE
794is given and non-nil, the unwanted frames are iconified instead." 802is given and non-nil, the unwanted frames are iconified instead."
diff --git a/lisp/imenu.el b/lisp/imenu.el
index e0b57440fd8..238adfe9505 100644
--- a/lisp/imenu.el
+++ b/lisp/imenu.el
@@ -1,6 +1,7 @@
1;;; imenu.el --- framework for mode-specific buffer indexes 1;;; imenu.el --- framework for mode-specific buffer indexes
2 2
3;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 2003 Free Software Foundation, Inc. 3;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 2003, 2004
4;; Free Software Foundation, Inc.
4 5
5;; Author: Ake Stenhoff <etxaksf@aom.ericsson.se> 6;; Author: Ake Stenhoff <etxaksf@aom.ericsson.se>
6;; Lars Lindberg <lli@sypro.cap.se> 7;; Lars Lindberg <lli@sypro.cap.se>
@@ -255,9 +256,7 @@ to a function that will find the next index, looking backwards in the
255file. 256file.
256 257
257The function should leave point at the place to be connected to the 258The function should leave point at the place to be connected to the
258index and it should return nil when it doesn't find another index. 259index and it should return nil when it doesn't find another index.")
259
260This variable is local in all buffers.")
261;;;###autoload 260;;;###autoload
262(make-variable-buffer-local 'imenu-prev-index-position-function) 261(make-variable-buffer-local 'imenu-prev-index-position-function)
263 262
@@ -267,9 +266,7 @@ This variable is local in all buffers.")
267 266
268This function is called after `imenu-prev-index-position-function' 267This function is called after `imenu-prev-index-position-function'
269finds a position for an index item, with point at that position. 268finds a position for an index item, with point at that position.
270It should return the name for that index item. 269It should return the name for that index item.")
271
272This variable is local in all buffers.")
273;;;###autoload 270;;;###autoload
274(make-variable-buffer-local 'imenu-extract-index-name-function) 271(make-variable-buffer-local 'imenu-extract-index-name-function)
275 272
@@ -283,9 +280,7 @@ non-nil if they match.
283If nil, comparison is done with `string='. 280If nil, comparison is done with `string='.
284Set this to some other function for more advanced comparisons, 281Set this to some other function for more advanced comparisons,
285such as \"begins with\" or \"name matches and number of 282such as \"begins with\" or \"name matches and number of
286arguments match\". 283arguments match\".")
287
288This variable is local in all buffers.")
289;;;###autoload 284;;;###autoload
290(make-variable-buffer-local 'imenu-name-lookup-function) 285(make-variable-buffer-local 'imenu-name-lookup-function)
291 286
@@ -453,9 +448,7 @@ The function in this variable is called when selecting a normal index-item.")
453 "The buffer index computed for this buffer in Imenu. 448 "The buffer index computed for this buffer in Imenu.
454Simple elements in the alist look like (INDEX-NAME . INDEX-POSITION). 449Simple elements in the alist look like (INDEX-NAME . INDEX-POSITION).
455Special elements look like (INDEX-NAME INDEX-POSITION FUNCTION ARGUMENTS...). 450Special elements look like (INDEX-NAME INDEX-POSITION FUNCTION ARGUMENTS...).
456A nested sub-alist element looks like (INDEX-NAME SUB-ALIST). 451A nested sub-alist element looks like (INDEX-NAME SUB-ALIST).")
457
458This variable is local in all buffers, once set.")
459 452
460(make-variable-buffer-local 'imenu--index-alist) 453(make-variable-buffer-local 'imenu--index-alist)
461 454
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 5fa4f34bbb8..8a4a3674b73 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -484,7 +484,7 @@ the variable `rmail-mime-feature'.")
484 484
485;;;###autoload 485;;;###autoload
486(defvar rmail-mime-charset-pattern 486(defvar rmail-mime-charset-pattern
487 "^content-type:[ ]*text/plain;[ \t\n]*charset=\"?\\([^ \t\n\"]+\\)\"?" 487 "^content-type:[ ]*text/plain;[ \t\n]*charset=\"?\\([^ \t\n\";]+\\)\"?"
488 "Regexp to match MIME-charset specification in a header of message. 488 "Regexp to match MIME-charset specification in a header of message.
489The first parenthesized expression should match the MIME-charset name.") 489The first parenthesized expression should match the MIME-charset name.")
490 490
diff --git a/lisp/makefile.w32-in b/lisp/makefile.w32-in
index 826cf89bfec..b2694bc2b78 100644
--- a/lisp/makefile.w32-in
+++ b/lisp/makefile.w32-in
@@ -209,7 +209,7 @@ loaddefs.el-CMD:
209 echo (autoload 'define-derived-mode "derived")>> $@ 209 echo (autoload 'define-derived-mode "derived")>> $@
210 echo (autoload 'encoded-kbd-mode "encoded-kb")>> $@ 210 echo (autoload 'encoded-kbd-mode "encoded-kb")>> $@
211 echo (defvar cvs-global-menu nil)>> $@ 211 echo (defvar cvs-global-menu nil)>> $@
212 echo. >> $@ 212 echo ;;; >> $@
213 echo ;;; Local Variables:>> $@ 213 echo ;;; Local Variables:>> $@
214 echo ;;; version-control: never>> $@ 214 echo ;;; version-control: never>> $@
215 echo ;;; no-byte-compile: t>> $@ 215 echo ;;; no-byte-compile: t>> $@
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index eff1b25fe42..293fb7e1143 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -5544,17 +5544,15 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5544 (setq ps-background-all-pages (nreverse ps-background-all-pages) 5544 (setq ps-background-all-pages (nreverse ps-background-all-pages)
5545 ps-background-pages (nreverse ps-background-pages)) 5545 ps-background-pages (nreverse ps-background-pages))
5546 5546
5547 (ps-output "\n" ps-print-prologue-1) 5547 (ps-output "\n" ps-print-prologue-1
5548 5548 "\n/printGlobalBackground{\n")
5549 (ps-output "\n/printGlobalBackground{\n")
5550 (mapcar 'ps-output ps-background-all-pages) 5549 (mapcar 'ps-output ps-background-all-pages)
5551 (ps-output "}def\n/printLocalBackground{\n}def\n")
5552
5553 (ps-output "\n%%EndProlog\n\n%%BeginSetup\n")
5554
5555 (ps-output 5550 (ps-output
5551 "}def\n/printLocalBackground{\n}def\n"
5552 "\n%%EndProlog\n\n%%BeginSetup\n"
5556 "\n%%IncludeResource: font Times-Roman" 5553 "\n%%IncludeResource: font Times-Roman"
5557 "\n%%IncludeResource: font Times-Italic\n%%IncludeResource: font " 5554 "\n%%IncludeResource: font Times-Italic"
5555 "\n%%IncludeResource: font "
5558 (mapconcat 'identity 5556 (mapconcat 'identity
5559 (ps-remove-duplicates 5557 (ps-remove-duplicates
5560 (append (ps-fonts 'ps-font-for-text) 5558 (append (ps-fonts 'ps-font-for-text)
@@ -5563,22 +5561,20 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5563 (ps-font 'ps-font-for-footer 'normal) 5561 (ps-font 'ps-font-for-footer 'normal)
5564 (ps-font 'ps-font-for-footer 'bold)))) 5562 (ps-font 'ps-font-for-footer 'bold))))
5565 "\n%%IncludeResource: font ") 5563 "\n%%IncludeResource: font ")
5566 "\n") 5564 ;; Header/line number fonts
5567 5565 (format "\n/h0 %s(%s)cvn DefFont\n" ; /h0 14/Helvetica-Bold DefFont
5568 ;; Header/line number fonts 5566 ps-header-title-font-size-internal
5569 (ps-output (format "/h0 %s(%s)cvn DefFont\n" ; /h0 14/Helvetica-Bold DefFont 5567 (ps-font 'ps-font-for-header 'bold))
5570 ps-header-title-font-size-internal 5568 (format "/h1 %s(%s)cvn DefFont\n" ; /h1 12/Helvetica DefFont
5571 (ps-font 'ps-font-for-header 'bold)) 5569 ps-header-font-size-internal
5572 (format "/h1 %s(%s)cvn DefFont\n" ; /h1 12/Helvetica DefFont 5570 (ps-font 'ps-font-for-header 'normal))
5573 ps-header-font-size-internal 5571 (format "/L0 %s(%s)cvn DefFont\n" ; /L0 6/Times-Italic DefFont
5574 (ps-font 'ps-font-for-header 'normal)) 5572 (ps-get-font-size 'ps-line-number-font-size)
5575 (format "/L0 %s(%s)cvn DefFont\n" ; /L0 6/Times-Italic DefFont 5573 ps-line-number-font)
5576 (ps-get-font-size 'ps-line-number-font-size) 5574 (format "/H0 %s(%s)cvn DefFont\n" ; /H0 12/Helvetica DefFont
5577 ps-line-number-font) 5575 ps-footer-font-size-internal
5578 (format "/H0 %s(%s)cvn DefFont\n" ; /H0 12/Helvetica DefFont 5576 (ps-font 'ps-font-for-footer 'normal))
5579 ps-footer-font-size-internal 5577 "\n\n% ---- These lines must be kept together because...
5580 (ps-font 'ps-font-for-footer 'normal))
5581 "\n\n% ---- These lines must be kept together because...
5582 5578
5583/h0 F 5579/h0 F
5584/HeaderTitleLineHeight FontHeight def 5580/HeaderTitleLineHeight FontHeight def
diff --git a/lisp/replace.el b/lisp/replace.el
index f81c6f53914..f09868cc6d3 100644
--- a/lisp/replace.el
+++ b/lisp/replace.el
@@ -732,6 +732,8 @@ Compatibility function for \\[next-error] invocations."
732 #'previous-single-property-change 732 #'previous-single-property-change
733 #'next-single-property-change) 733 #'next-single-property-change)
734 "No more matches") 734 "No more matches")
735 ;; In case the *Occur* buffer is visible in a nonselected window.
736 (set-window-point (get-buffer-window (current-buffer)) (point))
735 (occur-mode-goto-occurrence)) 737 (occur-mode-goto-occurrence))
736 738
737 739
@@ -1009,9 +1011,11 @@ See also `multi-occur'."
1009 ;; concatenate them all together. 1011 ;; concatenate them all together.
1010 (apply #'concat 1012 (apply #'concat
1011 (nconc 1013 (nconc
1012 (occur-engine-add-prefix (nreverse (cdr (occur-accumulate-lines (- (1+ nlines)) keep-props)))) 1014 (occur-engine-add-prefix (nreverse (cdr (occur-accumulate-lines (- (1+ (abs nlines))) keep-props))))
1013 (list out-line) 1015 (list out-line)
1014 (occur-engine-add-prefix (cdr (occur-accumulate-lines (1+ nlines) keep-props)))))))) 1016 (if (> nlines 0)
1017 (occur-engine-add-prefix
1018 (cdr (occur-accumulate-lines (1+ nlines) keep-props)))))))))
1015 ;; Actually insert the match display data 1019 ;; Actually insert the match display data
1016 (with-current-buffer out-buf 1020 (with-current-buffer out-buf
1017 (let ((beg (point)) 1021 (let ((beg (point))
diff --git a/lisp/select.el b/lisp/select.el
index c095ea50c44..565ddd7d22e 100644
--- a/lisp/select.el
+++ b/lisp/select.el
@@ -3,7 +3,7 @@
3;; Maintainer: FSF 3;; Maintainer: FSF
4;; Keywords: internal 4;; Keywords: internal
5 5
6;; Copyright (c) 1993, 1994 Free Software Foundation, Inc. 6;; Copyright (c) 1993, 1994, 2004 Free Software Foundation, Inc.
7;; Based partially on earlier release by Lucid. 7;; Based partially on earlier release by Lucid.
8 8
9;; This file is part of GNU Emacs. 9;; This file is part of GNU Emacs.
@@ -35,7 +35,11 @@ The argument TYPE (default `PRIMARY') says which selection,
35and the argument DATA-TYPE (default `STRING') says 35and the argument DATA-TYPE (default `STRING') says
36how to convert the data. 36how to convert the data.
37 37
38TYPE may be `SECONDARY' or `CLIPBOARD', in addition to `PRIMARY'. 38TYPE may be any symbol \(but nil stands for `PRIMARY'). However,
39only a few symbols are commonly used. They conventionally have
40all upper-case names. The most often used ones, in addition to
41`PRIMARY', are `SECONDARY' and `CLIPBOARD'.
42
39DATA-TYPE is usually `STRING', but can also be one of the symbols 43DATA-TYPE is usually `STRING', but can also be one of the symbols
40in `selection-converter-alist', which see." 44in `selection-converter-alist', which see."
41 (let ((data (x-get-selection-internal (or type 'PRIMARY) 45 (let ((data (x-get-selection-internal (or type 'PRIMARY)
@@ -57,9 +61,11 @@ in `selection-converter-alist', which see."
57 61
58(defun x-set-selection (type data) 62(defun x-set-selection (type data)
59 "Make an X Windows selection of type TYPE and value DATA. 63 "Make an X Windows selection of type TYPE and value DATA.
60The argument TYPE (default `PRIMARY') says which selection, 64The argument TYPE (nil means `PRIMARY') says which selection, and
61and DATA specifies the contents. DATA may be a string, 65DATA specifies the contents. TYPE must be a symbol. \(It can also
62a symbol, an integer (or a cons of two integers or list of two integers). 66be a string, which stands for the symbol with that name, but this
67is considered obsolete.) DATA may be a string, a symbol, an
68integer (or a cons of two integers or list of two integers).
63 69
64The selection may also be a cons of two markers pointing to the same buffer, 70The selection may also be a cons of two markers pointing to the same buffer,
65or an overlay. In these cases, the selection is considered to be the text 71or an overlay. In these cases, the selection is considered to be the text
@@ -69,8 +75,11 @@ can alter the effective value of the selection.
69 75
70The data may also be a vector of valid non-vector selection values. 76The data may also be a vector of valid non-vector selection values.
71 77
72Interactively, the text of the region is used as the selection value 78The return value is DATA.
73if the prefix arg is set." 79
80Interactively, this command sets the primary selection. Without
81prefix argument, it reads the selection in the minibuffer. With
82prefix argument, it uses the text of the region as the selection value ."
74 (interactive (if (not current-prefix-arg) 83 (interactive (if (not current-prefix-arg)
75 (list 'PRIMARY (read-string "Set text for pasting: ")) 84 (list 'PRIMARY (read-string "Set text for pasting: "))
76 (list 'PRIMARY (buffer-substring (region-beginning) (region-end))))) 85 (list 'PRIMARY (buffer-substring (region-beginning) (region-end)))))
diff --git a/lisp/simple.el b/lisp/simple.el
index 547849740fa..1ffac99973c 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -4313,6 +4313,13 @@ of the differing parts is, by contrast, slightly highlighted."
4313 (if minibuffer-completing-file-name 4313 (if minibuffer-completing-file-name
4314 (with-current-buffer mainbuf 4314 (with-current-buffer mainbuf
4315 (setq default-directory (file-name-directory mbuf-contents)))) 4315 (setq default-directory (file-name-directory mbuf-contents))))
4316 ;; If partial-completion-mode is on, point might not be after the
4317 ;; last character in the minibuffer.
4318 ;; FIXME: This still doesn't work if the text to be completed
4319 ;; starts with a `-'.
4320 (when (and partial-completion-mode (not (eobp)))
4321 (setq mbuf-contents
4322 (substring mbuf-contents 0 (- (point) (point-max)))))
4316 (with-current-buffer standard-output 4323 (with-current-buffer standard-output
4317 (completion-list-mode) 4324 (completion-list-mode)
4318 (make-local-variable 'completion-reference-buffer) 4325 (make-local-variable 'completion-reference-buffer)
diff --git a/lisp/subr.el b/lisp/subr.el
index 9ea9f01c551..354f911fe67 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -198,7 +198,7 @@ If N is bigger than the length of LIST, return LIST."
198 list)) 198 list))
199 199
200(defun butlast (list &optional n) 200(defun butlast (list &optional n)
201 "Returns a copy of LIST with the last N elements removed." 201 "Return a copy of LIST with the last N elements removed."
202 (if (and n (<= n 0)) list 202 (if (and n (<= n 0)) list
203 (nbutlast (copy-sequence list) n))) 203 (nbutlast (copy-sequence list) n)))
204 204
@@ -641,7 +641,7 @@ The normal global definition of the character C-x indirects to this keymap.")
641 (get (car obj) 'event-symbol-elements)))) 641 (get (car obj) 'event-symbol-elements))))
642 642
643(defun event-modifiers (event) 643(defun event-modifiers (event)
644 "Returns a list of symbols representing the modifier keys in event EVENT. 644 "Return a list of symbols representing the modifier keys in event EVENT.
645The elements of the list may include `meta', `control', 645The elements of the list may include `meta', `control',
646`shift', `hyper', `super', `alt', `click', `double', `triple', `drag', 646`shift', `hyper', `super', `alt', `click', `double', `triple', `drag',
647and `down'." 647and `down'."
@@ -670,7 +670,7 @@ and `down'."
670 list)))) 670 list))))
671 671
672(defun event-basic-type (event) 672(defun event-basic-type (event)
673 "Returns the basic type of the given event (all modifiers removed). 673 "Return the basic type of the given event (all modifiers removed).
674The value is a printing character (not upper case) or a symbol." 674The value is a printing character (not upper case) or a symbol."
675 (if (consp event) 675 (if (consp event)
676 (setq event (car event))) 676 (setq event (car event)))
diff --git a/lisp/term/tty-colors.el b/lisp/term/tty-colors.el
index 956d46738df..1de35822b39 100644
--- a/lisp/term/tty-colors.el
+++ b/lisp/term/tty-colors.el
@@ -864,15 +864,10 @@ of gray, thus the name."
864 (if (< mag 1) 0 (acos (/ (+ r g b) mag))))) 864 (if (< mag 1) 0 (acos (/ (+ r g b) mag)))))
865 865
866(defun tty-color-approximate (rgb &optional frame) 866(defun tty-color-approximate (rgb &optional frame)
867 "Given a list of 3 rgb values in RGB, find the color in `tty-color-alist' 867 "Find the color in `tty-color-alist' that best approximates RGB.
868which is the best approximation in the 3-dimensional RGB space, 868Value is a list of the form \(NAME INDEX R G B\).
869and return its description. 869The argument RGB should be an rgb value, that is, a list of three
870 870integers in the 0..65535 range.
871Value is a list of the form \(NAME INDEX R G B\). Note that the returned
872NAME is not necessarily the same string as the argument COLOR, because
873the latter might need to be approximated if it is not supported directly.
874
875Each value of the RGB triplet should be in the range 0..65535 range.
876FRAME defaults to the selected frame." 871FRAME defaults to the selected frame."
877 (let* ((color-list (tty-color-alist frame)) 872 (let* ((color-list (tty-color-alist frame))
878 (candidate (car color-list)) 873 (candidate (car color-list))
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el
index aff42866349..5238e131ab6 100644
--- a/lisp/textmodes/flyspell.el
+++ b/lisp/textmodes/flyspell.el
@@ -2,7 +2,7 @@
2 2
3;; Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc. 3;; Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
4 4
5;; Author: Manuel Serrano <Manuel.Serrano@unice.fr> 5;; Author: Manuel Serrano <Manuel.Serrano@sophia.inria.fr>
6;; Maintainer: FSF 6;; Maintainer: FSF
7;; Keywords: convenience 7;; Keywords: convenience
8 8
diff --git a/lisp/wdired.el b/lisp/wdired.el
index 30ba2a3cd45..928ecd65339 100644
--- a/lisp/wdired.el
+++ b/lisp/wdired.el
@@ -455,6 +455,11 @@ non-nil means return old filename."
455 (setq file-new (substitute-in-file-name file-new)) 455 (setq file-new (substitute-in-file-name file-new))
456 (if wdired-use-interactive-rename 456 (if wdired-use-interactive-rename
457 (wdired-search-and-rename file-ori file-new) 457 (wdired-search-and-rename file-ori file-new)
458 ;; If dired-rename-file autoloads dired-aux while
459 ;; dired-backup-overwrite is locally bound,
460 ;; dired-backup-overwrite won't be initialized.
461 ;; So we must ensure dired-aux is loaded.
462 (require 'dired-aux)
458 (condition-case err 463 (condition-case err
459 (let ((dired-backup-overwrite nil)) 464 (let ((dired-backup-overwrite nil))
460 (dired-rename-file file-ori file-new 465 (dired-rename-file file-ori file-new