aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2018-06-02 10:25:50 -0700
committerGlenn Morris2018-06-02 10:25:50 -0700
commit42a851c6347bb45a2fb8acdb0d2a1ca468ecefd3 (patch)
treebfd595460df8864956639fecc13636a94d413212
parent4a7e74fea687011ee81dcbb02294bccd99b3a05f (diff)
parentca3f0a8343c125a44845d21808ab0e35b87533db (diff)
downloademacs-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.ac7
-rw-r--r--doc/lispref/files.texi4
-rw-r--r--doc/misc/tramp.texi5
-rw-r--r--etc/NEWS.2645
-rw-r--r--lisp/emacs-lisp/rmc.el18
-rw-r--r--lisp/gnus/message.el4
-rw-r--r--lisp/hexl.el14
-rw-r--r--src/dired.c13
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.
2915This is similar to @code{directory-files} in deciding which files 2915This is similar to @code{directory-files} in deciding which files
2916to report on and how to report their names. However, instead 2916to report on and how to report their names. However, instead
2917of returning a list of file names, it returns for each file a 2917of returning a list of file names, it returns for each file a
2918list @code{(@var{filename} . @var{attributes})}, where @var{attributes} 2918list @code{(@var{filename} @var{attributes})}, where @var{attributes}
2919is what @code{file-attributes} would return for that file. 2919is what @code{file-attributes} returns for that file.
2920The optional argument @var{id-format} has the same meaning as the 2920The optional argument @var{id-format} has the same meaning as the
2921corresponding argument to @code{file-attributes} (@pxref{Definition 2921corresponding argument to @code{file-attributes} (@pxref{Definition
2922of file-attributes}). 2922of 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
3428This uses the default value of @code{tramp-terminal-type},
3429@samp{"dumb"}, as value of the @env{TERM} environment variable. If
3430you want to use another value for @env{TERM}, change
3431@code{tramp-terminal-type} and this line accordingly.
3432
3428When using fish shell on remote hosts, disable fancy formatting by 3433When using fish shell on remote hosts, disable fancy formatting by
3429adding the following to @file{~/.config/fish/config.fish}: 3434adding 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'
16with a prefix argument or by typing C-u C-h C-n. 16with 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
23To build Emacs with xwidgets support, you will need to install the
24webkit2gtk-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
26in 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.
44This is so as to better emulate the scrolling behavior of a text
45terminal when new output is added to the screen buffer. To get back
46the previous behavior, reset 'scroll-conservatively' to zero (or any
47other 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
49in 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.
31PROMPT should be a string that will be displayed as the prompt. 31PROMPT should be a string that will be displayed as the prompt.
32 32
33CHOICES is an alist where the first element in each entry is a 33CHOICES is a list of (KEY NAME [DESCRIPTION]). KEY is a
34character to be entered, the second element is a short name for 34character to be entered. NAME is a short name for the entry to
35the entry to be displayed while prompting (if there's room, it 35be displayed while prompting (if there's room, it might be
36might be shortened), and the third, optional entry is a longer 36shortened). DESCRIPTION is an optional longer explanation that
37explanation that will be displayed in a help buffer if the user 37will be displayed in a help buffer if the user requests more
38requests more help. 38help.
39 39
40This function translates user input into responses by consulting 40This function translates user input into responses by consulting
41the bindings in `query-replace-map'; see the documentation of 41the bindings in `query-replace-map'; see the documentation of
@@ -46,9 +46,9 @@ perform the requested window recentering or scrolling and ask
46again. 46again.
47 47
48When `use-dialog-box' is t (the default), this function can pop 48When `use-dialog-box' is t (the default), this function can pop
49up a dialog window to collect the user input. That functionality 49up a dialog window to collect the user input. That functionality
50requires `display-popup-menus-p' to return t. Otherwise, a text 50requires `display-popup-menus-p' to return t. Otherwise, a
51dialog will be used. 51text dialog will be used.
52 52
53The return value is the matching entry from the CHOICES list. 53The 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.
358DEFUN ("directory-files-and-attributes", Fdirectory_files_and_attributes, 358DEFUN ("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.
361The list returned has elements that contain the data from 361Value is a list of the form:
362`file-attributes' for each file -- with the file name prepended. So
363the structure of each element is
364`(FILE-NAME FILE-ATTRIBUTE1 FILE-ATTRIBUTE2 ...)'.
365 362
366For instance, to get the size of the fourth element in a directory, 363 ((FILE1 FILE1-ATTRS) (FILE2 FILE2-ATTRS) ...)
367you could say:
368 364
369 (file-attribute-size (cdr (nth 3 (directory-files-and-attributes "/")))) 365where each FILEn-ATTRS is the attributes of FILEn as returned
366by `file-attributes'.
370 367
371There are four optional arguments: 368This function accepts four optional arguments:
372If FULL is non-nil, return absolute file names. Otherwise return names 369If 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.
374If MATCH is non-nil, mention only file names that match the regexp MATCH. 371If MATCH is non-nil, mention only file names that match the regexp MATCH.