diff options
| author | Glenn Morris | 2014-03-21 12:04:57 -0700 |
|---|---|---|
| committer | Glenn Morris | 2014-03-21 12:04:57 -0700 |
| commit | 5671dc515946c8a27b09d060bc34345d42a8fa6e (patch) | |
| tree | 54668c08879422e9c9d8c8c7a9e612d357971a49 | |
| parent | 26e91130ed0611a1074d0cac5880c065f9ba69c8 (diff) | |
| parent | 1e92a8a3aa7958ba699cd0430be4f23aff6c4c01 (diff) | |
| download | emacs-5671dc515946c8a27b09d060bc34345d42a8fa6e.tar.gz emacs-5671dc515946c8a27b09d060bc34345d42a8fa6e.zip | |
Merge from emacs-24; up to 2014-03-21T08:51:02Z!eliz@gnu.org
51 files changed, 309 insertions, 110 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index c2d6c8d7012..3bbcee76884 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2014-03-21 Martin Rudalics <rudalics@gmx.at> | ||
| 2 | |||
| 3 | * frames.texi (Size and Position): In `frame-resize-pixelwise' | ||
| 4 | description drop remark about frame maximization. | ||
| 5 | * windows.texi (Display Action Functions): Add description for | ||
| 6 | `display-buffer-no-window' and explain use of `allow-no-window' | ||
| 7 | alist entries. | ||
| 8 | |||
| 9 | 2014-03-21 Glenn Morris <rgm@gnu.org> | ||
| 10 | |||
| 11 | * commands.texi (Defining Commands): Copyedit re `interactive-only'. | ||
| 12 | |||
| 1 | 2014-03-20 Paul Eggert <eggert@cs.ucla.edu> | 13 | 2014-03-20 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 14 | ||
| 3 | * internals.texi (C Integer Types): Prefer 'false' and 'true' | 15 | * internals.texi (C Integer Types): Prefer 'false' and 'true' |
diff --git a/doc/lispref/commands.texi b/doc/lispref/commands.texi index 5c28522158a..198926a9a6a 100644 --- a/doc/lispref/commands.texi +++ b/doc/lispref/commands.texi | |||
| @@ -123,11 +123,10 @@ value for this property takes precedence over any @code{interactive} | |||
| 123 | form in the function body itself. This feature is seldom used. | 123 | form in the function body itself. This feature is seldom used. |
| 124 | 124 | ||
| 125 | @cindex @code{interactive-only} property | 125 | @cindex @code{interactive-only} property |
| 126 | Sometimes, a named command is only intended to be called | 126 | Sometimes, a function is only intended to be called interactively, |
| 127 | interactively, never directly from Lisp. In that case, give it a | 127 | never directly from Lisp. In that case, give the function a |
| 128 | non-@code{nil} @code{interactive-only} property. In that case, the | 128 | non-@code{nil} @code{interactive-only} property. This causes the |
| 129 | byte compiler will print a warning message if the command is called | 129 | byte compiler to warn if the command is called from Lisp. |
| 130 | from Lisp. | ||
| 131 | 130 | ||
| 132 | @menu | 131 | @menu |
| 133 | * Using Interactive:: General rules for @code{interactive}. | 132 | * Using Interactive:: General rules for @code{interactive}. |
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi index e896d1b4c04..b6513426909 100644 --- a/doc/lispref/frames.texi +++ b/doc/lispref/frames.texi | |||
| @@ -1163,10 +1163,7 @@ on the toolkit used: Dragging the frame border with the mouse is usually | |||
| 1163 | always done character-wise. Calling @code{set-frame-size} (see below) | 1163 | always done character-wise. Calling @code{set-frame-size} (see below) |
| 1164 | with arguments that do not specify the frame size as an integer multiple | 1164 | with arguments that do not specify the frame size as an integer multiple |
| 1165 | of its character size may be, however, either ignored or cause a | 1165 | of its character size may be, however, either ignored or cause a |
| 1166 | rounding (GTK+, Windows) or get accepted (Lucid, Motif). This also | 1166 | rounding (GTK+, Windows) or get accepted (Lucid, Motif). |
| 1167 | means that with some toolkits and a display whose size is not an | ||
| 1168 | integral multiple of your default font, you may have to set this to | ||
| 1169 | non-@code{nil} in order to fully maximize a frame. | ||
| 1170 | @end defopt | 1167 | @end defopt |
| 1171 | 1168 | ||
| 1172 | @defun set-frame-size frame width height pixelwise | 1169 | @defun set-frame-size frame width height pixelwise |
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 1b3fc377d61..e4177836fa8 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -2280,6 +2280,15 @@ window and displaying the buffer in that window. It can fail if all | |||
| 2280 | windows are dedicated to another buffer (@pxref{Dedicated Windows}). | 2280 | windows are dedicated to another buffer (@pxref{Dedicated Windows}). |
| 2281 | @end defun | 2281 | @end defun |
| 2282 | 2282 | ||
| 2283 | @defun display-buffer-no-window buffer alist | ||
| 2284 | If @var{alist} has a non-@code{nil} @code{allow-no-window} entry, then | ||
| 2285 | this function does not display @code{buffer}. This allows to override | ||
| 2286 | the default action and avoid displaying the buffer. It is assumed that | ||
| 2287 | when the caller specifies a non-@code{nil} @code{allow-no-window} value | ||
| 2288 | it can handle a @code{nil} value returned from @code{display-buffer} in | ||
| 2289 | this case. | ||
| 2290 | @end defun | ||
| 2291 | |||
| 2283 | To illustrate the use of action functions, consider the following | 2292 | To illustrate the use of action functions, consider the following |
| 2284 | example. | 2293 | example. |
| 2285 | 2294 | ||
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 8796cafa4d6..34021fd3d9b 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-03-21 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * ede.texi (ede-linux): | ||
| 4 | * vip.texi (New Bindings): Tiny copyedits. | ||
| 5 | |||
| 1 | 2014-03-18 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2014-03-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * vip.texi (Other Vi Commands): Adjust doc of C-j. | 8 | * vip.texi (Other Vi Commands): Adjust doc of C-j. |
diff --git a/doc/misc/ede.texi b/doc/misc/ede.texi index 954427d10bf..ab1e8a418da 100644 --- a/doc/misc/ede.texi +++ b/doc/misc/ede.texi | |||
| @@ -917,7 +917,7 @@ and has an optimized include file identification function. | |||
| 917 | 917 | ||
| 918 | Through the variables @code{project-linux-build-directory-default} and | 918 | Through the variables @code{project-linux-build-directory-default} and |
| 919 | @code{project-linux-architecture-default}, you can set the build | 919 | @code{project-linux-architecture-default}, you can set the build |
| 920 | directory and its architecture, resp. The default is to assume that | 920 | directory and its architecture, respectively. The default is to assume that |
| 921 | the build happens in the source directory and to auto-detect the | 921 | the build happens in the source directory and to auto-detect the |
| 922 | architecture; if the auto-detection fails, you will be asked. | 922 | architecture; if the auto-detection fails, you will be asked. |
| 923 | 923 | ||
diff --git a/doc/misc/vip.texi b/doc/misc/vip.texi index 07f12fdf882..25605aadcac 100644 --- a/doc/misc/vip.texi +++ b/doc/misc/vip.texi | |||
| @@ -569,7 +569,7 @@ in the current window, while @kbd{S} selects buffer in another window. | |||
| 569 | @kindex 1300 @kbd{X} (@code{vip-ctl-x-equivalent}) | 569 | @kindex 1300 @kbd{X} (@code{vip-ctl-x-equivalent}) |
| 570 | These keys will exit from vi mode and return to emacs mode temporarily. | 570 | These keys will exit from vi mode and return to emacs mode temporarily. |
| 571 | If you type @kbd{C} (@kbd{X}), Emacs will be in emacs mode and will believe | 571 | If you type @kbd{C} (@kbd{X}), Emacs will be in emacs mode and will believe |
| 572 | that you have typed @kbd{C-c} (@kbd{C-x}, resp.) in emacs mode. Moreover, | 572 | that you have typed @kbd{C-c} (@kbd{C-x}) in emacs mode. Moreover, |
| 573 | if the following character you type is an upper-case letter, then Emacs | 573 | if the following character you type is an upper-case letter, then Emacs |
| 574 | will believe that you have typed the corresponding control character. | 574 | will believe that you have typed the corresponding control character. |
| 575 | You will be in vi mode again after the command is executed. For example, | 575 | You will be in vi mode again after the command is executed. For example, |
| @@ -240,6 +240,7 @@ bound to <f11> and M-<f10>, respectively. | |||
| 240 | *** New hooks `focus-in-hook', `focus-out-hook'. | 240 | *** New hooks `focus-in-hook', `focus-out-hook'. |
| 241 | These are normal hooks run when an Emacs frame gains or loses input focus. | 241 | These are normal hooks run when an Emacs frame gains or loses input focus. |
| 242 | 242 | ||
| 243 | +++ | ||
| 243 | *** Emacs can now change frame sizes in units of pixels, rather than | 244 | *** Emacs can now change frame sizes in units of pixels, rather than |
| 244 | text rows or columns. When maximizing a frame or making it fullscreen, | 245 | text rows or columns. When maximizing a frame or making it fullscreen, |
| 245 | remaining extra pixels are no longer given to the minibuffer, the rightmost | 246 | remaining extra pixels are no longer given to the minibuffer, the rightmost |
| @@ -248,6 +249,7 @@ areas of the frame's windows. If the new option `frame-resize-pixelwise' | |||
| 248 | is non-nil, all frame size changes happen pixelwise and set the | 249 | is non-nil, all frame size changes happen pixelwise and set the |
| 249 | corresponding size hints for the window manager. | 250 | corresponding size hints for the window manager. |
| 250 | 251 | ||
| 252 | +++ | ||
| 251 | *** Emacs can now change window sizes in units of pixels. | 253 | *** Emacs can now change window sizes in units of pixels. |
| 252 | Mouse-dragging a mode line or window divider now changes the size of | 254 | Mouse-dragging a mode line or window divider now changes the size of |
| 253 | adjacent windows pixelwise. If the new option `window-resize-pixelwise' | 255 | adjacent windows pixelwise. If the new option `window-resize-pixelwise' |
| @@ -261,6 +263,7 @@ or values to be returned, in pixels instead of lines/columns. | |||
| 261 | count partially visible lines or columns if called with a nil PIXELWISE | 263 | count partially visible lines or columns if called with a nil PIXELWISE |
| 262 | argument. | 264 | argument. |
| 263 | 265 | ||
| 266 | +++ | ||
| 264 | *** Emacs can now draw dividers between adjacent windows. To put | 267 | *** Emacs can now draw dividers between adjacent windows. To put |
| 265 | dividers between side-by-side/vertically stacked windows customize the | 268 | dividers between side-by-side/vertically stacked windows customize the |
| 266 | frame parameters `right-divider-width' and `bottom-divider-width' to | 269 | frame parameters `right-divider-width' and `bottom-divider-width' to |
| @@ -271,25 +274,30 @@ the appearance of dividers by customizing the faces `window-divider', | |||
| 271 | two are useful to provide a 3D effect, or to better distinguish dividers | 274 | two are useful to provide a 3D effect, or to better distinguish dividers |
| 272 | from surrounding display objects. | 275 | from surrounding display objects. |
| 273 | 276 | ||
| 277 | +++ | ||
| 274 | *** New functions are provided to return the pixel sizes of window | 278 | *** New functions are provided to return the pixel sizes of window |
| 275 | components, namely `window-scroll-bar-width', `window-mode-line-height' | 279 | components, namely `window-scroll-bar-width', `window-mode-line-height' |
| 276 | `window-header-line-height', `window-right-divider-width' and | 280 | `window-header-line-height', `window-right-divider-width' and |
| 277 | `window-bottom-divider-width'. | 281 | `window-bottom-divider-width'. |
| 278 | 282 | ||
| 283 | +++ | ||
| 279 | *** The new function `window-text-pixel-size' returns the size of the | 284 | *** The new function `window-text-pixel-size' returns the size of the |
| 280 | text of a window's buffer in pixels. This allows functions like | 285 | text of a window's buffer in pixels. This allows functions like |
| 281 | `fit-frame-to-buffer' and `fit-window-to-buffer' to accurately fit a | 286 | `fit-frame-to-buffer' and `fit-window-to-buffer' to accurately fit a |
| 282 | window to its buffer as it will be displayed. | 287 | window to its buffer as it will be displayed. |
| 283 | 288 | ||
| 289 | +++ | ||
| 284 | *** `fit-window-to-buffer' can now resize windows in both dimensions. | 290 | *** `fit-window-to-buffer' can now resize windows in both dimensions. |
| 285 | This behavior is controlled by the new option | 291 | This behavior is controlled by the new option |
| 286 | `fit-window-to-buffer-horizontally'. The new option | 292 | `fit-window-to-buffer-horizontally'. The new option |
| 287 | `fit-frame-to-buffer' allows to fit the window's frame to its buffer. | 293 | `fit-frame-to-buffer' allows to fit the window's frame to its buffer. |
| 288 | 294 | ||
| 295 | +++ | ||
| 289 | *** `fit-frame-to-buffer' now fits frames in both dimensions. The new | 296 | *** `fit-frame-to-buffer' now fits frames in both dimensions. The new |
| 290 | options `fit-frame-to-buffer-margins' and `fit-frame-to-buffer-sizes' | 297 | options `fit-frame-to-buffer-margins' and `fit-frame-to-buffer-sizes' |
| 291 | control the size of the frame and its position on screen. | 298 | control the size of the frame and its position on screen. |
| 292 | 299 | ||
| 300 | --- | ||
| 293 | *** Temp Buffer Resize Mode can now adjust height and width of windows | 301 | *** Temp Buffer Resize Mode can now adjust height and width of windows |
| 294 | and frames. `temp-buffer-resize-mode' is now able to adjust the height | 302 | and frames. `temp-buffer-resize-mode' is now able to adjust the height |
| 295 | and the width of a window displaying a temporary buffer. The new option | 303 | and the width of a window displaying a temporary buffer. The new option |
| @@ -328,9 +336,11 @@ buffer. | |||
| 328 | `display-buffer' choose or make a window at the bottom of the selected | 336 | `display-buffer' choose or make a window at the bottom of the selected |
| 329 | frame. | 337 | frame. |
| 330 | 338 | ||
| 339 | +++ | ||
| 331 | *** New display action function `display-buffer-no-window' to not | 340 | *** New display action function `display-buffer-no-window' to not |
| 332 | display the buffer in a window. | 341 | display the buffer in a window. |
| 333 | 342 | ||
| 343 | +++ | ||
| 334 | *** New display action alist entry `allow-no-window' to indicate the | 344 | *** New display action alist entry `allow-no-window' to indicate the |
| 335 | caller of `display-buffer' is ready to handle the case of not | 345 | caller of `display-buffer' is ready to handle the case of not |
| 336 | displaying the buffer in a window. | 346 | displaying the buffer in a window. |
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 61f173784a7..9fc13b37772 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,51 @@ | |||
| 1 | 2014-03-21 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp.el (tramp-methods): Add docstring for `tramp-login-env' | ||
| 4 | and `tramp-copy-env'. | ||
| 5 | |||
| 6 | * net/tramp-sh.el (tramp-methods) <sudo>: Add `tramp-login-env'. | ||
| 7 | (tramp-maybe-open-connection): Handle `tramp-login-env'. | ||
| 8 | |||
| 9 | 2014-03-21 Glenn Morris <rgm@gnu.org> | ||
| 10 | |||
| 11 | * electric.el (electric-indent-post-self-insert-function): Add doc. | ||
| 12 | |||
| 13 | 2014-03-21 Dmitry Gutov <dgutov@yandex.ru> | ||
| 14 | |||
| 15 | * emacs-lisp/package.el (package-compute-transaction): | ||
| 16 | Use `version-list-<=' to compare the requirement version against | ||
| 17 | the version of package already to be installed. Update the error | ||
| 18 | message. (Bug#16826) | ||
| 19 | |||
| 20 | * progmodes/ruby-mode.el (ruby-smie-rules): | ||
| 21 | Add indentation rule for ` @ '. (Bug#17050) | ||
| 22 | |||
| 23 | 2014-03-21 Juanma Barranquero <lekktu@gmail.com> | ||
| 24 | |||
| 25 | * align.el (align-regexp): Remove superfluous backslash. | ||
| 26 | |||
| 27 | * ffap.el (ffap-ftp-default-user, ffap-url-regexp) | ||
| 28 | (ffap-pass-wildcards-to-dired, dired-at-point-require-prefix) | ||
| 29 | (ffap-rfc-path, ffap-ftp-sans-slash-regexp, ffap-menu-regexp): | ||
| 30 | Fix docstring typos. | ||
| 31 | (ffap-next): Use C-u in docstring. | ||
| 32 | (ffap-machine-p, ffap-list-env, ffap-alist, ffap-alist) | ||
| 33 | (ffap-string-at-point-mode-alist, ffap-menu, ffap-menu-ask): | ||
| 34 | Remove superfluous backslashes. | ||
| 35 | (ffap-string-at-point): Reflow docstring. | ||
| 36 | |||
| 37 | * server.el (server-host): Reflow docstring. | ||
| 38 | (server-unload-function): Fix docstring typo. | ||
| 39 | (server-eval-at): Remove superfluous backslash. | ||
| 40 | |||
| 41 | * skeleton.el (skeleton-insert): Remove superfluous backslash. | ||
| 42 | (skeleton-insert): Doc fix. | ||
| 43 | (skeleton-insert): Reflow docstring. | ||
| 44 | |||
| 45 | * term/tty-colors.el (tty-color-alist, tty-modify-color-alist) | ||
| 46 | (tty-color-approximate, tty-color-by-index, tty-color-values) | ||
| 47 | (tty-color-desc): Remove superfluous backslashes. | ||
| 48 | |||
| 1 | 2014-03-21 Glenn Morris <rgm@gnu.org> | 49 | 2014-03-21 Glenn Morris <rgm@gnu.org> |
| 2 | 50 | ||
| 3 | * cus-start.el (history-length): Bump :version. | 51 | * cus-start.el (history-length): Bump :version. |
diff --git a/lisp/align.el b/lisp/align.el index 1efc6e6505b..9038adf624c 100644 --- a/lisp/align.el +++ b/lisp/align.el | |||
| @@ -937,7 +937,7 @@ throughout the line. | |||
| 937 | See `align-rules-list' for more information about these options. | 937 | See `align-rules-list' for more information about these options. |
| 938 | 938 | ||
| 939 | The non-interactive form of the previous example would look something like: | 939 | The non-interactive form of the previous example would look something like: |
| 940 | \(align-regexp (point-min) (point-max) \"\\\\(\\\\s-*\\\\)(\") | 940 | (align-regexp (point-min) (point-max) \"\\\\(\\\\s-*\\\\)(\") |
| 941 | 941 | ||
| 942 | This function is a nothing more than a small wrapper that helps you | 942 | This function is a nothing more than a small wrapper that helps you |
| 943 | construct a rule to pass to `align-region', which does the real work." | 943 | construct a rule to pass to `align-region', which does the real work." |
diff --git a/lisp/electric.el b/lisp/electric.el index 4e24101dd6a..52b0595f7d9 100644 --- a/lisp/electric.el +++ b/lisp/electric.el | |||
| @@ -228,6 +228,10 @@ not try to reindent lines. It is normally better to make the major | |||
| 228 | mode set `electric-indent-inhibit', but this can be used as a workaround.") | 228 | mode set `electric-indent-inhibit', but this can be used as a workaround.") |
| 229 | 229 | ||
| 230 | (defun electric-indent-post-self-insert-function () | 230 | (defun electric-indent-post-self-insert-function () |
| 231 | "Function that `electric-indent-mode' adds to `post-self-insert-hook'. | ||
| 232 | This indents if the hook `electric-indent-functions' returns non-nil, | ||
| 233 | or if a member of `electric-indent-chars' was typed; but not in a string | ||
| 234 | or comment." | ||
| 231 | ;; FIXME: This reindents the current line, but what we really want instead is | 235 | ;; FIXME: This reindents the current line, but what we really want instead is |
| 232 | ;; to reindent the whole affected text. That's the current line for simple | 236 | ;; to reindent the whole affected text. That's the current line for simple |
| 233 | ;; cases, but not all cases. We do take care of the newline case in an | 237 | ;; cases, but not all cases. We do take care of the newline case in an |
| @@ -286,7 +290,8 @@ mode set `electric-indent-inhibit', but this can be used as a workaround.") | |||
| 286 | (let ((electric-indent-mode nil)) | 290 | (let ((electric-indent-mode nil)) |
| 287 | (newline arg 'interactive))) | 291 | (newline arg 'interactive))) |
| 288 | 292 | ||
| 289 | ;;;###autoload(define-key global-map "\C-j" 'electric-newline-and-maybe-indent) | 293 | ;;;###autoload |
| 294 | (define-key global-map "\C-j" 'electric-newline-and-maybe-indent) | ||
| 290 | ;;;###autoload | 295 | ;;;###autoload |
| 291 | (defun electric-newline-and-maybe-indent () | 296 | (defun electric-newline-and-maybe-indent () |
| 292 | "Insert a newline. | 297 | "Insert a newline. |
diff --git a/lisp/emacs-lisp/package.el b/lisp/emacs-lisp/package.el index e0d1c99d369..ae2c2862887 100644 --- a/lisp/emacs-lisp/package.el +++ b/lisp/emacs-lisp/package.el | |||
| @@ -923,10 +923,10 @@ not included in this list." | |||
| 923 | (setq already pkg))) | 923 | (setq already pkg))) |
| 924 | (cond | 924 | (cond |
| 925 | (already | 925 | (already |
| 926 | (if (version-list-< next-version (package-desc-version already)) | 926 | (if (version-list-<= next-version (package-desc-version already)) |
| 927 | ;; Move to front, so it gets installed early enough (bug#14082). | 927 | ;; Move to front, so it gets installed early enough (bug#14082). |
| 928 | (setq packages (cons already (delq already packages))) | 928 | (setq packages (cons already (delq already packages))) |
| 929 | (error "Need package `%s-%s', but only %s is available" | 929 | (error "Need package `%s-%s', but only %s is being installed" |
| 930 | next-pkg (package-version-join next-version) | 930 | next-pkg (package-version-join next-version) |
| 931 | (package-version-join (package-desc-version already))))) | 931 | (package-version-join (package-desc-version already))))) |
| 932 | 932 | ||
diff --git a/lisp/ffap.el b/lisp/ffap.el index 7051273a681..119e0ad3078 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el | |||
| @@ -164,9 +164,9 @@ schemes (e.g. \"ftp\"); in that case, only convert those URLs." | |||
| 164 | :version "24.3") | 164 | :version "24.3") |
| 165 | 165 | ||
| 166 | (defcustom ffap-ftp-default-user "anonymous" | 166 | (defcustom ffap-ftp-default-user "anonymous" |
| 167 | "User name in ftp file names generated by `ffap-host-to-path'. | 167 | "User name in FTP file names generated by `ffap-host-to-path'. |
| 168 | Note this name may be omitted if it equals the default | 168 | Note this name may be omitted if it equals the default |
| 169 | \(either `efs-default-user' or `ange-ftp-default-user'\)." | 169 | \(either `efs-default-user' or `ange-ftp-default-user')." |
| 170 | :type 'string | 170 | :type 'string |
| 171 | :group 'ffap) | 171 | :group 'ffap) |
| 172 | 172 | ||
| @@ -185,7 +185,7 @@ Note this name may be omitted if it equals the default | |||
| 185 | "\\|" | 185 | "\\|" |
| 186 | "\\(ftp\\|https?\\|telnet\\|gopher\\|www\\|wais\\)://" ; needs host | 186 | "\\(ftp\\|https?\\|telnet\\|gopher\\|www\\|wais\\)://" ; needs host |
| 187 | "\\)") | 187 | "\\)") |
| 188 | "Regexp matching the beginning of a URI, for FFAP. | 188 | "Regexp matching the beginning of a URI, for ffap. |
| 189 | If the value is nil, disable URL-matching features in ffap.") | 189 | If the value is nil, disable URL-matching features in ffap.") |
| 190 | 190 | ||
| 191 | (defcustom ffap-foo-at-bar-prefix "mailto" | 191 | (defcustom ffap-foo-at-bar-prefix "mailto" |
| @@ -228,7 +228,7 @@ it passes it on to `dired'." | |||
| 228 | :group 'ffap) | 228 | :group 'ffap) |
| 229 | 229 | ||
| 230 | (defcustom ffap-pass-wildcards-to-dired nil | 230 | (defcustom ffap-pass-wildcards-to-dired nil |
| 231 | "If non-nil, pass filenames matching `ffap-dired-wildcards' to dired." | 231 | "If non-nil, pass filenames matching `ffap-dired-wildcards' to Dired." |
| 232 | :type 'boolean | 232 | :type 'boolean |
| 233 | :group 'ffap) | 233 | :group 'ffap) |
| 234 | 234 | ||
| @@ -291,8 +291,8 @@ For a fancy alternative, get `ffap-url.el'." | |||
| 291 | 291 | ||
| 292 | (defcustom dired-at-point-require-prefix nil | 292 | (defcustom dired-at-point-require-prefix nil |
| 293 | "If non-nil, reverse the prefix argument to `dired-at-point'. | 293 | "If non-nil, reverse the prefix argument to `dired-at-point'. |
| 294 | This is nil so neophytes notice FFAP. Experts may prefer to | 294 | This is nil so neophytes notice ffap. Experts may prefer to |
| 295 | disable FFAP most of the time." | 295 | disable ffap most of the time." |
| 296 | :type 'boolean | 296 | :type 'boolean |
| 297 | :group 'ffap | 297 | :group 'ffap |
| 298 | :version "20.3") | 298 | :version "20.3") |
| @@ -343,7 +343,7 @@ Only considers strings that match `ffap-next-regexp'." | |||
| 343 | "Search buffer for next file or URL, and run ffap. | 343 | "Search buffer for next file or URL, and run ffap. |
| 344 | Optional argument BACK says to search backwards. | 344 | Optional argument BACK says to search backwards. |
| 345 | Optional argument WRAP says to try wrapping around if necessary. | 345 | Optional argument WRAP says to try wrapping around if necessary. |
| 346 | Interactively: use a single prefix to search backwards, | 346 | Interactively: use a single prefix \\[universal-argument] to search backwards, |
| 347 | double prefix to wrap forward, triple to wrap backwards. | 347 | double prefix to wrap forward, triple to wrap backwards. |
| 348 | Actual search is done by the function `ffap-next-guess'." | 348 | Actual search is done by the function `ffap-next-guess'." |
| 349 | (interactive | 349 | (interactive |
| @@ -413,7 +413,7 @@ See `mail-extr.el' for the known domains." | |||
| 413 | Depending on the domain (none, known, or unknown), follow the strategy | 413 | Depending on the domain (none, known, or unknown), follow the strategy |
| 414 | named by the variable `ffap-machine-p-local', `ffap-machine-p-known', | 414 | named by the variable `ffap-machine-p-local', `ffap-machine-p-known', |
| 415 | or `ffap-machine-p-unknown'. Pinging uses `open-network-stream'. | 415 | or `ffap-machine-p-unknown'. Pinging uses `open-network-stream'. |
| 416 | Optional SERVICE specifies the port used \(default \"discard\"\). | 416 | Optional SERVICE specifies the port used (default \"discard\"). |
| 417 | Optional QUIET flag suppresses the \"Pinging...\" message. | 417 | Optional QUIET flag suppresses the \"Pinging...\" message. |
| 418 | Optional STRATEGY overrides the three variables above. | 418 | Optional STRATEGY overrides the three variables above. |
| 419 | Returned values: | 419 | Returned values: |
| @@ -642,7 +642,7 @@ Looks at `ffap-ftp-default-user', returns \"\" for \"localhost\"." | |||
| 642 | 642 | ||
| 643 | (defun ffap-list-env (env &optional empty) | 643 | (defun ffap-list-env (env &optional empty) |
| 644 | "Return a list of strings parsed from environment variable ENV. | 644 | "Return a list of strings parsed from environment variable ENV. |
| 645 | Optional EMPTY is the default list if \(getenv ENV\) is undefined, and | 645 | Optional EMPTY is the default list if (getenv ENV) is undefined, and |
| 646 | also is substituted for the first empty-string component, if there is one. | 646 | also is substituted for the first empty-string component, if there is one. |
| 647 | Uses `path-separator' to separate the path into substrings." | 647 | Uses `path-separator' to separate the path into substrings." |
| 648 | ;; We cannot use parse-colon-path (files.el), since it kills | 648 | ;; We cannot use parse-colon-path (files.el), since it kills |
| @@ -787,12 +787,12 @@ This uses `ffap-file-exists-string', which may try adding suffixes from | |||
| 787 | . ffap-rfc) ; "100% RFC2100 compliant" | 787 | . ffap-rfc) ; "100% RFC2100 compliant" |
| 788 | (dired-mode . ffap-dired) ; maybe in a subdirectory | 788 | (dired-mode . ffap-dired) ; maybe in a subdirectory |
| 789 | ) | 789 | ) |
| 790 | "Alist of \(KEY . FUNCTION\) pairs parsed by `ffap-file-at-point'. | 790 | "Alist of (KEY . FUNCTION) pairs parsed by `ffap-file-at-point'. |
| 791 | If string NAME at point (maybe \"\") is not a file or URL, these pairs | 791 | If string NAME at point (maybe \"\") is not a file or URL, these pairs |
| 792 | specify actions to try creating such a string. A pair matches if either | 792 | specify actions to try creating such a string. A pair matches if either |
| 793 | KEY is a symbol, and it equals `major-mode', or | 793 | KEY is a symbol, and it equals `major-mode', or |
| 794 | KEY is a string, it should match NAME as a regexp. | 794 | KEY is a string, it should match NAME as a regexp. |
| 795 | On a match, \(FUNCTION NAME\) is called and should return a file, an | 795 | On a match, (FUNCTION NAME) is called and should return a file, an |
| 796 | URL, or nil. If nil, search the alist for further matches.") | 796 | URL, or nil. If nil, search the alist for further matches.") |
| 797 | 797 | ||
| 798 | (put 'ffap-alist 'risky-local-variable t) | 798 | (put 'ffap-alist 'risky-local-variable t) |
| @@ -980,7 +980,7 @@ If t, `ffap-tex-init' will initialize this when needed.") | |||
| 980 | (defcustom ffap-rfc-path | 980 | (defcustom ffap-rfc-path |
| 981 | (concat (ffap-host-to-filename "ftp.rfc-editor.org") "/in-notes/rfc%s.txt") | 981 | (concat (ffap-host-to-filename "ftp.rfc-editor.org") "/in-notes/rfc%s.txt") |
| 982 | "A `format' string making a filename for RFC documents. | 982 | "A `format' string making a filename for RFC documents. |
| 983 | This can be an ange-ftp or tramp remote filename to download, or | 983 | This can be an ange-ftp or Tramp remote filename to download, or |
| 984 | a local filename if you have full set of RFCs locally. See also | 984 | a local filename if you have full set of RFCs locally. See also |
| 985 | `ffap-rfc-directories'." | 985 | `ffap-rfc-directories'." |
| 986 | :type 'string | 986 | :type 'string |
| @@ -1018,8 +1018,8 @@ If a given RFC isn't in these then `ffap-rfc-path' is offered." | |||
| 1018 | ;; Mathematica paths: allow backquotes | 1018 | ;; Mathematica paths: allow backquotes |
| 1019 | (math-mode ",-:$+<>@-Z_[:lower:]~`" "<" "@>;.,!?`:") | 1019 | (math-mode ",-:$+<>@-Z_[:lower:]~`" "<" "@>;.,!?`:") |
| 1020 | ) | 1020 | ) |
| 1021 | "Alist of \(MODE CHARS BEG END\), where MODE is a symbol, | 1021 | "Alist of (MODE CHARS BEG END), where MODE is a symbol, |
| 1022 | possibly a major-mode name, or one of the symbol | 1022 | possibly a major-mode name, or one of the symbols |
| 1023 | `file', `url', `machine', and `nocolon'. | 1023 | `file', `url', `machine', and `nocolon'. |
| 1024 | Function `ffap-string-at-point' uses the data fields as follows: | 1024 | Function `ffap-string-at-point' uses the data fields as follows: |
| 1025 | 1. find a maximal string of CHARS around point, | 1025 | 1. find a maximal string of CHARS around point, |
| @@ -1032,8 +1032,8 @@ Function `ffap-string-at-point' uses the data fields as follows: | |||
| 1032 | 1032 | ||
| 1033 | (defun ffap-string-at-point (&optional mode) | 1033 | (defun ffap-string-at-point (&optional mode) |
| 1034 | "Return a string of characters from around point. | 1034 | "Return a string of characters from around point. |
| 1035 | MODE (defaults to value of `major-mode') is a symbol used to look up string | 1035 | MODE (defaults to value of `major-mode') is a symbol used to look up |
| 1036 | syntax parameters in `ffap-string-at-point-mode-alist'. | 1036 | string syntax parameters in `ffap-string-at-point-mode-alist'. |
| 1037 | If MODE is not found, we use `file' instead of MODE. | 1037 | If MODE is not found, we use `file' instead of MODE. |
| 1038 | If the region is active, return a string from the region. | 1038 | If the region is active, return a string from the region. |
| 1039 | Sets the variable `ffap-string-at-point' and the variable | 1039 | Sets the variable `ffap-string-at-point' and the variable |
| @@ -1143,7 +1143,7 @@ The two subexpressions are the KEY and VALUE.") | |||
| 1143 | ;; Icky regexp avoids: default: 123: foo::bar cs:pub | 1143 | ;; Icky regexp avoids: default: 123: foo::bar cs:pub |
| 1144 | ;; It does match on: mic@cs: cs:/pub mathcs.emory.edu: (point at end) | 1144 | ;; It does match on: mic@cs: cs:/pub mathcs.emory.edu: (point at end) |
| 1145 | "\\`\\([^:@]+@[^:@]+:\\|[^@.:]+\\.[^@:]+:\\|[^:]+:[~/]\\)\\([^:]\\|\\'\\)") | 1145 | "\\`\\([^:@]+@[^:@]+:\\|[^@.:]+\\.[^@:]+:\\|[^:]+:[~/]\\)\\([^:]\\|\\'\\)") |
| 1146 | "Strings matching this are coerced to ftp file names by ffap. | 1146 | "Strings matching this are coerced to FTP file names by ffap. |
| 1147 | That is, ffap just prepends \"/\". Set to nil to disable.") | 1147 | That is, ffap just prepends \"/\". Set to nil to disable.") |
| 1148 | 1148 | ||
| 1149 | (defun ffap-file-at-point () | 1149 | (defun ffap-file-at-point () |
| @@ -1445,7 +1445,7 @@ and the functions `ffap-file-at-point' and `ffap-url-at-point'." | |||
| 1445 | (defcustom ffap-menu-regexp nil | 1445 | (defcustom ffap-menu-regexp nil |
| 1446 | "If non-nil, regexp overriding `ffap-next-regexp' in `ffap-menu'. | 1446 | "If non-nil, regexp overriding `ffap-next-regexp' in `ffap-menu'. |
| 1447 | Make this more restrictive for faster menu building. | 1447 | Make this more restrictive for faster menu building. |
| 1448 | For example, try \":/\" for URL (and some ftp) references." | 1448 | For example, try \":/\" for URL (and some FTP) references." |
| 1449 | :type '(choice (const nil) regexp) | 1449 | :type '(choice (const nil) regexp) |
| 1450 | :group 'ffap) | 1450 | :group 'ffap) |
| 1451 | 1451 | ||
| @@ -1465,7 +1465,7 @@ These properties may be used to fontify the menu references.") | |||
| 1465 | "Put up a menu of files and URLs mentioned in this buffer. | 1465 | "Put up a menu of files and URLs mentioned in this buffer. |
| 1466 | Then set mark, jump to choice, and try to fetch it. The menu is | 1466 | Then set mark, jump to choice, and try to fetch it. The menu is |
| 1467 | cached in `ffap-menu-alist', and rebuilt by `ffap-menu-rescan'. | 1467 | cached in `ffap-menu-alist', and rebuilt by `ffap-menu-rescan'. |
| 1468 | The optional RESCAN argument \(a prefix, interactively\) forces | 1468 | The optional RESCAN argument (a prefix, interactively) forces |
| 1469 | a rebuild. Searches with `ffap-menu-regexp'." | 1469 | a rebuild. Searches with `ffap-menu-regexp'." |
| 1470 | (interactive "P") | 1470 | (interactive "P") |
| 1471 | ;; (require 'imenu) -- no longer used, but roughly emulated | 1471 | ;; (require 'imenu) -- no longer used, but roughly emulated |
| @@ -1498,7 +1498,7 @@ a rebuild. Searches with `ffap-menu-regexp'." | |||
| 1498 | 1498 | ||
| 1499 | (defun ffap-menu-ask (title alist cont) | 1499 | (defun ffap-menu-ask (title alist cont) |
| 1500 | "Prompt from a menu of choices, and then apply some action. | 1500 | "Prompt from a menu of choices, and then apply some action. |
| 1501 | Arguments are TITLE, ALIST, and CONT \(a continuation function\). | 1501 | Arguments are TITLE, ALIST, and CONT (a continuation function). |
| 1502 | This uses either a menu or the minibuffer depending on invocation. | 1502 | This uses either a menu or the minibuffer depending on invocation. |
| 1503 | The TITLE string is used as either the prompt or menu title. | 1503 | The TITLE string is used as either the prompt or menu title. |
| 1504 | Each ALIST entry looks like (STRING . DATA) and defines one choice. | 1504 | Each ALIST entry looks like (STRING . DATA) and defines one choice. |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 245d4f1ae8b..106c14805d5 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -227,6 +227,8 @@ detected as prompt when being sent on echoing hosts, therefore.") | |||
| 227 | '("sudo" | 227 | '("sudo" |
| 228 | (tramp-login-program "sudo") | 228 | (tramp-login-program "sudo") |
| 229 | (tramp-login-args (("-u" "%u") ("-s") ("-H") ("-p" "Password:"))) | 229 | (tramp-login-args (("-u" "%u") ("-s") ("-H") ("-p" "Password:"))) |
| 230 | ;; Local $SHELL could be a nasty one, like zsh or fish. Let's override it. | ||
| 231 | (tramp-login-env (("SHELL") ("/bin/sh"))) | ||
| 230 | (tramp-remote-shell "/bin/sh") | 232 | (tramp-remote-shell "/bin/sh") |
| 231 | (tramp-remote-shell-args ("-c")) | 233 | (tramp-remote-shell-args ("-c")) |
| 232 | (tramp-connection-timeout 10))) | 234 | (tramp-connection-timeout 10))) |
| @@ -4492,6 +4494,9 @@ connection if a previous connection has died for some reason." | |||
| 4492 | (login-args | 4494 | (login-args |
| 4493 | (tramp-get-method-parameter | 4495 | (tramp-get-method-parameter |
| 4494 | l-method 'tramp-login-args)) | 4496 | l-method 'tramp-login-args)) |
| 4497 | (login-env | ||
| 4498 | (tramp-get-method-parameter | ||
| 4499 | l-method 'tramp-login-env)) | ||
| 4495 | (async-args | 4500 | (async-args |
| 4496 | (tramp-get-method-parameter | 4501 | (tramp-get-method-parameter |
| 4497 | l-method 'tramp-async-args)) | 4502 | l-method 'tramp-async-args)) |
| @@ -4549,6 +4554,24 @@ connection if a previous connection has died for some reason." | |||
| 4549 | tramp-current-user (or g-user l-user) | 4554 | tramp-current-user (or g-user l-user) |
| 4550 | tramp-current-host (or g-host l-host)) | 4555 | tramp-current-host (or g-host l-host)) |
| 4551 | 4556 | ||
| 4557 | ;; Add login environment. | ||
| 4558 | (when login-env | ||
| 4559 | (setq | ||
| 4560 | login-env | ||
| 4561 | (mapcar | ||
| 4562 | (lambda (x) | ||
| 4563 | (setq x (mapcar (lambda (y) (format-spec y spec)) x)) | ||
| 4564 | (unless (member "" x) (mapconcat 'identity x " "))) | ||
| 4565 | login-env)) | ||
| 4566 | (while login-env | ||
| 4567 | (setq command | ||
| 4568 | (format | ||
| 4569 | "%s=%s %s" | ||
| 4570 | (pop login-env) | ||
| 4571 | (tramp-shell-quote-argument (pop login-env)) | ||
| 4572 | command))) | ||
| 4573 | (setq command (concat "env " command))) | ||
| 4574 | |||
| 4552 | ;; Replace `login-args' place holders. | 4575 | ;; Replace `login-args' place holders. |
| 4553 | (setq | 4576 | (setq |
| 4554 | l-host (or l-host "") | 4577 | l-host (or l-host "") |
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 5ff68e0f0f9..b9b64ed70f8 100644 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -230,6 +230,9 @@ pair of the form (KEY VALUE). The following KEYs are defined: | |||
| 230 | `tramp-make-tramp-temp-file'. \"%k\" indicates the keep-date | 230 | `tramp-make-tramp-temp-file'. \"%k\" indicates the keep-date |
| 231 | parameter of a program, if exists. \"%c\" adds additional | 231 | parameter of a program, if exists. \"%c\" adds additional |
| 232 | `tramp-ssh-controlmaster-options' options for the first hop. | 232 | `tramp-ssh-controlmaster-options' options for the first hop. |
| 233 | * `tramp-login-env' | ||
| 234 | A list of environment variables and their values, which will | ||
| 235 | be set when calling `tramp-login-program'. | ||
| 233 | * `tramp-async-args' | 236 | * `tramp-async-args' |
| 234 | When an asynchronous process is started, we know already that | 237 | When an asynchronous process is started, we know already that |
| 235 | the connection works. Therefore, we can pass additional | 238 | the connection works. Therefore, we can pass additional |
| @@ -242,6 +245,9 @@ pair of the form (KEY VALUE). The following KEYs are defined: | |||
| 242 | * `tramp-copy-args' | 245 | * `tramp-copy-args' |
| 243 | This specifies the list of parameters to pass to the above mentioned | 246 | This specifies the list of parameters to pass to the above mentioned |
| 244 | program, the hints for `tramp-login-args' also apply here. | 247 | program, the hints for `tramp-login-args' also apply here. |
| 248 | * `tramp-copy-env' | ||
| 249 | A list of environment variables and their values, which will | ||
| 250 | be set when calling `tramp-copy-program'. | ||
| 245 | * `tramp-copy-keep-date' | 251 | * `tramp-copy-keep-date' |
| 246 | This specifies whether the copying program when the preserves the | 252 | This specifies whether the copying program when the preserves the |
| 247 | timestamp of the original file. | 253 | timestamp of the original file. |
diff --git a/lisp/nxml/nxml-enc.el b/lisp/nxml/nxml-enc.el index 81de932c29f..1f94e36d75c 100644 --- a/lisp/nxml/nxml-enc.el +++ b/lisp/nxml/nxml-enc.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/nxml-glyph.el b/lisp/nxml/nxml-glyph.el index 36ffc376f4d..f05beeaae70 100644 --- a/lisp/nxml/nxml-glyph.el +++ b/lisp/nxml/nxml-glyph.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/nxml-maint.el b/lisp/nxml/nxml-maint.el index 26a97d34b19..7fd3372cc5f 100644 --- a/lisp/nxml/nxml-maint.el +++ b/lisp/nxml/nxml-maint.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 79ff5b48e24..0daf62d804f 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003-2004, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003-2004, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/nxml-ns.el b/lisp/nxml/nxml-ns.el index 8dee3e46340..1087dd1b435 100644 --- a/lisp/nxml/nxml-ns.el +++ b/lisp/nxml/nxml-ns.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/nxml-outln.el b/lisp/nxml/nxml-outln.el index 05904eacc30..e4b8fc79862 100644 --- a/lisp/nxml/nxml-outln.el +++ b/lisp/nxml/nxml-outln.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2004, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2004, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/nxml-parse.el b/lisp/nxml/nxml-parse.el index 0da4f93b491..ecf9056358b 100644 --- a/lisp/nxml/nxml-parse.el +++ b/lisp/nxml/nxml-parse.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/nxml-rap.el b/lisp/nxml/nxml-rap.el index 55be3f5191a..7d360cb725c 100644 --- a/lisp/nxml/nxml-rap.el +++ b/lisp/nxml/nxml-rap.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003-2004, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003-2004, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/nxml-uchnm.el b/lisp/nxml/nxml-uchnm.el index 105a55a47b9..5447b71a0c3 100644 --- a/lisp/nxml/nxml-uchnm.el +++ b/lisp/nxml/nxml-uchnm.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/nxml-util.el b/lisp/nxml/nxml-util.el index 31ade2da76a..3d91a1af47c 100644 --- a/lisp/nxml/nxml-util.el +++ b/lisp/nxml/nxml-util.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-cmpct.el b/lisp/nxml/rng-cmpct.el index ab24a10b0eb..3518de977a4 100644 --- a/lisp/nxml/rng-cmpct.el +++ b/lisp/nxml/rng-cmpct.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-dt.el b/lisp/nxml/rng-dt.el index d5938e331bf..d91acda629f 100644 --- a/lisp/nxml/rng-dt.el +++ b/lisp/nxml/rng-dt.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-loc.el b/lisp/nxml/rng-loc.el index 64ad9f3564f..2c59dd2546d 100644 --- a/lisp/nxml/rng-loc.el +++ b/lisp/nxml/rng-loc.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-maint.el b/lisp/nxml/rng-maint.el index c281fbbf757..d143cd428ed 100644 --- a/lisp/nxml/rng-maint.el +++ b/lisp/nxml/rng-maint.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-match.el b/lisp/nxml/rng-match.el index f7ecebc11a7..f674878e6e6 100644 --- a/lisp/nxml/rng-match.el +++ b/lisp/nxml/rng-match.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-nxml.el b/lisp/nxml/rng-nxml.el index cf63e6f62c5..000707b55e0 100644 --- a/lisp/nxml/rng-nxml.el +++ b/lisp/nxml/rng-nxml.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-parse.el b/lisp/nxml/rng-parse.el index 62e548f6aed..688817232e6 100644 --- a/lisp/nxml/rng-parse.el +++ b/lisp/nxml/rng-parse.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-pttrn.el b/lisp/nxml/rng-pttrn.el index 3ae961d0b0c..b845f53d0e8 100644 --- a/lisp/nxml/rng-pttrn.el +++ b/lisp/nxml/rng-pttrn.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-uri.el b/lisp/nxml/rng-uri.el index 7ef33e79dc3..b93624a4f22 100644 --- a/lisp/nxml/rng-uri.el +++ b/lisp/nxml/rng-uri.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-util.el b/lisp/nxml/rng-util.el index 4a540be92ca..3b6af42bb3d 100644 --- a/lisp/nxml/rng-util.el +++ b/lisp/nxml/rng-util.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-valid.el b/lisp/nxml/rng-valid.el index 5de6b6dec51..baf63e9fd33 100644 --- a/lisp/nxml/rng-valid.el +++ b/lisp/nxml/rng-valid.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/rng-xsd.el b/lisp/nxml/rng-xsd.el index 2b507ee7563..1c36c222903 100644 --- a/lisp/nxml/rng-xsd.el +++ b/lisp/nxml/rng-xsd.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, RelaxNG | 6 | ;; Keywords: wp, hypermedia, languages, XML, RelaxNG |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/xmltok.el b/lisp/nxml/xmltok.el index e7ce0231a1c..58a2f16d586 100644 --- a/lisp/nxml/xmltok.el +++ b/lisp/nxml/xmltok.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML | 6 | ;; Keywords: wp, hypermedia, languages, XML |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/nxml/xsd-regexp.el b/lisp/nxml/xsd-regexp.el index 20d68f9642d..dc2194eb1ef 100644 --- a/lisp/nxml/xsd-regexp.el +++ b/lisp/nxml/xsd-regexp.el | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2003, 2007-2014 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: James Clark | 5 | ;; Author: James Clark |
| 6 | ;; Keywords: XML, regexp | 6 | ;; Keywords: wp, hypermedia, languages, XML, regexp |
| 7 | 7 | ||
| 8 | ;; This file is part of GNU Emacs. | 8 | ;; This file is part of GNU Emacs. |
| 9 | 9 | ||
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index fe9346047c6..e05aef80e86 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -650,6 +650,10 @@ It is used when `ruby-encoding-magic-comment-style' is set to `custom'." | |||
| 650 | ;; because we want to reject hanging tokens at bol, too. | 650 | ;; because we want to reject hanging tokens at bol, too. |
| 651 | (unless (or (eolp) (forward-comment 1)) | 651 | (unless (or (eolp) (forward-comment 1)) |
| 652 | (cons 'column (current-column))))) | 652 | (cons 'column (current-column))))) |
| 653 | (`(:before . " @ ") | ||
| 654 | (save-excursion | ||
| 655 | (skip-chars-forward " \t") | ||
| 656 | (cons 'column (current-column)))) | ||
| 653 | (`(:before . "do") (ruby-smie--indent-to-stmt)) | 657 | (`(:before . "do") (ruby-smie--indent-to-stmt)) |
| 654 | (`(:before . ".") | 658 | (`(:before . ".") |
| 655 | (if (smie-rule-sibling-p) | 659 | (if (smie-rule-sibling-p) |
diff --git a/lisp/server.el b/lisp/server.el index a8e4444b999..0c645889d75 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -104,10 +104,10 @@ | |||
| 104 | "The name or IP address to use as host address of the server process. | 104 | "The name or IP address to use as host address of the server process. |
| 105 | If set, the server accepts remote connections; otherwise it is local. | 105 | If set, the server accepts remote connections; otherwise it is local. |
| 106 | 106 | ||
| 107 | DO NOT give this a non-nil value unless you know what you are | 107 | DO NOT give this a non-nil value unless you know what you are doing! |
| 108 | doing! On unsecured networks, accepting remote connections is | 108 | On unsecured networks, accepting remote connections is very dangerous, |
| 109 | very dangerous, because server-client communication (including | 109 | because server-client communication (including session authentication) |
| 110 | session authentication) is not encrypted." | 110 | is not encrypted." |
| 111 | :group 'server | 111 | :group 'server |
| 112 | :type '(choice | 112 | :type '(choice |
| 113 | (string :tag "Name or IP address") | 113 | (string :tag "Name or IP address") |
| @@ -1634,7 +1634,7 @@ only these files will be asked to be saved." | |||
| 1634 | (define-key ctl-x-map "#" 'server-edit) | 1634 | (define-key ctl-x-map "#" 'server-edit) |
| 1635 | 1635 | ||
| 1636 | (defun server-unload-function () | 1636 | (defun server-unload-function () |
| 1637 | "Unload the server library." | 1637 | "Unload the Server library." |
| 1638 | (server-mode -1) | 1638 | (server-mode -1) |
| 1639 | (substitute-key-definition 'server-edit nil ctl-x-map) | 1639 | (substitute-key-definition 'server-edit nil ctl-x-map) |
| 1640 | (save-current-buffer | 1640 | (save-current-buffer |
| @@ -1648,7 +1648,7 @@ only these files will be asked to be saved." | |||
| 1648 | "Contact the Emacs server named SERVER and evaluate FORM there. | 1648 | "Contact the Emacs server named SERVER and evaluate FORM there. |
| 1649 | Returns the result of the evaluation, or signals an error if it | 1649 | Returns the result of the evaluation, or signals an error if it |
| 1650 | cannot contact the specified server. For example: | 1650 | cannot contact the specified server. For example: |
| 1651 | \(server-eval-at \"server\" '(emacs-pid)) | 1651 | (server-eval-at \"server\" '(emacs-pid)) |
| 1652 | returns the process ID of the Emacs instance running \"server\"." | 1652 | returns the process ID of the Emacs instance running \"server\"." |
| 1653 | (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)) | 1653 | (let* ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)) |
| 1654 | (server-file (expand-file-name server server-dir)) | 1654 | (server-file (expand-file-name server server-dir)) |
diff --git a/lisp/skeleton.el b/lisp/skeleton.el index de0e5116db6..f85dc8ef068 100644 --- a/lisp/skeleton.el +++ b/lisp/skeleton.el | |||
| @@ -180,7 +180,7 @@ of `str' whereas the skeleton's interactor is then ignored." | |||
| 180 | With optional second argument REGIONS, wrap first interesting point | 180 | With optional second argument REGIONS, wrap first interesting point |
| 181 | \(`_') in skeleton around next REGIONS words, if REGIONS is positive. | 181 | \(`_') in skeleton around next REGIONS words, if REGIONS is positive. |
| 182 | If REGIONS is negative, wrap REGIONS preceding interregions into first | 182 | If REGIONS is negative, wrap REGIONS preceding interregions into first |
| 183 | REGIONS interesting positions \(successive `_'s) in skeleton. | 183 | REGIONS interesting positions (successive `_'s) in skeleton. |
| 184 | 184 | ||
| 185 | An interregion is the stretch of text between two contiguous marked | 185 | An interregion is the stretch of text between two contiguous marked |
| 186 | points. If you marked A B C [] (where [] is the cursor) in | 186 | points. If you marked A B C [] (where [] is the cursor) in |
| @@ -205,21 +205,21 @@ If ELEMENT is a string or a character it gets inserted (see also | |||
| 205 | @ add position to `skeleton-positions' | 205 | @ add position to `skeleton-positions' |
| 206 | & do next ELEMENT if previous moved point | 206 | & do next ELEMENT if previous moved point |
| 207 | | do next ELEMENT if previous didn't move point | 207 | | do next ELEMENT if previous didn't move point |
| 208 | -num delete num preceding characters (see `skeleton-untabify') | 208 | -NUM delete NUM preceding characters (see `skeleton-untabify') |
| 209 | resume: skipped, continue here if quit is signaled | 209 | resume: skipped, continue here if quit is signaled |
| 210 | nil skipped | 210 | nil skipped |
| 211 | 211 | ||
| 212 | After termination, point will be positioned at the last occurrence of - | 212 | After termination, point will be positioned at the last occurrence of - |
| 213 | or at the first occurrence of _ or at the end of the inserted text. | 213 | or at the first occurrence of _ or at the end of the inserted text. |
| 214 | 214 | ||
| 215 | Further elements can be defined via `skeleton-further-elements'. ELEMENT may | 215 | Further elements can be defined via `skeleton-further-elements'. |
| 216 | itself be a SKELETON with an INTERACTOR. The user is prompted repeatedly for | 216 | ELEMENT may itself be a SKELETON with an INTERACTOR. The user is prompted |
| 217 | different inputs. The SKELETON is processed as often as the user enters a | 217 | repeatedly for different inputs. The SKELETON is processed as often as |
| 218 | non-empty string. \\[keyboard-quit] terminates skeleton insertion, but | 218 | the user enters a non-empty string. \\[keyboard-quit] terminates skeleton insertion, but |
| 219 | continues after `resume:' and positions at `_' if any. If INTERACTOR in such | 219 | continues after `resume:' and positions at `_' if any. If INTERACTOR in |
| 220 | a subskeleton is a prompt-string which contains a \".. %s ..\" it is | 220 | such a subskeleton is a prompt-string which contains a \".. %s ..\" it is |
| 221 | formatted with `skeleton-subprompt'. Such an INTERACTOR may also be a list of | 221 | formatted with `skeleton-subprompt'. Such an INTERACTOR may also be a list |
| 222 | strings with the subskeleton being repeated once for each string. | 222 | of strings with the subskeleton being repeated once for each string. |
| 223 | 223 | ||
| 224 | Quoted Lisp expressions are evaluated for their side-effects. | 224 | Quoted Lisp expressions are evaluated for their side-effects. |
| 225 | Other Lisp expressions are evaluated and the value treated as above. | 225 | Other Lisp expressions are evaluated and the value treated as above. |
diff --git a/lisp/term/tty-colors.el b/lisp/term/tty-colors.el index 60be0a40f58..7e53a98d02a 100644 --- a/lisp/term/tty-colors.el +++ b/lisp/term/tty-colors.el | |||
| @@ -771,7 +771,7 @@ | |||
| 771 | "Return an alist of colors supported by FRAME's terminal. | 771 | "Return an alist of colors supported by FRAME's terminal. |
| 772 | FRAME defaults to the selected frame. | 772 | FRAME defaults to the selected frame. |
| 773 | Each element of the returned alist is of the form: | 773 | Each element of the returned alist is of the form: |
| 774 | \(NAME INDEX R G B\) | 774 | (NAME INDEX R G B) |
| 775 | where NAME is the name of the color, a string; | 775 | where NAME is the name of the color, a string; |
| 776 | INDEX is the index of this color to be sent to the terminal driver | 776 | INDEX is the index of this color to be sent to the terminal driver |
| 777 | when the color should be displayed; it is typically a small integer; | 777 | when the color should be displayed; it is typically a small integer; |
| @@ -785,10 +785,10 @@ color." | |||
| 785 | 785 | ||
| 786 | (defun tty-modify-color-alist (elt &optional frame) | 786 | (defun tty-modify-color-alist (elt &optional frame) |
| 787 | "Put the association ELT into the alist of terminal colors for FRAME. | 787 | "Put the association ELT into the alist of terminal colors for FRAME. |
| 788 | ELT should be of the form \(NAME INDEX R G B\) (see `tty-color-alist' | 788 | ELT should be of the form (NAME INDEX R G B) (see `tty-color-alist' |
| 789 | for details). | 789 | for details). |
| 790 | If the association for NAME already exists in the color alist, it is | 790 | If the association for NAME already exists in the color alist, it is |
| 791 | modified to specify \(INDEX R G B\) as its cdr. Otherwise, ELT is | 791 | modified to specify (INDEX R G B) as its cdr. Otherwise, ELT is |
| 792 | appended to the end of the color alist. | 792 | appended to the end of the color alist. |
| 793 | If FRAME is unspecified or nil, it defaults to the selected frame. | 793 | If FRAME is unspecified or nil, it defaults to the selected frame. |
| 794 | Value is the modified color alist for FRAME." | 794 | Value is the modified color alist for FRAME." |
| @@ -856,7 +856,7 @@ of gray, thus the name." | |||
| 856 | 856 | ||
| 857 | (defun tty-color-approximate (rgb &optional frame) | 857 | (defun tty-color-approximate (rgb &optional frame) |
| 858 | "Find the color in `tty-color-alist' that best approximates RGB. | 858 | "Find the color in `tty-color-alist' that best approximates RGB. |
| 859 | Value is a list of the form \(NAME INDEX R G B\). | 859 | Value is a list of the form (NAME INDEX R G B). |
| 860 | The argument RGB should be an rgb value, that is, a list of three | 860 | The argument RGB should be an rgb value, that is, a list of three |
| 861 | integers in the 0..65535 range. | 861 | integers in the 0..65535 range. |
| 862 | FRAME defaults to the selected frame." | 862 | FRAME defaults to the selected frame." |
| @@ -981,7 +981,7 @@ If FRAME is unspecified or nil, it defaults to the selected frame." | |||
| 981 | "Given a numeric index of a tty color, return its description. | 981 | "Given a numeric index of a tty color, return its description. |
| 982 | 982 | ||
| 983 | FRAME, if unspecified or nil, defaults to the selected frame. | 983 | FRAME, if unspecified or nil, defaults to the selected frame. |
| 984 | Value is a list of the form \(NAME INDEX R G B\)." | 984 | Value is a list of the form (NAME INDEX R G B)." |
| 985 | (and idx | 985 | (and idx |
| 986 | (let ((colors (tty-color-alist frame)) | 986 | (let ((colors (tty-color-alist frame)) |
| 987 | desc found) | 987 | desc found) |
| @@ -997,14 +997,14 @@ Value is a list of the form \(NAME INDEX R G B\)." | |||
| 997 | 997 | ||
| 998 | If COLOR is not directly supported by the display, return the RGB | 998 | If COLOR is not directly supported by the display, return the RGB |
| 999 | values for a supported color that is its best approximation. | 999 | values for a supported color that is its best approximation. |
| 1000 | The value is a list of integer RGB values--\(RED GREEN BLUE\). | 1000 | The value is a list of integer RGB values--(RED GREEN BLUE). |
| 1001 | These values range from 0 to 65535; white is (65535 65535 65535). | 1001 | These values range from 0 to 65535; white is (65535 65535 65535). |
| 1002 | If FRAME is omitted or nil, use the selected frame." | 1002 | If FRAME is omitted or nil, use the selected frame." |
| 1003 | (cddr (tty-color-desc color frame))) | 1003 | (cddr (tty-color-desc color frame))) |
| 1004 | 1004 | ||
| 1005 | (defun tty-color-desc (color &optional frame) | 1005 | (defun tty-color-desc (color &optional frame) |
| 1006 | "Return the description of the color COLOR for a character terminal. | 1006 | "Return the description of the color COLOR for a character terminal. |
| 1007 | Value is a list of the form \(NAME INDEX R G B\). The returned NAME or | 1007 | Value is a list of the form (NAME INDEX R G B). The returned NAME or |
| 1008 | RGB value may not be the same as the argument COLOR, because the latter | 1008 | RGB value may not be the same as the argument COLOR, because the latter |
| 1009 | might need to be approximated if it is not supported directly." | 1009 | might need to be approximated if it is not supported directly." |
| 1010 | (and (stringp color) | 1010 | (and (stringp color) |
diff --git a/src/ChangeLog b/src/ChangeLog index c3af54910a2..59e39614af8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2014-03-21 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | ||
| 2 | |||
| 3 | Fix regression introduced by patch for Bug#10500. | ||
| 4 | * xterm.c (x_draw_image_relief): Respect Vtool_bar_button_margin. | ||
| 5 | * w32term.c (x_draw_image_relief): Likewise. | ||
| 6 | |||
| 7 | 2014-03-21 Martin Rudalics <rudalics@gmx.at> | ||
| 8 | |||
| 9 | * w32fns.c (w32_wnd_proc): For WM_WINDOWPOSCHANGING don't | ||
| 10 | constrain frame size in SW_SHOWMAXIMIZED case so we can truly | ||
| 11 | maximize a frame for odd default fonts. | ||
| 12 | |||
| 1 | 2014-03-21 Glenn Morris <rgm@gnu.org> | 13 | 2014-03-21 Glenn Morris <rgm@gnu.org> |
| 2 | 14 | ||
| 3 | * minibuf.c (history-length): Increase default from 30 to 100. | 15 | * minibuf.c (history-length): Increase default from 30 to 100. |
diff --git a/src/w32fns.c b/src/w32fns.c index a79135374ed..fff1e3efde6 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -3805,7 +3805,8 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | |||
| 3805 | wp.length = sizeof (WINDOWPLACEMENT); | 3805 | wp.length = sizeof (WINDOWPLACEMENT); |
| 3806 | GetWindowPlacement (hwnd, &wp); | 3806 | GetWindowPlacement (hwnd, &wp); |
| 3807 | 3807 | ||
| 3808 | if (wp.showCmd != SW_SHOWMINIMIZED && (lppos->flags & SWP_NOSIZE) == 0) | 3808 | if (wp.showCmd != SW_SHOWMAXIMIZED && wp.showCmd != SW_SHOWMINIMIZED |
| 3809 | && (lppos->flags & SWP_NOSIZE) == 0) | ||
| 3809 | { | 3810 | { |
| 3810 | RECT rect; | 3811 | RECT rect; |
| 3811 | int wdiff; | 3812 | int wdiff; |
diff --git a/src/w32term.c b/src/w32term.c index 2981320e136..15b502b7c1b 100644 --- a/src/w32term.c +++ b/src/w32term.c | |||
| @@ -1892,6 +1892,7 @@ static void | |||
| 1892 | x_draw_image_relief (struct glyph_string *s) | 1892 | x_draw_image_relief (struct glyph_string *s) |
| 1893 | { | 1893 | { |
| 1894 | int x1, y1, thick, raised_p, top_p, bot_p, left_p, right_p; | 1894 | int x1, y1, thick, raised_p, top_p, bot_p, left_p, right_p; |
| 1895 | int extra_x, extra_y; | ||
| 1895 | RECT r; | 1896 | RECT r; |
| 1896 | int x = s->x; | 1897 | int x = s->x; |
| 1897 | int y = s->ybase - image_ascent (s->img, s->face, &s->slice); | 1898 | int y = s->ybase - image_ascent (s->img, s->face, &s->slice); |
| @@ -1925,16 +1926,31 @@ x_draw_image_relief (struct glyph_string *s) | |||
| 1925 | 1926 | ||
| 1926 | x1 = x + s->slice.width - 1; | 1927 | x1 = x + s->slice.width - 1; |
| 1927 | y1 = y + s->slice.height - 1; | 1928 | y1 = y + s->slice.height - 1; |
| 1929 | |||
| 1930 | extra_x = extra_y = 0; | ||
| 1931 | if (s->face->id == TOOL_BAR_FACE_ID) | ||
| 1932 | { | ||
| 1933 | if (CONSP (Vtool_bar_button_margin) | ||
| 1934 | && INTEGERP (XCAR (Vtool_bar_button_margin)) | ||
| 1935 | && INTEGERP (XCDR (Vtool_bar_button_margin))) | ||
| 1936 | { | ||
| 1937 | extra_x = XINT (XCAR (Vtool_bar_button_margin)); | ||
| 1938 | extra_y = XINT (XCDR (Vtool_bar_button_margin)); | ||
| 1939 | } | ||
| 1940 | else if (INTEGERP (Vtool_bar_button_margin)) | ||
| 1941 | extra_x = extra_y = XINT (Vtool_bar_button_margin); | ||
| 1942 | } | ||
| 1943 | |||
| 1928 | top_p = bot_p = left_p = right_p = 0; | 1944 | top_p = bot_p = left_p = right_p = 0; |
| 1929 | 1945 | ||
| 1930 | if (s->slice.x == 0) | 1946 | if (s->slice.x == 0) |
| 1931 | x -= thick, left_p = 1; | 1947 | x -= thick + extra_x, left_p = 1; |
| 1932 | if (s->slice.y == 0) | 1948 | if (s->slice.y == 0) |
| 1933 | y -= thick, top_p = 1; | 1949 | y -= thick + extra_y, top_p = 1; |
| 1934 | if (s->slice.x + s->slice.width == s->img->width) | 1950 | if (s->slice.x + s->slice.width == s->img->width) |
| 1935 | x1 += thick, right_p = 1; | 1951 | x1 += thick + extra_x, right_p = 1; |
| 1936 | if (s->slice.y + s->slice.height == s->img->height) | 1952 | if (s->slice.y + s->slice.height == s->img->height) |
| 1937 | y1 += thick, bot_p = 1; | 1953 | y1 += thick + extra_y, bot_p = 1; |
| 1938 | 1954 | ||
| 1939 | x_setup_relief_colors (s); | 1955 | x_setup_relief_colors (s); |
| 1940 | get_glyph_string_clip_rect (s, &r); | 1956 | get_glyph_string_clip_rect (s, &r); |
| @@ -5651,21 +5667,11 @@ x_set_window_size (struct frame *f, int change_gravity, int width, int height, b | |||
| 5651 | if (!frame_resize_pixelwise) | 5667 | if (!frame_resize_pixelwise) |
| 5652 | { | 5668 | { |
| 5653 | /* If we don't resize frames pixelwise, round sizes to multiples | 5669 | /* If we don't resize frames pixelwise, round sizes to multiples |
| 5654 | of character sizes. Otherwise, Windows may clip our frame | 5670 | of character sizes here. Otherwise, when enforcing size hints |
| 5655 | rectangle at a character size boundary and we risk losing our | 5671 | while processing WM_WINDOWPOSCHANGING in w32_wnd_proc, we might |
| 5656 | mode line. Bug#16923 might be a consequence of this. | 5672 | clip our frame rectangle to a multiple of the frame's character |
| 5657 | 5673 | size and subsequently lose our mode line or scroll bar. | |
| 5658 | So far, this is a Windows specific problem; other toolkits may | 5674 | Bug#16923 could be one possible consequence of this. */ |
| 5659 | prefer to not resize the frame if the delta is not large enough | ||
| 5660 | (GTK) or resize the frame pixelwise as requested (Lucid, | ||
| 5661 | Motif). Windows just doesn't call us back (probably because of | ||
| 5662 | the size hint settings which it apparently interprets strictly) | ||
| 5663 | neither when the user tries to mouse-drag a frame border by, | ||
| 5664 | nor when calling `set-frame-size' with a delta of less than the | ||
| 5665 | canonical character size. If w32_enable_frame_resize_hack is | ||
| 5666 | enabled (which it now is by default) we'd then below resize the | ||
| 5667 | frame's root window in preparation of a WM_SIZE message to come | ||
| 5668 | which, however, is not going to happen. */ | ||
| 5669 | int unit_width = FRAME_COLUMN_WIDTH (f); | 5675 | int unit_width = FRAME_COLUMN_WIDTH (f); |
| 5670 | int unit_height = FRAME_LINE_HEIGHT (f); | 5676 | int unit_height = FRAME_LINE_HEIGHT (f); |
| 5671 | 5677 | ||
| @@ -5695,9 +5701,7 @@ x_set_window_size (struct frame *f, int change_gravity, int width, int height, b | |||
| 5695 | } | 5701 | } |
| 5696 | 5702 | ||
| 5697 | /* If w32_enable_frame_resize_hack is non-nil, immediately apply the | 5703 | /* If w32_enable_frame_resize_hack is non-nil, immediately apply the |
| 5698 | new pixel sizes to the frame and its subwindows. This approach is | 5704 | new pixel sizes to the frame and its subwindows. |
| 5699 | fragile because Windows might not honor the resize request issued | ||
| 5700 | by my_set_window_pos with a WM_SIZE message (see previous comment). | ||
| 5701 | 5705 | ||
| 5702 | Jason Rumney earlier refused to call change_frame_size right here | 5706 | Jason Rumney earlier refused to call change_frame_size right here |
| 5703 | with the following argument: | 5707 | with the following argument: |
diff --git a/src/xterm.c b/src/xterm.c index c7f56e1f1f2..31e1b9cb74f 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2162,6 +2162,7 @@ static void | |||
| 2162 | x_draw_image_relief (struct glyph_string *s) | 2162 | x_draw_image_relief (struct glyph_string *s) |
| 2163 | { | 2163 | { |
| 2164 | int x1, y1, thick, raised_p, top_p, bot_p, left_p, right_p; | 2164 | int x1, y1, thick, raised_p, top_p, bot_p, left_p, right_p; |
| 2165 | int extra_x, extra_y; | ||
| 2165 | XRectangle r; | 2166 | XRectangle r; |
| 2166 | int x = s->x; | 2167 | int x = s->x; |
| 2167 | int y = s->ybase - image_ascent (s->img, s->face, &s->slice); | 2168 | int y = s->ybase - image_ascent (s->img, s->face, &s->slice); |
| @@ -2194,16 +2195,31 @@ x_draw_image_relief (struct glyph_string *s) | |||
| 2194 | 2195 | ||
| 2195 | x1 = x + s->slice.width - 1; | 2196 | x1 = x + s->slice.width - 1; |
| 2196 | y1 = y + s->slice.height - 1; | 2197 | y1 = y + s->slice.height - 1; |
| 2198 | |||
| 2199 | extra_x = extra_y = 0; | ||
| 2200 | if (s->face->id == TOOL_BAR_FACE_ID) | ||
| 2201 | { | ||
| 2202 | if (CONSP (Vtool_bar_button_margin) | ||
| 2203 | && INTEGERP (XCAR (Vtool_bar_button_margin)) | ||
| 2204 | && INTEGERP (XCDR (Vtool_bar_button_margin))) | ||
| 2205 | { | ||
| 2206 | extra_x = XINT (XCAR (Vtool_bar_button_margin)); | ||
| 2207 | extra_y = XINT (XCDR (Vtool_bar_button_margin)); | ||
| 2208 | } | ||
| 2209 | else if (INTEGERP (Vtool_bar_button_margin)) | ||
| 2210 | extra_x = extra_y = XINT (Vtool_bar_button_margin); | ||
| 2211 | } | ||
| 2212 | |||
| 2197 | top_p = bot_p = left_p = right_p = 0; | 2213 | top_p = bot_p = left_p = right_p = 0; |
| 2198 | 2214 | ||
| 2199 | if (s->slice.x == 0) | 2215 | if (s->slice.x == 0) |
| 2200 | x -= thick, left_p = 1; | 2216 | x -= thick + extra_x, left_p = 1; |
| 2201 | if (s->slice.y == 0) | 2217 | if (s->slice.y == 0) |
| 2202 | y -= thick, top_p = 1; | 2218 | y -= thick + extra_y, top_p = 1; |
| 2203 | if (s->slice.x + s->slice.width == s->img->width) | 2219 | if (s->slice.x + s->slice.width == s->img->width) |
| 2204 | x1 += thick, right_p = 1; | 2220 | x1 += thick + extra_x, right_p = 1; |
| 2205 | if (s->slice.y + s->slice.height == s->img->height) | 2221 | if (s->slice.y + s->slice.height == s->img->height) |
| 2206 | y1 += thick, bot_p = 1; | 2222 | y1 += thick + extra_y, bot_p = 1; |
| 2207 | 2223 | ||
| 2208 | x_setup_relief_colors (s); | 2224 | x_setup_relief_colors (s); |
| 2209 | get_glyph_string_clip_rect (s, &r); | 2225 | get_glyph_string_clip_rect (s, &r); |
diff --git a/test/automated/data/package/archive-contents b/test/automated/data/package/archive-contents index 8d6f3226ae6..a6df6b8086e 100644 --- a/test/automated/data/package/archive-contents +++ b/test/automated/data/package/archive-contents | |||
| @@ -6,6 +6,10 @@ | |||
| 6 | (simple-depend . | 6 | (simple-depend . |
| 7 | [(1 0) | 7 | [(1 0) |
| 8 | ((simple-single (1 3))) "A single-file package with a dependency." single]) | 8 | ((simple-single (1 3))) "A single-file package with a dependency." single]) |
| 9 | (simple-two-depend . | ||
| 10 | [(1 1) | ||
| 11 | ((simple-depend (1 0)) (simple-single (1 3))) | ||
| 12 | "A single-file package with two dependencies." single]) | ||
| 9 | (multi-file . | 13 | (multi-file . |
| 10 | [(0 2 3) | 14 | [(0 2 3) |
| 11 | nil "Example of a multi-file tar package" tar | 15 | nil "Example of a multi-file tar package" tar |
diff --git a/test/automated/data/package/simple-two-depend-1.1.el b/test/automated/data/package/simple-two-depend-1.1.el new file mode 100644 index 00000000000..9cfe5c0d4e2 --- /dev/null +++ b/test/automated/data/package/simple-two-depend-1.1.el | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | ;;; simple-two-depend.el --- A single-file package with two dependencies. | ||
| 2 | |||
| 3 | ;; Author: J. R. Hacker <jrh@example.com> | ||
| 4 | ;; Version: 1.1 | ||
| 5 | ;; Keywords: frobnicate | ||
| 6 | ;; Package-Requires: ((simple-depend "1.0") (simple-single "1.3")) | ||
| 7 | |||
| 8 | ;;; Commentary: | ||
| 9 | |||
| 10 | ;; Depends on two another packages. | ||
| 11 | |||
| 12 | ;;; Code: | ||
| 13 | |||
| 14 | (defvar simple-two-depend "Value" | ||
| 15 | "Some trivial code") | ||
| 16 | |||
| 17 | ;;; simple-two-depend.el ends here | ||
diff --git a/test/automated/package-test.el b/test/automated/package-test.el index 34a3ce25a48..72422a8684b 100644 --- a/test/automated/package-test.el +++ b/test/automated/package-test.el | |||
| @@ -203,12 +203,22 @@ Must called from within a `tar-mode' buffer." | |||
| 203 | (should (package-installed-p 'simple-single)) | 203 | (should (package-installed-p 'simple-single)) |
| 204 | (should (package-installed-p 'simple-depend)))) | 204 | (should (package-installed-p 'simple-depend)))) |
| 205 | 205 | ||
| 206 | (ert-deftest package-test-install-two-dependencies () | ||
| 207 | "Install a package which includes a dependency." | ||
| 208 | (with-package-test () | ||
| 209 | (package-initialize) | ||
| 210 | (package-refresh-contents) | ||
| 211 | (package-install 'simple-two-depend) | ||
| 212 | (should (package-installed-p 'simple-single)) | ||
| 213 | (should (package-installed-p 'simple-depend)) | ||
| 214 | (should (package-installed-p 'simple-two-depend)))) | ||
| 215 | |||
| 206 | (ert-deftest package-test-refresh-contents () | 216 | (ert-deftest package-test-refresh-contents () |
| 207 | "Parse an \"archive-contents\" file." | 217 | "Parse an \"archive-contents\" file." |
| 208 | (with-package-test () | 218 | (with-package-test () |
| 209 | (package-initialize) | 219 | (package-initialize) |
| 210 | (package-refresh-contents) | 220 | (package-refresh-contents) |
| 211 | (should (eq 3 (length package-archive-contents))))) | 221 | (should (eq 4 (length package-archive-contents))))) |
| 212 | 222 | ||
| 213 | (ert-deftest package-test-install-single-from-archive () | 223 | (ert-deftest package-test-install-single-from-archive () |
| 214 | "Install a single package from a package archive." | 224 | "Install a single package from a package archive." |
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 2ca0e482797..99482433145 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -379,3 +379,20 @@ foo(:bar => | |||
| 379 | 'd' => %w(e f) | 379 | 'd' => %w(e f) |
| 380 | } | 380 | } |
| 381 | } | 381 | } |
| 382 | |||
| 383 | # Bug#17050 | ||
| 384 | |||
| 385 | return render json: { | ||
| 386 | errors: { base: [message] }, | ||
| 387 | copying: copying | ||
| 388 | }, | ||
| 389 | status: 400 | ||
| 390 | |||
| 391 | top test( | ||
| 392 | some, | ||
| 393 | top, | ||
| 394 | test) | ||
| 395 | |||
| 396 | foo bar, { | ||
| 397 | tee: qux | ||
| 398 | } | ||