diff options
| author | Glenn Morris | 2012-10-05 00:38:05 -0700 |
|---|---|---|
| committer | Glenn Morris | 2012-10-05 00:38:05 -0700 |
| commit | e8757f091a502b858912a4c267210e009227d6e6 (patch) | |
| tree | b8d9354bebd57d6d96c0bb2196f1119bd82c2943 | |
| parent | 735135f9bc3c01b91ffef7c418dd9281bc347ab7 (diff) | |
| parent | d259be38357793eb743ed2813d6f72a3d7728624 (diff) | |
| download | emacs-e8757f091a502b858912a4c267210e009227d6e6.tar.gz emacs-e8757f091a502b858912a4c267210e009227d6e6.zip | |
Merge from emacs-24; up to 2012-05-08T14:11:47Z!monnier@iro.umontreal.ca
| -rw-r--r-- | doc/lispref/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/lispref/functions.texi | 2 | ||||
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/calc.texi | 2 | ||||
| -rw-r--r-- | doc/misc/cl.texi | 4 | ||||
| -rw-r--r-- | doc/misc/newsticker.texi | 34 | ||||
| -rw-r--r-- | etc/ChangeLog | 4 | ||||
| -rw-r--r-- | etc/tutorials/TUTORIAL.pt_BR | 2 | ||||
| -rw-r--r-- | lisp/ChangeLog | 19 | ||||
| -rw-r--r-- | lisp/color.el | 148 | ||||
| -rw-r--r-- | lisp/emacs-lisp/timer.el | 2 | ||||
| -rw-r--r-- | lisp/files.el | 2 | ||||
| -rw-r--r-- | lisp/ido.el | 2 | ||||
| -rw-r--r-- | lisp/net/newst-treeview.el | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/minibuf.c | 2 |
16 files changed, 129 insertions, 109 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index db728d6fec0..8568b024f67 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-10-05 Bruno Félix Rezende Ribeiro <oitofelix@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * functions.texi (Function Safety): Copyedit. (Bug#12562) | ||
| 4 | |||
| 1 | 2012-10-01 Paul Eggert <eggert@cs.ucla.edu> | 5 | 2012-10-01 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 6 | ||
| 3 | Revert the FOLLOW-SYMLINKS change for file-attributes. | 7 | Revert the FOLLOW-SYMLINKS change for file-attributes. |
diff --git a/doc/lispref/functions.texi b/doc/lispref/functions.texi index cab6d12a3d8..845561f91ec 100644 --- a/doc/lispref/functions.texi +++ b/doc/lispref/functions.texi | |||
| @@ -1397,7 +1397,7 @@ opposed to an unspecified one). | |||
| 1397 | @cindex function safety | 1397 | @cindex function safety |
| 1398 | @cindex safety of functions | 1398 | @cindex safety of functions |
| 1399 | 1399 | ||
| 1400 | Some major modes such as SES call functions that are stored in user | 1400 | Some major modes, such as SES, call functions that are stored in user |
| 1401 | files. (@inforef{Top, ,ses}, for more information on SES.) User | 1401 | files. (@inforef{Top, ,ses}, for more information on SES.) User |
| 1402 | files sometimes have poor pedigrees---you can get a spreadsheet from | 1402 | files sometimes have poor pedigrees---you can get a spreadsheet from |
| 1403 | someone you've just met, or you can get one through email from someone | 1403 | someone you've just met, or you can get one through email from someone |
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index dc29868eb04..55f81c7c798 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-10-05 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * newsticker.texi (Overview, Requirements, Usage, Configuration): | ||
| 4 | Copyedits. | ||
| 5 | |||
| 1 | 2012-10-01 Eric Ludlam <zappo@gnu.org> | 6 | 2012-10-01 Eric Ludlam <zappo@gnu.org> |
| 2 | 7 | ||
| 3 | * ede.texi (Quick Start, Project Local Variables) | 8 | * ede.texi (Quick Start, Project Local Variables) |
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi index f8f6d06b93a..2b198575bcb 100644 --- a/doc/misc/calc.texi +++ b/doc/misc/calc.texi | |||
| @@ -35232,7 +35232,7 @@ character of the prefix can simply be typed twice. | |||
| 35232 | 35232 | ||
| 35233 | Calc is controlled by many variables, most of which can be reset | 35233 | Calc is controlled by many variables, most of which can be reset |
| 35234 | from within Calc. Some variables are less involved with actual | 35234 | from within Calc. Some variables are less involved with actual |
| 35235 | calculation and can be set outside of Calc using Emacs'ss | 35235 | calculation and can be set outside of Calc using Emacs's |
| 35236 | customization facilities. These variables are listed below. | 35236 | customization facilities. These variables are listed below. |
| 35237 | Typing @kbd{M-x customize-variable RET @var{variable-name} RET} | 35237 | Typing @kbd{M-x customize-variable RET @var{variable-name} RET} |
| 35238 | will bring up a buffer in which the variable's value can be redefined. | 35238 | will bring up a buffer in which the variable's value can be redefined. |
diff --git a/doc/misc/cl.texi b/doc/misc/cl.texi index 9195ca3f10c..18abb0647a2 100644 --- a/doc/misc/cl.texi +++ b/doc/misc/cl.texi | |||
| @@ -2087,7 +2087,7 @@ of a list. @var{list} should evaluate to a list; the body @var{forms} | |||
| 2087 | are executed with @var{var} bound to each element of the list in | 2087 | are executed with @var{var} bound to each element of the list in |
| 2088 | turn. Finally, the @var{result} form (or @code{nil}) is evaluated | 2088 | turn. Finally, the @var{result} form (or @code{nil}) is evaluated |
| 2089 | with @var{var} bound to @code{nil} to produce the result returned by | 2089 | with @var{var} bound to @code{nil} to produce the result returned by |
| 2090 | the loop. Unlike with Emacs'ss built in @code{dolist}, the loop is | 2090 | the loop. Unlike with Emacs's built in @code{dolist}, the loop is |
| 2091 | surrounded by an implicit @code{nil} block. | 2091 | surrounded by an implicit @code{nil} block. |
| 2092 | @end defspec | 2092 | @end defspec |
| 2093 | 2093 | ||
| @@ -2097,7 +2097,7 @@ of times. The body is executed with @var{var} bound to the integers | |||
| 2097 | from zero (inclusive) to @var{count} (exclusive), in turn. Then | 2097 | from zero (inclusive) to @var{count} (exclusive), in turn. Then |
| 2098 | the @code{result} form is evaluated with @var{var} bound to the total | 2098 | the @code{result} form is evaluated with @var{var} bound to the total |
| 2099 | number of iterations that were done (i.e., @code{(max 0 @var{count})}) | 2099 | number of iterations that were done (i.e., @code{(max 0 @var{count})}) |
| 2100 | to get the return value for the loop form. Unlike with Emacs'ss built in | 2100 | to get the return value for the loop form. Unlike with Emacs's built in |
| 2101 | @code{dolist}, the loop is surrounded by an implicit @code{nil} block. | 2101 | @code{dolist}, the loop is surrounded by an implicit @code{nil} block. |
| 2102 | @end defspec | 2102 | @end defspec |
| 2103 | 2103 | ||
diff --git a/doc/misc/newsticker.texi b/doc/misc/newsticker.texi index 919ca21cc3e..5add229724c 100644 --- a/doc/misc/newsticker.texi +++ b/doc/misc/newsticker.texi | |||
| @@ -69,14 +69,14 @@ developing GNU and promoting software freedom.'' | |||
| 69 | @node Overview | 69 | @node Overview |
| 70 | @chapter Overview | 70 | @chapter Overview |
| 71 | 71 | ||
| 72 | Newsticker provides a newsticker for Emacs. A newsticker is a thing | 72 | Newsticker provides a newsticker for Emacs. A newsticker is a thing |
| 73 | that asynchronously retrieves headlines from a list of news sites, | 73 | that asynchronously retrieves headlines from a list of news sites, |
| 74 | prepares these headlines for reading, and allows for loading the | 74 | prepares these headlines for reading, and allows for loading the |
| 75 | corresponding articles in a web browser. | 75 | corresponding articles in a web browser. |
| 76 | 76 | ||
| 77 | 77 | ||
| 78 | Headlines consist of a title and (possibly) a small description. They | 78 | Headlines consist of a title and (possibly) a small description. They |
| 79 | are contained in "RSS" (RDF Site Summary) or "Atom" files. Newsticker | 79 | are contained in ``RSS'' (RDF Site Summary) or ``Atom'' files. Newsticker |
| 80 | works with the following RSS formats: | 80 | works with the following RSS formats: |
| 81 | 81 | ||
| 82 | @itemize | 82 | @itemize |
| @@ -105,8 +105,9 @@ messages in a stock-quote ticker, or just changing. | |||
| 105 | 105 | ||
| 106 | Newsticker allows for automatic processing of headlines by providing | 106 | Newsticker allows for automatic processing of headlines by providing |
| 107 | hooks and (sample) functions for automatically downloading images and | 107 | hooks and (sample) functions for automatically downloading images and |
| 108 | enclosed files (as delivered by podcasts, e.g.). | 108 | enclosed files (as delivered by, e.g., podcasts). |
| 109 | 109 | ||
| 110 | @ignore | ||
| 110 | @ifhtml | 111 | @ifhtml |
| 111 | Here are screen shots of the @uref{newsticker-1.7.png, version 1.7 | 112 | Here are screen shots of the @uref{newsticker-1.7.png, version 1.7 |
| 112 | (current version)} and some older screen shots: | 113 | (current version)} and some older screen shots: |
| @@ -116,6 +117,7 @@ Here are screen shots of the @uref{newsticker-1.7.png, version 1.7 | |||
| 116 | @uref{newsticker-1.3.png, version 1.3}, | 117 | @uref{newsticker-1.3.png, version 1.3}, |
| 117 | @uref{newsticker-1.0.png, version 1.0}. | 118 | @uref{newsticker-1.0.png, version 1.0}. |
| 118 | @end ifhtml | 119 | @end ifhtml |
| 120 | @end ignore | ||
| 119 | 121 | ||
| 120 | @node Requirements | 122 | @node Requirements |
| 121 | @chapter Requirements | 123 | @chapter Requirements |
| @@ -123,7 +125,7 @@ Here are screen shots of the @uref{newsticker-1.7.png, version 1.7 | |||
| 123 | Newsticker can be used with | 125 | Newsticker can be used with |
| 124 | @uref{http://www.gnu.org/software/emacs/emacs.html, GNU Emacs} version | 126 | @uref{http://www.gnu.org/software/emacs/emacs.html, GNU Emacs} version |
| 125 | 21.1 or later as well as @uref{http://www.xemacs.org, XEmacs}. It | 127 | 21.1 or later as well as @uref{http://www.xemacs.org, XEmacs}. It |
| 126 | requires an XML-parser (@file{xml.el}) which is part of GNU Emacs. If | 128 | requires an XML-parser (@file{xml.el}), which is part of GNU Emacs. If |
| 127 | you are using XEmacs you want to get the @file{net-utils} package | 129 | you are using XEmacs you want to get the @file{net-utils} package |
| 128 | which contains @file{xml.el} for XEmacs. | 130 | which contains @file{xml.el} for XEmacs. |
| 129 | 131 | ||
| @@ -161,11 +163,11 @@ You can choose between two different frontends for reading headlines: | |||
| 161 | @itemize | 163 | @itemize |
| 162 | @item Newsticker's @emph{treeview} uses separate windows for the | 164 | @item Newsticker's @emph{treeview} uses separate windows for the |
| 163 | feeds (in tree form), a list of headlines for the current feed, and | 165 | feeds (in tree form), a list of headlines for the current feed, and |
| 164 | the content of the current headline. Feeds can be placed into groups | 166 | the content of the current headline. Feeds can be placed into groups, |
| 165 | which itself can be placed in groups and so on. | 167 | which themselves can be placed in groups and so on. |
| 166 | @item Newsticker's @emph{plainview} displays all headlines in a | 168 | @item Newsticker's @emph{plainview} displays all headlines in a |
| 167 | single buffer, called @samp{*newsticker*}. The modeline in the | 169 | single buffer, called @samp{*newsticker*}. The modeline in the |
| 168 | @samp{*newsticker*} buffer informs whenever new headlines have | 170 | @samp{*newsticker*} buffer informs you whenever new headlines have |
| 169 | arrived. | 171 | arrived. |
| 170 | @end itemize | 172 | @end itemize |
| 171 | In both views clicking mouse-button 2 or pressing RET on a headline | 173 | In both views clicking mouse-button 2 or pressing RET on a headline |
| @@ -175,13 +177,13 @@ your favorite web browser. | |||
| 175 | @findex newsticker-start-ticker | 177 | @findex newsticker-start-ticker |
| 176 | @findex newsticker-stop-ticker | 178 | @findex newsticker-stop-ticker |
| 177 | The scrolling, or flashing of headlines in the echo area, can be | 179 | The scrolling, or flashing of headlines in the echo area, can be |
| 178 | started with the command @code{newsticker-start-ticker}. It can be | 180 | started with the command @code{newsticker-start-ticker}. It can be |
| 179 | stopped with @code{newsticker-stop-ticker}. | 181 | stopped with @code{newsticker-stop-ticker}. |
| 180 | 182 | ||
| 181 | @findex newsticker-start | 183 | @findex newsticker-start |
| 182 | @findex newsticker-stop | 184 | @findex newsticker-stop |
| 183 | If you just want to start the periodic download of headlines use the | 185 | If you just want to start the periodic download of headlines use the |
| 184 | command @code{newsticker-start}. Calling @code{newsticker-stop} will | 186 | command @code{newsticker-start}. Calling @code{newsticker-stop} will |
| 185 | stop the periodic download, but will call | 187 | stop the periodic download, but will call |
| 186 | @code{newsticker-stop-ticker} as well. | 188 | @code{newsticker-stop-ticker} as well. |
| 187 | 189 | ||
| @@ -189,7 +191,7 @@ stop the periodic download, but will call | |||
| 189 | @chapter Configuration | 191 | @chapter Configuration |
| 190 | 192 | ||
| 191 | All Newsticker options are customizable, i.e. they can be changed with | 193 | All Newsticker options are customizable, i.e. they can be changed with |
| 192 | Emacs customization methods: Call the command | 194 | Emacs customization methods. Call the command |
| 193 | @code{customize-group} and enter @samp{newsticker} for the customization | 195 | @code{customize-group} and enter @samp{newsticker} for the customization |
| 194 | group. | 196 | group. |
| 195 | 197 | ||
| @@ -209,7 +211,7 @@ feeds are retrieved and how this is done. | |||
| 209 | @itemize | 211 | @itemize |
| 210 | @item | 212 | @item |
| 211 | @vindex newsticker-url-list | 213 | @vindex newsticker-url-list |
| 212 | @code{newsticker-url-list} defines the list of headlines which are | 214 | @code{newsticker-url-list} defines the list of headlines that are |
| 213 | retrieved. | 215 | retrieved. |
| 214 | @item | 216 | @item |
| 215 | @vindex newsticker-retrieval-method | 217 | @vindex newsticker-retrieval-method |
| @@ -245,11 +247,11 @@ commands to newsticker functions. | |||
| 245 | @item | 247 | @item |
| 246 | @vindex newsticker-new-item-functions | 248 | @vindex newsticker-new-item-functions |
| 247 | @code{newsticker-new-item-functions} allows for automatic | 249 | @code{newsticker-new-item-functions} allows for automatic |
| 248 | processing of headlines. See `newsticker-download-images', and | 250 | processing of headlines. See @code{newsticker-download-images}, and |
| 249 | `newsticker-download-enclosures' for sample functions. | 251 | @code{newsticker-download-enclosures} for sample functions. |
| 250 | @item | 252 | @item |
| 251 | @vindex newsticker-plainview-hooks | 253 | @vindex newsticker-plainview-hooks |
| 252 | The subgroup @code{newsticker-plainview-hooks} contains hook which | 254 | The subgroup @code{newsticker-plainview-hooks} contains hooks that |
| 253 | apply to the plainview reader only. | 255 | apply to the plainview reader only. |
| 254 | @end itemize | 256 | @end itemize |
| 255 | 257 | ||
| @@ -276,7 +278,7 @@ the echo area. | |||
| 276 | @itemize | 278 | @itemize |
| 277 | @item | 279 | @item |
| 278 | @vindex newsticker-frontend | 280 | @vindex newsticker-frontend |
| 279 | @code{newsticker-frontend} determines the actual headline reader. The | 281 | @code{newsticker-frontend} determines the actual headline reader. The |
| 280 | ``plainview'' reader uses a single buffer, the ``treeview'' uses | 282 | ``plainview'' reader uses a single buffer, the ``treeview'' uses |
| 281 | separate buffers and windows. | 283 | separate buffers and windows. |
| 282 | @end itemize | 284 | @end itemize |
diff --git a/etc/ChangeLog b/etc/ChangeLog index c163683ea39..ad6c6395e49 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-10-05 Douglas Lewan <d_lewan2000@yahoo.com> (tiny change) | ||
| 2 | |||
| 3 | * tutorials/TUTORIAL.pt_BR: Fix typo. (Bug#12557) | ||
| 4 | |||
| 1 | 2012-10-01 Eric Ludlam <zappo@gnu.org> | 5 | 2012-10-01 Eric Ludlam <zappo@gnu.org> |
| 2 | 6 | ||
| 3 | * srecode/cc.srt, srecode/ede-autoconf.srt: New files. | 7 | * srecode/cc.srt, srecode/ede-autoconf.srt: New files. |
diff --git a/etc/tutorials/TUTORIAL.pt_BR b/etc/tutorials/TUTORIAL.pt_BR index 139789b1d2a..f28f86b3105 100644 --- a/etc/tutorials/TUTORIAL.pt_BR +++ b/etc/tutorials/TUTORIAL.pt_BR | |||
| @@ -46,7 +46,7 @@ META, EDIT ou ALT). | |||
| 46 | Os comandos a seguir são úteis para visualizar telas inteiras | 46 | Os comandos a seguir são úteis para visualizar telas inteiras |
| 47 | 47 | ||
| 48 | C-v Move para tela inteira posterior | 48 | C-v Move para tela inteira posterior |
| 49 | M-x Move para tela inteira anterior | 49 | M-v Move para tela inteira anterior |
| 50 | C-l Limpa a tela e re-mostrá todo o texto, movendo o texto ao | 50 | C-l Limpa a tela e re-mostrá todo o texto, movendo o texto ao |
| 51 | redor do cursor para o centro da tela. (Isso é | 51 | redor do cursor para o centro da tela. (Isso é |
| 52 | control-L, não control-1.) | 52 | control-L, não control-1.) |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index eaef867e9e2..16c64ae1394 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,22 @@ | |||
| 1 | 2012-10-05 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * net/newst-treeview.el (newsticker-group-move-feed): Doc fix. | ||
| 4 | |||
| 5 | * color.el (color-name-to-rgb, color-rgb-to-hex) | ||
| 6 | (color-hue-to-rgb, color-hsl-to-rgb, color-rgb-to-hsv) | ||
| 7 | (color-rgb-to-hsl, color-srgb-to-xyz, color-saturate-hsl) | ||
| 8 | (color-desaturate-hsl, color-desaturate-name, color-lighten-hsl) | ||
| 9 | (color-lighten-name, color-darken-hsl, color-darken-name): Doc fixes. | ||
| 10 | |||
| 11 | * emacs-lisp/timer.el (with-timeout): Add missing progn. (Bug#12577) | ||
| 12 | |||
| 13 | 2012-10-05 Juanma Barranquero <lekktu@gmail.com> | ||
| 14 | |||
| 15 | * ido.el (ido-directory-too-big-p): Pass dir through file-truename | ||
| 16 | to get the correct size across symlinks. | ||
| 17 | |||
| 18 | * ido.el (ido-buffer-disable-smart-matches): Fix typo in docstring. | ||
| 19 | |||
| 1 | 2012-10-04 Juri Linkov <juri@jurta.org> | 20 | 2012-10-04 Juri Linkov <juri@jurta.org> |
| 2 | 21 | ||
| 3 | * replace.el (query-replace-interactive): Declare obsolete. | 22 | * replace.el (query-replace-interactive): Declare obsolete. |
diff --git a/lisp/color.el b/lisp/color.el index 94a98615d94..f618d47a540 100644 --- a/lisp/color.el +++ b/lisp/color.el | |||
| @@ -50,17 +50,17 @@ string (e.g. \"#ff12ec\"). | |||
| 50 | Normally the return value is a list of three floating-point | 50 | Normally the return value is a list of three floating-point |
| 51 | numbers, (RED GREEN BLUE), each between 0.0 and 1.0 inclusive. | 51 | numbers, (RED GREEN BLUE), each between 0.0 and 1.0 inclusive. |
| 52 | 52 | ||
| 53 | Optional arg FRAME specifies the frame where the color is to be | 53 | Optional argument FRAME specifies the frame where the color is to be |
| 54 | displayed. If FRAME is omitted or nil, use the selected frame. | 54 | displayed. If FRAME is omitted or nil, use the selected frame. |
| 55 | If FRAME cannot display COLOR, return nil." | 55 | If FRAME cannot display COLOR, return nil." |
| 56 | ;; `colors-values' maximum value is either 65535 or 65280 depending on the | 56 | ;; `colors-values' maximum value is either 65535 or 65280 depending on the |
| 57 | ;; display system. So we use a white conversion to get the max value. | 57 | ;; display system. So we use a white conversion to get the max value. |
| 58 | (let ((valmax (float (car (color-values "#ffffff"))))) | 58 | (let ((valmax (float (car (color-values "#ffffff"))))) |
| 59 | (mapcar (lambda (x) (/ x valmax)) (color-values color frame)))) | 59 | (mapcar (lambda (x) (/ x valmax)) (color-values color frame)))) |
| 60 | 60 | ||
| 61 | (defun color-rgb-to-hex (red green blue) | 61 | (defun color-rgb-to-hex (red green blue) |
| 62 | "Return hexadecimal notation for the color RED GREEN BLUE. | 62 | "Return hexadecimal notation for the color RED GREEN BLUE. |
| 63 | RED GREEN BLUE must be numbers between 0.0 and 1.0 inclusive." | 63 | RED, GREEN, and BLUE should be numbers between 0.0 and 1.0, inclusive." |
| 64 | (format "#%02x%02x%02x" | 64 | (format "#%02x%02x%02x" |
| 65 | (* red 255) (* green 255) (* blue 255))) | 65 | (* red 255) (* green 255) (* blue 255))) |
| 66 | 66 | ||
| @@ -76,7 +76,7 @@ a string specifying a color's RGB components (e.g. \"#ff12ec\")." | |||
| 76 | (defun color-gradient (start stop step-number) | 76 | (defun color-gradient (start stop step-number) |
| 77 | "Return a list with STEP-NUMBER colors from START to STOP. | 77 | "Return a list with STEP-NUMBER colors from START to STOP. |
| 78 | The color list builds a color gradient starting at color START to | 78 | The color list builds a color gradient starting at color START to |
| 79 | color STOP. It does not include the START and STOP color in the | 79 | color STOP. It does not include the START and STOP color in the |
| 80 | resulting list." | 80 | resulting list." |
| 81 | (let* ((r (nth 0 start)) | 81 | (let* ((r (nth 0 start)) |
| 82 | (g (nth 1 start)) | 82 | (g (nth 1 start)) |
| @@ -93,8 +93,8 @@ resulting list." | |||
| 93 | (nreverse result))) | 93 | (nreverse result))) |
| 94 | 94 | ||
| 95 | (defun color-hue-to-rgb (v1 v2 h) | 95 | (defun color-hue-to-rgb (v1 v2 h) |
| 96 | "Compute hue from V1 and V2 H. Internally used by | 96 | "Compute hue from V1 and V2 H. |
| 97 | `color-hsl-to-rgb'." | 97 | Used internally by `color-hsl-to-rgb'." |
| 98 | (cond | 98 | (cond |
| 99 | ((< h (/ 1.0 6)) (+ v1 (* (- v2 v1) h 6.0))) | 99 | ((< h (/ 1.0 6)) (+ v1 (* (- v2 v1) h 6.0))) |
| 100 | ((< h 0.5) v2) | 100 | ((< h 0.5) v2) |
| @@ -102,13 +102,10 @@ resulting list." | |||
| 102 | (t v1))) | 102 | (t v1))) |
| 103 | 103 | ||
| 104 | (defun color-hsl-to-rgb (H S L) | 104 | (defun color-hsl-to-rgb (H S L) |
| 105 | "Convert H S L (HUE, SATURATION, LUMINANCE) , where HUE is in | 105 | "Convert hue, saturation and luminance to their RGB representation. |
| 106 | radians and both SATURATION and LUMINANCE are between 0.0 and | 106 | H, S, and L should each be numbers between 0.0 and 1.0, inclusive. |
| 107 | 1.0, inclusive to their RGB representation. | 107 | Return a list (RED GREEN BLUE), where each element is between 0.0 and 1.0, |
| 108 | 108 | inclusive." | |
| 109 | Return a list (RED, GREEN, BLUE) which each be numbers between | ||
| 110 | 0.0 and 1.0, inclusive." | ||
| 111 | |||
| 112 | (if (= S 0.0) | 109 | (if (= S 0.0) |
| 113 | (list L L L) | 110 | (list L L L) |
| 114 | (let* ((m2 (if (<= L 0.5) | 111 | (let* ((m2 (if (<= L 0.5) |
| @@ -125,9 +122,9 @@ Return a list (RED, GREEN, BLUE) which each be numbers between | |||
| 125 | (apply 'color-rgb-to-hex (color-complement color))) | 122 | (apply 'color-rgb-to-hex (color-complement color))) |
| 126 | 123 | ||
| 127 | (defun color-rgb-to-hsv (red green blue) | 124 | (defun color-rgb-to-hsv (red green blue) |
| 128 | "Convert RED, GREEN, and BLUE color components to HSV. | 125 | "Convert RGB color components to HSV. |
| 129 | RED, GREEN, and BLUE should each be numbers between 0.0 and 1.0, | 126 | RED, GREEN, and BLUE should each be numbers between 0.0 and 1.0, |
| 130 | inclusive. Return a list (HUE, SATURATION, VALUE), where HUE is | 127 | inclusive. Return a list (HUE SATURATION VALUE), where HUE is |
| 131 | in radians and both SATURATION and VALUE are between 0.0 and 1.0, | 128 | in radians and both SATURATION and VALUE are between 0.0 and 1.0, |
| 132 | inclusive." | 129 | inclusive." |
| 133 | (let* ((r (float red)) | 130 | (let* ((r (float red)) |
| @@ -155,13 +152,10 @@ inclusive." | |||
| 155 | (/ max 255.0))))) | 152 | (/ max 255.0))))) |
| 156 | 153 | ||
| 157 | (defun color-rgb-to-hsl (red green blue) | 154 | (defun color-rgb-to-hsl (red green blue) |
| 158 | "Convert RED GREEN BLUE colors to their HSL representation. | 155 | "Convert RGB colors to their HSL representation. |
| 159 | RED, GREEN, and BLUE should each be numbers between 0.0 and 1.0, | 156 | RED, GREEN, and BLUE should each be numbers between 0.0 and 1.0, |
| 160 | inclusive. | 157 | inclusive. Return a list (HUE SATURATION LUMINANCE), where |
| 161 | 158 | each element is between 0.0 and 1.0, inclusive." | |
| 162 | Return a list (HUE, SATURATION, LUMINANCE), where HUE is in radians | ||
| 163 | and both SATURATION and LUMINANCE are between 0.0 and 1.0, | ||
| 164 | inclusive." | ||
| 165 | (let* ((r red) | 159 | (let* ((r red) |
| 166 | (g green) | 160 | (g green) |
| 167 | (b blue) | 161 | (b blue) |
| @@ -187,7 +181,7 @@ inclusive." | |||
| 187 | 181 | ||
| 188 | (defun color-srgb-to-xyz (red green blue) | 182 | (defun color-srgb-to-xyz (red green blue) |
| 189 | "Convert RED GREEN BLUE colors from the sRGB color space to CIE XYZ. | 183 | "Convert RED GREEN BLUE colors from the sRGB color space to CIE XYZ. |
| 190 | RED, BLUE and GREEN must be between 0 and 1, inclusive." | 184 | RED, GREEN and BLUE should be between 0.0 and 1.0, inclusive." |
| 191 | (let ((r (if (<= red 0.04045) | 185 | (let ((r (if (<= red 0.04045) |
| 192 | (/ red 12.95) | 186 | (/ red 12.95) |
| 193 | (expt (/ (+ red 0.055) 1.055) 2.4))) | 187 | (expt (/ (+ red 0.055) 1.055) 2.4))) |
| @@ -225,44 +219,44 @@ RED, BLUE and GREEN must be between 0 and 1, inclusive." | |||
| 225 | (defun color-xyz-to-lab (X Y Z &optional white-point) | 219 | (defun color-xyz-to-lab (X Y Z &optional white-point) |
| 226 | "Convert CIE XYZ to CIE L*a*b*. | 220 | "Convert CIE XYZ to CIE L*a*b*. |
| 227 | WHITE-POINT specifies the (X Y Z) white point for the | 221 | WHITE-POINT specifies the (X Y Z) white point for the |
| 228 | conversion. If omitted or nil, use `color-d65-xyz'." | 222 | conversion. If omitted or nil, use `color-d65-xyz'." |
| 229 | (pcase-let* ((`(,Xr ,Yr ,Zr) (or white-point color-d65-xyz)) | 223 | (pcase-let* ((`(,Xr ,Yr ,Zr) (or white-point color-d65-xyz)) |
| 230 | (xr (/ X Xr)) | 224 | (xr (/ X Xr)) |
| 231 | (yr (/ Y Yr)) | 225 | (yr (/ Y Yr)) |
| 232 | (zr (/ Z Zr)) | 226 | (zr (/ Z Zr)) |
| 233 | (fx (if (> xr color-cie-ε) | 227 | (fx (if (> xr color-cie-ε) |
| 234 | (expt xr (/ 1 3.0)) | 228 | (expt xr (/ 1 3.0)) |
| 235 | (/ (+ (* color-cie-κ xr) 16) 116.0))) | 229 | (/ (+ (* color-cie-κ xr) 16) 116.0))) |
| 236 | (fy (if (> yr color-cie-ε) | 230 | (fy (if (> yr color-cie-ε) |
| 237 | (expt yr (/ 1 3.0)) | 231 | (expt yr (/ 1 3.0)) |
| 238 | (/ (+ (* color-cie-κ yr) 16) 116.0))) | 232 | (/ (+ (* color-cie-κ yr) 16) 116.0))) |
| 239 | (fz (if (> zr color-cie-ε) | 233 | (fz (if (> zr color-cie-ε) |
| 240 | (expt zr (/ 1 3.0)) | 234 | (expt zr (/ 1 3.0)) |
| 241 | (/ (+ (* color-cie-κ zr) 16) 116.0)))) | 235 | (/ (+ (* color-cie-κ zr) 16) 116.0)))) |
| 242 | (list | 236 | (list |
| 243 | (- (* 116 fy) 16) ; L | 237 | (- (* 116 fy) 16) ; L |
| 244 | (* 500 (- fx fy)) ; a | 238 | (* 500 (- fx fy)) ; a |
| 245 | (* 200 (- fy fz))))) ; b | 239 | (* 200 (- fy fz))))) ; b |
| 246 | 240 | ||
| 247 | (defun color-lab-to-xyz (L a b &optional white-point) | 241 | (defun color-lab-to-xyz (L a b &optional white-point) |
| 248 | "Convert CIE L*a*b* to CIE XYZ. | 242 | "Convert CIE L*a*b* to CIE XYZ. |
| 249 | WHITE-POINT specifies the (X Y Z) white point for the | 243 | WHITE-POINT specifies the (X Y Z) white point for the |
| 250 | conversion. If omitted or nil, use `color-d65-xyz'." | 244 | conversion. If omitted or nil, use `color-d65-xyz'." |
| 251 | (pcase-let* ((`(,Xr ,Yr ,Zr) (or white-point color-d65-xyz)) | 245 | (pcase-let* ((`(,Xr ,Yr ,Zr) (or white-point color-d65-xyz)) |
| 252 | (fy (/ (+ L 16) 116.0)) | 246 | (fy (/ (+ L 16) 116.0)) |
| 253 | (fz (- fy (/ b 200.0))) | 247 | (fz (- fy (/ b 200.0))) |
| 254 | (fx (+ (/ a 500.0) fy)) | 248 | (fx (+ (/ a 500.0) fy)) |
| 255 | (xr (if (> (expt fx 3.0) color-cie-ε) | 249 | (xr (if (> (expt fx 3.0) color-cie-ε) |
| 256 | (expt fx 3.0) | 250 | (expt fx 3.0) |
| 257 | (/ (- (* fx 116) 16) color-cie-κ))) | 251 | (/ (- (* fx 116) 16) color-cie-κ))) |
| 258 | (yr (if (> L (* color-cie-κ color-cie-ε)) | 252 | (yr (if (> L (* color-cie-κ color-cie-ε)) |
| 259 | (expt (/ (+ L 16) 116.0) 3.0) | 253 | (expt (/ (+ L 16) 116.0) 3.0) |
| 260 | (/ L color-cie-κ))) | 254 | (/ L color-cie-κ))) |
| 261 | (zr (if (> (expt fz 3) color-cie-ε) | 255 | (zr (if (> (expt fz 3) color-cie-ε) |
| 262 | (expt fz 3.0) | 256 | (expt fz 3.0) |
| 263 | (/ (- (* 116 fz) 16) color-cie-κ)))) | 257 | (/ (- (* 116 fz) 16) color-cie-κ)))) |
| 264 | (list (* xr Xr) ; X | 258 | (list (* xr Xr) ; X |
| 265 | (* yr Yr) ; Y | 259 | (* yr Yr) ; Y |
| 266 | (* zr Zr)))) ; Z | 260 | (* zr Zr)))) ; Z |
| 267 | 261 | ||
| 268 | (defun color-srgb-to-lab (red green blue) | 262 | (defun color-srgb-to-lab (red green blue) |
| @@ -349,17 +343,14 @@ returned by `color-srgb-to-lab' or `color-xyz-to-lab'." | |||
| 349 | (min 1.0 (max 0.0 value))) | 343 | (min 1.0 (max 0.0 value))) |
| 350 | 344 | ||
| 351 | (defun color-saturate-hsl (H S L percent) | 345 | (defun color-saturate-hsl (H S L percent) |
| 352 | "Return a color PERCENT more saturated than the one defined in | 346 | "Make a color more saturated by a specified amount. |
| 353 | H S L color-space. | 347 | Given a color defined in terms of hue, saturation, and luminance |
| 354 | 348 | \(arguments H, S, and L), return a color that is PERCENT more | |
| 355 | Return a list (HUE, SATURATION, LUMINANCE), where HUE is in radians | 349 | saturated. Returns a list (HUE SATURATION LUMINANCE)." |
| 356 | and both SATURATION and LUMINANCE are between 0.0 and 1.0, | ||
| 357 | inclusive." | ||
| 358 | (list H (color-clamp (+ S (/ percent 100.0))) L)) | 350 | (list H (color-clamp (+ S (/ percent 100.0))) L)) |
| 359 | 351 | ||
| 360 | (defun color-saturate-name (name percent) | 352 | (defun color-saturate-name (name percent) |
| 361 | "Short hand to saturate COLOR by PERCENT. | 353 | "Make a color with a specified NAME more saturated by PERCENT. |
| 362 | |||
| 363 | See `color-saturate-hsl'." | 354 | See `color-saturate-hsl'." |
| 364 | (apply 'color-rgb-to-hex | 355 | (apply 'color-rgb-to-hex |
| 365 | (apply 'color-hsl-to-rgb | 356 | (apply 'color-hsl-to-rgb |
| @@ -370,32 +361,26 @@ See `color-saturate-hsl'." | |||
| 370 | (list percent)))))) | 361 | (list percent)))))) |
| 371 | 362 | ||
| 372 | (defun color-desaturate-hsl (H S L percent) | 363 | (defun color-desaturate-hsl (H S L percent) |
| 373 | "Return a color PERCENT less saturated than the one defined in | 364 | "Make a color less saturated by a specified amount. |
| 374 | H S L color-space. | 365 | Given a color defined in terms of hue, saturation, and luminance |
| 375 | 366 | \(arguments H, S, and L), return a color that is PERCENT less | |
| 376 | Return a list (HUE, SATURATION, LUMINANCE), where HUE is in radians | 367 | saturated. Returns a list (HUE SATURATION LUMINANCE)." |
| 377 | and both SATURATION and LUMINANCE are between 0.0 and 1.0, | ||
| 378 | inclusive." | ||
| 379 | (color-saturate-hsl H S L (- percent))) | 368 | (color-saturate-hsl H S L (- percent))) |
| 380 | 369 | ||
| 381 | (defun color-desaturate-name (name percent) | 370 | (defun color-desaturate-name (name percent) |
| 382 | "Short hand to desaturate COLOR by PERCENT. | 371 | "Make a color with a specified NAME less saturated by PERCENT. |
| 383 | |||
| 384 | See `color-desaturate-hsl'." | 372 | See `color-desaturate-hsl'." |
| 385 | (color-saturate-name name (- percent))) | 373 | (color-saturate-name name (- percent))) |
| 386 | 374 | ||
| 387 | (defun color-lighten-hsl (H S L percent) | 375 | (defun color-lighten-hsl (H S L percent) |
| 388 | "Return a color PERCENT lighter than the one defined in | 376 | "Make a color lighter by a specified amount. |
| 389 | H S L color-space. | 377 | Given a color defined in terms of hue, saturation, and luminance |
| 390 | 378 | \(arguments H, S, and L), return a color that is PERCENT lighter. | |
| 391 | Return a list (HUE, SATURATION, LUMINANCE), where HUE is in radians | 379 | Returns a list (HUE SATURATION LUMINANCE)." |
| 392 | and both SATURATION and LUMINANCE are between 0.0 and 1.0, | ||
| 393 | inclusive." | ||
| 394 | (list H S (color-clamp (+ L (/ percent 100.0))))) | 380 | (list H S (color-clamp (+ L (/ percent 100.0))))) |
| 395 | 381 | ||
| 396 | (defun color-lighten-name (name percent) | 382 | (defun color-lighten-name (name percent) |
| 397 | "Short hand to saturate COLOR by PERCENT. | 383 | "Make a color with a specified NAME lighter by PERCENT. |
| 398 | |||
| 399 | See `color-lighten-hsl'." | 384 | See `color-lighten-hsl'." |
| 400 | (apply 'color-rgb-to-hex | 385 | (apply 'color-rgb-to-hex |
| 401 | (apply 'color-hsl-to-rgb | 386 | (apply 'color-hsl-to-rgb |
| @@ -406,17 +391,14 @@ See `color-lighten-hsl'." | |||
| 406 | (list percent)))))) | 391 | (list percent)))))) |
| 407 | 392 | ||
| 408 | (defun color-darken-hsl (H S L percent) | 393 | (defun color-darken-hsl (H S L percent) |
| 409 | "Return a color PERCENT darker than the one defined in | 394 | "Make a color darker by a specified amount. |
| 410 | H S L color-space. | 395 | Given a color defined in terms of hue, saturation, and luminance |
| 411 | 396 | \(arguments H, S, and L), return a color that is PERCENT darker. | |
| 412 | Return a list (HUE, SATURATION, LUMINANCE), where HUE is in radians | 397 | Returns a list (HUE SATURATION LUMINANCE)." |
| 413 | and both SATURATION and LUMINANCE are between 0.0 and 1.0, | ||
| 414 | inclusive." | ||
| 415 | (color-lighten-hsl H S L (- percent))) | 398 | (color-lighten-hsl H S L (- percent))) |
| 416 | 399 | ||
| 417 | (defun color-darken-name (name percent) | 400 | (defun color-darken-name (name percent) |
| 418 | "Short hand to saturate COLOR by PERCENT. | 401 | "Make a color with a specified NAME darker by PERCENT. |
| 419 | |||
| 420 | See `color-darken-hsl'." | 402 | See `color-darken-hsl'." |
| 421 | (color-lighten-name name (- percent))) | 403 | (color-lighten-name name (- percent))) |
| 422 | 404 | ||
diff --git a/lisp/emacs-lisp/timer.el b/lisp/emacs-lisp/timer.el index 08b8ced9860..284c591fc61 100644 --- a/lisp/emacs-lisp/timer.el +++ b/lisp/emacs-lisp/timer.el | |||
| @@ -450,7 +450,7 @@ be detected. | |||
| 450 | (with-timeout-timers | 450 | (with-timeout-timers |
| 451 | (cons -with-timeout-timer- with-timeout-timers))) | 451 | (cons -with-timeout-timer- with-timeout-timers))) |
| 452 | (unwind-protect | 452 | (unwind-protect |
| 453 | ,@body | 453 | (progn ,@body) |
| 454 | (cancel-timer -with-timeout-timer-)))))) | 454 | (cancel-timer -with-timeout-timer-)))))) |
| 455 | ;; It is tempting to avoid the `if' altogether and instead run | 455 | ;; It is tempting to avoid the `if' altogether and instead run |
| 456 | ;; timeout-forms in the timer, just before throwing `timeout'. | 456 | ;; timeout-forms in the timer, just before throwing `timeout'. |
diff --git a/lisp/files.el b/lisp/files.el index 76a13f6cefd..c3f9e1ef1a0 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -22,7 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | ;;; Commentary: | 23 | ;;; Commentary: |
| 24 | 24 | ||
| 25 | ;; Defines most of Emacs'ss file- and directory-handling functions, | 25 | ;; Defines most of Emacs's file- and directory-handling functions, |
| 26 | ;; including basic file visiting, backup generation, link handling, | 26 | ;; including basic file visiting, backup generation, link handling, |
| 27 | ;; ITS-id version control, load- and write-hook handling, and the like. | 27 | ;; ITS-id version control, load- and write-hook handling, and the like. |
| 28 | 28 | ||
diff --git a/lisp/ido.el b/lisp/ido.el index ffa2604d4fb..4ab183b3207 100644 --- a/lisp/ido.el +++ b/lisp/ido.el | |||
| @@ -1720,7 +1720,7 @@ This function also adds a hook to the minibuffer." | |||
| 1720 | (ido-final-slash dir) | 1720 | (ido-final-slash dir) |
| 1721 | (not (ido-is-unc-host dir)) | 1721 | (not (ido-is-unc-host dir)) |
| 1722 | (file-directory-p dir) | 1722 | (file-directory-p dir) |
| 1723 | (> (nth 7 (file-attributes dir)) ido-max-directory-size)))) | 1723 | (> (nth 7 (file-attributes (file-truename dir))) ido-max-directory-size)))) |
| 1724 | 1724 | ||
| 1725 | (defun ido-set-current-directory (dir &optional subdir no-merge) | 1725 | (defun ido-set-current-directory (dir &optional subdir no-merge) |
| 1726 | ;; Set ido's current directory to DIR or DIR/SUBDIR | 1726 | ;; Set ido's current directory to DIR or DIR/SUBDIR |
diff --git a/lisp/net/newst-treeview.el b/lisp/net/newst-treeview.el index fc356a303e2..0bc7d6ad6ea 100644 --- a/lisp/net/newst-treeview.el +++ b/lisp/net/newst-treeview.el | |||
| @@ -1722,7 +1722,7 @@ return a nested list." | |||
| 1722 | 1722 | ||
| 1723 | (defun newsticker-group-move-feed (name group-name &optional no-update) | 1723 | (defun newsticker-group-move-feed (name group-name &optional no-update) |
| 1724 | "Move feed NAME to group GROUP-NAME. | 1724 | "Move feed NAME to group GROUP-NAME. |
| 1725 | Update teeview afterwards unless NO-UPDATE is non-nil." | 1725 | Update treeview afterwards unless NO-UPDATE is non-nil." |
| 1726 | (interactive | 1726 | (interactive |
| 1727 | (let ((completion-ignore-case t)) | 1727 | (let ((completion-ignore-case t)) |
| 1728 | (list (completing-read "Feed Name: " | 1728 | (list (completing-read "Feed Name: " |
diff --git a/src/ChangeLog b/src/ChangeLog index 85a4c829063..396240bb7b8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-10-05 Ikumi Keita <ikumi@ikumi.que.jp> (tiny change) | ||
| 2 | |||
| 3 | * minibuf.c (Fcompleting_read): Doc fix. (Bug#12555) | ||
| 4 | |||
| 1 | 2012-10-04 Eli Zaretskii <eliz@gnu.org> | 5 | 2012-10-04 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * w32.c (utime): Test for INVALID_HANDLE_VALUE, not for NULL, to | 7 | * w32.c (utime): Test for INVALID_HANDLE_VALUE, not for NULL, to |
diff --git a/src/minibuf.c b/src/minibuf.c index 6f9c61dcfb1..dd4ca34c3fb 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1703,7 +1703,7 @@ If INITIAL-INPUT is non-nil, insert it in the minibuffer initially, | |||
| 1703 | functions, which use one-indexing for POSITION.) This feature is | 1703 | functions, which use one-indexing for POSITION.) This feature is |
| 1704 | deprecated--it is best to pass nil for INITIAL-INPUT and supply the | 1704 | deprecated--it is best to pass nil for INITIAL-INPUT and supply the |
| 1705 | default value DEF instead. The user can yank the default value into | 1705 | default value DEF instead. The user can yank the default value into |
| 1706 | the minibuffer easily using \\[next-history-element]. | 1706 | the minibuffer easily using \\<minibuffer-local-map>\\[next-history-element]. |
| 1707 | 1707 | ||
| 1708 | HIST, if non-nil, specifies a history list and optionally the initial | 1708 | HIST, if non-nil, specifies a history list and optionally the initial |
| 1709 | position in the list. It can be a symbol, which is the history list | 1709 | position in the list. It can be a symbol, which is the history list |