diff options
| author | Glenn Morris | 2018-06-02 10:25:50 -0700 |
|---|---|---|
| committer | Glenn Morris | 2018-06-02 10:25:50 -0700 |
| commit | 42a851c6347bb45a2fb8acdb0d2a1ca468ecefd3 (patch) | |
| tree | bfd595460df8864956639fecc13636a94d413212 | |
| parent | 4a7e74fea687011ee81dcbb02294bccd99b3a05f (diff) | |
| parent | ca3f0a8343c125a44845d21808ab0e35b87533db (diff) | |
| download | emacs-42a851c6347bb45a2fb8acdb0d2a1ca468ecefd3.tar.gz emacs-42a851c6347bb45a2fb8acdb0d2a1ca468ecefd3.zip | |
Merge from origin/emacs-26
ca3f0a8 ; * etc/NEWS: Belated announcement of 2 changes made in Emacs...
99f92da Improve documentation of 'directory-files-and-attributes'
df8649a * lisp/gnus/message.el (message-remove-header): Don't remove ...
b682a7e ; * etc/NEWS: Add headings for Emacs 26.2
aa175a4 Adapt hexl-mode to native line-number display
b8e7749 Fix example in Tramp manual
f212fe5 Handle case where Xft is found but not XRender
186280f * doc/misc/tramp.texi (Frequently Asked Questions): Adapt zsh...
24ba633 Improve read-multiple-choice docstring (Bug#31628)
Conflicts:
etc/NEWS
src/dired.c
| -rw-r--r-- | configure.ac | 7 | ||||
| -rw-r--r-- | doc/lispref/files.texi | 4 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 5 | ||||
| -rw-r--r-- | etc/NEWS.26 | 45 | ||||
| -rw-r--r-- | lisp/emacs-lisp/rmc.el | 18 | ||||
| -rw-r--r-- | lisp/gnus/message.el | 4 | ||||
| -rw-r--r-- | lisp/hexl.el | 14 | ||||
| -rw-r--r-- | src/dired.c | 13 |
8 files changed, 85 insertions, 25 deletions
diff --git a/configure.ac b/configure.ac index a11abc1b65b..eddeb5073c9 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3257,8 +3257,8 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 3257 | if test "x${with_xft}" != "xno"; then | 3257 | if test "x${with_xft}" != "xno"; then |
| 3258 | 3258 | ||
| 3259 | EMACS_CHECK_MODULES([XFT], [xft >= 0.13.0], [], [HAVE_XFT=no]) | 3259 | EMACS_CHECK_MODULES([XFT], [xft >= 0.13.0], [], [HAVE_XFT=no]) |
| 3260 | ## Because xftfont.c uses XRenderQueryExtension, we also | 3260 | ## Because xterm.c uses XRenderQueryExtension when XFT is |
| 3261 | ## need to link to -lXrender. | 3261 | ## enabled, we also need to link to -lXrender. |
| 3262 | HAVE_XRENDER=no | 3262 | HAVE_XRENDER=no |
| 3263 | AC_CHECK_LIB(Xrender, XRenderQueryExtension, HAVE_XRENDER=yes) | 3263 | AC_CHECK_LIB(Xrender, XRenderQueryExtension, HAVE_XRENDER=yes) |
| 3264 | if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then | 3264 | if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then |
| @@ -3281,6 +3281,9 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 3281 | CPPFLAGS=$OLD_CPPFLAGS | 3281 | CPPFLAGS=$OLD_CPPFLAGS |
| 3282 | CFLAGS=$OLD_CFLAGS | 3282 | CFLAGS=$OLD_CFLAGS |
| 3283 | LIBS=$OLD_LIBS | 3283 | LIBS=$OLD_LIBS |
| 3284 | else | ||
| 3285 | # Make sure XFT is disabled if we found XFT but not XRender | ||
| 3286 | HAVE_XFT=no | ||
| 3284 | fi # "$HAVE_XFT" != no | 3287 | fi # "$HAVE_XFT" != no |
| 3285 | fi # "x${with_xft}" != "xno" | 3288 | fi # "x${with_xft}" != "xno" |
| 3286 | 3289 | ||
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 71402cd836f..e36fdbe95bf 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi | |||
| @@ -2915,8 +2915,8 @@ are included. | |||
| 2915 | This is similar to @code{directory-files} in deciding which files | 2915 | This is similar to @code{directory-files} in deciding which files |
| 2916 | to report on and how to report their names. However, instead | 2916 | to report on and how to report their names. However, instead |
| 2917 | of returning a list of file names, it returns for each file a | 2917 | of returning a list of file names, it returns for each file a |
| 2918 | list @code{(@var{filename} . @var{attributes})}, where @var{attributes} | 2918 | list @code{(@var{filename} @var{attributes})}, where @var{attributes} |
| 2919 | is what @code{file-attributes} would return for that file. | 2919 | is what @code{file-attributes} returns for that file. |
| 2920 | The optional argument @var{id-format} has the same meaning as the | 2920 | The optional argument @var{id-format} has the same meaning as the |
| 2921 | corresponding argument to @code{file-attributes} (@pxref{Definition | 2921 | corresponding argument to @code{file-attributes} (@pxref{Definition |
| 2922 | of file-attributes}). | 2922 | of file-attributes}). |
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi index 38669a06c9c..29626138ae1 100644 --- a/doc/misc/tramp.texi +++ b/doc/misc/tramp.texi | |||
| @@ -3425,6 +3425,11 @@ following line to @file{~/.zshrc}: | |||
| 3425 | [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return | 3425 | [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return |
| 3426 | @end example | 3426 | @end example |
| 3427 | 3427 | ||
| 3428 | This uses the default value of @code{tramp-terminal-type}, | ||
| 3429 | @samp{"dumb"}, as value of the @env{TERM} environment variable. If | ||
| 3430 | you want to use another value for @env{TERM}, change | ||
| 3431 | @code{tramp-terminal-type} and this line accordingly. | ||
| 3432 | |||
| 3428 | When using fish shell on remote hosts, disable fancy formatting by | 3433 | When using fish shell on remote hosts, disable fancy formatting by |
| 3429 | adding the following to @file{~/.config/fish/config.fish}: | 3434 | adding the following to @file{~/.config/fish/config.fish}: |
| 3430 | 3435 | ||
diff --git a/etc/NEWS.26 b/etc/NEWS.26 index 812394f11d8..6240b7da431 100644 --- a/etc/NEWS.26 +++ b/etc/NEWS.26 | |||
| @@ -16,6 +16,51 @@ You can narrow news to a specific version by calling 'view-emacs-news' | |||
| 16 | with a prefix argument or by typing C-u C-h C-n. | 16 | with a prefix argument or by typing C-u C-h C-n. |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | * Installation Changes in Emacs 26.2 | ||
| 20 | |||
| 21 | --- | ||
| 22 | ** Building Emacs with the '--with-xwidgets' option now requires WebKit2 | ||
| 23 | To build Emacs with xwidgets support, you will need to install the | ||
| 24 | webkit2gtk-4.0 package; version 2.12 or later is required. | ||
| 25 | (This change was actually made in Emacs 26.1, but was not called out | ||
| 26 | in its NEWS.) | ||
| 27 | |||
| 28 | |||
| 29 | * Startup Changes in Emacs 26.2 | ||
| 30 | |||
| 31 | |||
| 32 | * Changes in Emacs 26.2 | ||
| 33 | |||
| 34 | |||
| 35 | * Editing Changes in Emacs 26.2 | ||
| 36 | |||
| 37 | |||
| 38 | * Changes in Specialized Modes and Packages in Emacs 26.2 | ||
| 39 | |||
| 40 | ** Shell mode | ||
| 41 | |||
| 42 | --- | ||
| 43 | *** Shell mode buffers now have 'scroll-conservatively' set to 101. | ||
| 44 | This is so as to better emulate the scrolling behavior of a text | ||
| 45 | terminal when new output is added to the screen buffer. To get back | ||
| 46 | the previous behavior, reset 'scroll-conservatively' to zero (or any | ||
| 47 | other value you like) in a function and add it to 'shell-mode-hook'. | ||
| 48 | (This change was actually made in Emacs 26.1, but was not called out | ||
| 49 | in its NEWS.) | ||
| 50 | |||
| 51 | |||
| 52 | * New Modes and Packages in Emacs 26.2 | ||
| 53 | |||
| 54 | |||
| 55 | * Incompatible Lisp Changes in Emacs 26.2 | ||
| 56 | |||
| 57 | |||
| 58 | * Lisp Changes in Emacs 26.2 | ||
| 59 | |||
| 60 | |||
| 61 | * Changes in Emacs 26.2 on Non-Free Operating Systems | ||
| 62 | |||
| 63 | |||
| 19 | * Installation Changes in Emacs 26.1 | 64 | * Installation Changes in Emacs 26.1 |
| 20 | 65 | ||
| 21 | ** By default libgnutls is now required when building Emacs. | 66 | ** By default libgnutls is now required when building Emacs. |
diff --git a/lisp/emacs-lisp/rmc.el b/lisp/emacs-lisp/rmc.el index 3dd3508903a..31974782b53 100644 --- a/lisp/emacs-lisp/rmc.el +++ b/lisp/emacs-lisp/rmc.el | |||
| @@ -30,12 +30,12 @@ | |||
| 30 | "Ask user a multiple choice question. | 30 | "Ask user a multiple choice question. |
| 31 | PROMPT should be a string that will be displayed as the prompt. | 31 | PROMPT should be a string that will be displayed as the prompt. |
| 32 | 32 | ||
| 33 | CHOICES is an alist where the first element in each entry is a | 33 | CHOICES is a list of (KEY NAME [DESCRIPTION]). KEY is a |
| 34 | character to be entered, the second element is a short name for | 34 | character to be entered. NAME is a short name for the entry to |
| 35 | the entry to be displayed while prompting (if there's room, it | 35 | be displayed while prompting (if there's room, it might be |
| 36 | might be shortened), and the third, optional entry is a longer | 36 | shortened). DESCRIPTION is an optional longer explanation that |
| 37 | explanation that will be displayed in a help buffer if the user | 37 | will be displayed in a help buffer if the user requests more |
| 38 | requests more help. | 38 | help. |
| 39 | 39 | ||
| 40 | This function translates user input into responses by consulting | 40 | This function translates user input into responses by consulting |
| 41 | the bindings in `query-replace-map'; see the documentation of | 41 | the bindings in `query-replace-map'; see the documentation of |
| @@ -46,9 +46,9 @@ perform the requested window recentering or scrolling and ask | |||
| 46 | again. | 46 | again. |
| 47 | 47 | ||
| 48 | When `use-dialog-box' is t (the default), this function can pop | 48 | When `use-dialog-box' is t (the default), this function can pop |
| 49 | up a dialog window to collect the user input. That functionality | 49 | up a dialog window to collect the user input. That functionality |
| 50 | requires `display-popup-menus-p' to return t. Otherwise, a text | 50 | requires `display-popup-menus-p' to return t. Otherwise, a |
| 51 | dialog will be used. | 51 | text dialog will be used. |
| 52 | 52 | ||
| 53 | The return value is the matching entry from the CHOICES list. | 53 | The return value is the matching entry from the CHOICES list. |
| 54 | 54 | ||
diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 7cc4d61e308..dde9c28656c 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el | |||
| @@ -2422,7 +2422,9 @@ Return the number of headers removed." | |||
| 2422 | (while (and (not (eobp)) | 2422 | (while (and (not (eobp)) |
| 2423 | (not last)) | 2423 | (not last)) |
| 2424 | (if (if reverse | 2424 | (if (if reverse |
| 2425 | (not (looking-at regexp)) | 2425 | (and (not (looking-at regexp)) |
| 2426 | ;; Don't remove things not looking like header. | ||
| 2427 | (looking-at "[!-9;-~]+:")) | ||
| 2426 | (looking-at regexp)) | 2428 | (looking-at regexp)) |
| 2427 | (progn | 2429 | (progn |
| 2428 | (cl-incf number) | 2430 | (cl-incf number) |
diff --git a/lisp/hexl.el b/lisp/hexl.el index d716405f97a..2c1a7de48a7 100644 --- a/lisp/hexl.el +++ b/lisp/hexl.el | |||
| @@ -1104,8 +1104,15 @@ This function is assumed to be used as callback function for `hl-line-mode'." | |||
| 1104 | "Return a string ruler for Hexl mode." | 1104 | "Return a string ruler for Hexl mode." |
| 1105 | (let* ((highlight (mod (hexl-current-address) 16)) | 1105 | (let* ((highlight (mod (hexl-current-address) 16)) |
| 1106 | (s (cdr (assq hexl-bits hexl-rulers))) | 1106 | (s (cdr (assq hexl-bits hexl-rulers))) |
| 1107 | (pos 0)) | 1107 | (pos 0) |
| 1108 | (lnum-width | ||
| 1109 | (if display-line-numbers | ||
| 1110 | (round (line-number-display-width 'columns)) | ||
| 1111 | 0))) | ||
| 1108 | (set-text-properties 0 (length s) nil s) | 1112 | (set-text-properties 0 (length s) nil s) |
| 1113 | (when (> lnum-width 0) | ||
| 1114 | (setq s (concat (make-string lnum-width ? ) s)) | ||
| 1115 | (setq pos (+ pos lnum-width))) | ||
| 1109 | ;; Turn spaces in the header into stretch specs so they work | 1116 | ;; Turn spaces in the header into stretch specs so they work |
| 1110 | ;; regardless of the header-line face. | 1117 | ;; regardless of the header-line face. |
| 1111 | (while (string-match "[ \t]+" s pos) | 1118 | (while (string-match "[ \t]+" s pos) |
| @@ -1116,10 +1123,11 @@ This function is assumed to be used as callback function for `hl-line-mode'." | |||
| 1116 | s)) | 1123 | s)) |
| 1117 | ;; Highlight the current column. | 1124 | ;; Highlight the current column. |
| 1118 | (let ( (offset (+ (* 2 highlight) (/ (* 8 highlight) hexl-bits))) ) | 1125 | (let ( (offset (+ (* 2 highlight) (/ (* 8 highlight) hexl-bits))) ) |
| 1126 | (if (> lnum-width 0) (setq offset (+ offset lnum-width))) | ||
| 1119 | (put-text-property (+ 11 offset) (+ 13 offset) 'face 'highlight s)) | 1127 | (put-text-property (+ 11 offset) (+ 13 offset) 'face 'highlight s)) |
| 1120 | ;; Highlight the current ascii column | 1128 | ;; Highlight the current ascii column |
| 1121 | (put-text-property (+ (hexl-ascii-start-column) highlight 1) | 1129 | (put-text-property (+ (hexl-ascii-start-column) lnum-width highlight 1) |
| 1122 | (+ (hexl-ascii-start-column) highlight 2) | 1130 | (+ (hexl-ascii-start-column) lnum-width highlight 2) |
| 1123 | 'face 'highlight s) | 1131 | 'face 'highlight s) |
| 1124 | s)) | 1132 | s)) |
| 1125 | 1133 | ||
diff --git a/src/dired.c b/src/dired.c index 115413dd6bc..a753b1930e6 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -358,17 +358,14 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable. | |||
| 358 | DEFUN ("directory-files-and-attributes", Fdirectory_files_and_attributes, | 358 | DEFUN ("directory-files-and-attributes", Fdirectory_files_and_attributes, |
| 359 | Sdirectory_files_and_attributes, 1, 5, 0, | 359 | Sdirectory_files_and_attributes, 1, 5, 0, |
| 360 | doc: /* Return a list of names of files and their attributes in DIRECTORY. | 360 | doc: /* Return a list of names of files and their attributes in DIRECTORY. |
| 361 | The list returned has elements that contain the data from | 361 | Value is a list of the form: |
| 362 | `file-attributes' for each file -- with the file name prepended. So | ||
| 363 | the structure of each element is | ||
| 364 | `(FILE-NAME FILE-ATTRIBUTE1 FILE-ATTRIBUTE2 ...)'. | ||
| 365 | 362 | ||
| 366 | For instance, to get the size of the fourth element in a directory, | 363 | ((FILE1 FILE1-ATTRS) (FILE2 FILE2-ATTRS) ...) |
| 367 | you could say: | ||
| 368 | 364 | ||
| 369 | (file-attribute-size (cdr (nth 3 (directory-files-and-attributes "/")))) | 365 | where each FILEn-ATTRS is the attributes of FILEn as returned |
| 366 | by `file-attributes'. | ||
| 370 | 367 | ||
| 371 | There are four optional arguments: | 368 | This function accepts four optional arguments: |
| 372 | If FULL is non-nil, return absolute file names. Otherwise return names | 369 | If FULL is non-nil, return absolute file names. Otherwise return names |
| 373 | that are relative to the specified directory. | 370 | that are relative to the specified directory. |
| 374 | If MATCH is non-nil, mention only file names that match the regexp MATCH. | 371 | If MATCH is non-nil, mention only file names that match the regexp MATCH. |