aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2019-03-01 09:40:22 -0800
committerGlenn Morris2019-03-01 09:40:22 -0800
commit3c1407cedf9787605cf6c8ea6071bc97acb169b4 (patch)
tree4718edd369ef5f4cf5f0c8c6ab6e8a67b8d862ec
parent7e29eae023c8158d41eba02c2367e70cbee53642 (diff)
parentdee3cdc50415a3fa45c6b043590d99adf47c7c69 (diff)
downloademacs-3c1407cedf9787605cf6c8ea6071bc97acb169b4.tar.gz
emacs-3c1407cedf9787605cf6c8ea6071bc97acb169b4.zip
Merge from origin/emacs-26
dee3cdc Minor improvement for docs of completion c86d419 ; * src/image.c (imagemagick_load, svg_load): Fix typos in co... 6d46fa9 Disable the timerfd interface on Cygwin 3707ea4 Fix a typo in the doc string of 'regex-opt' d9905d5 Document bash 5.0.0 misbehavior in tramp.texi (Bug#34192) # Conflicts: # doc/misc/tramp.texi
-rw-r--r--configure.ac4
-rw-r--r--doc/lispref/minibuf.texi39
-rw-r--r--doc/misc/tramp.texi4
-rw-r--r--lisp/emacs-lisp/regexp-opt.el4
-rw-r--r--src/image.c8
5 files changed, 38 insertions, 21 deletions
diff --git a/configure.ac b/configure.ac
index 110ea2909a9..cc2a597010f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4294,6 +4294,10 @@ AC_SUBST(LIBS_TERMCAP)
4294AC_SUBST(TERMCAP_OBJ) 4294AC_SUBST(TERMCAP_OBJ)
4295 4295
4296# GNU/Linux-specific timer functions. 4296# GNU/Linux-specific timer functions.
4297# Bug#34618.
4298if test "$opsys" = "cygwin"; then
4299 emacs_cv_have_timerfd=no
4300fi
4297AC_CACHE_CHECK([for timerfd interface], [emacs_cv_have_timerfd], 4301AC_CACHE_CHECK([for timerfd interface], [emacs_cv_have_timerfd],
4298 [AC_COMPILE_IFELSE( 4302 [AC_COMPILE_IFELSE(
4299 [AC_LANG_PROGRAM([[#include <sys/timerfd.h> 4303 [AC_LANG_PROGRAM([[#include <sys/timerfd.h>
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi
index 766079d7bcd..a2b6e145502 100644
--- a/doc/lispref/minibuf.texi
+++ b/doc/lispref/minibuf.texi
@@ -1108,11 +1108,11 @@ different function to completely override the normal behavior of
1108in the minibuffer to do completion. 1108in the minibuffer to do completion.
1109 1109
1110@defvar minibuffer-completion-table 1110@defvar minibuffer-completion-table
1111The value of this variable is the completion table used for completion 1111The value of this variable is the completion table (@pxref{Basic
1112in the minibuffer. This is the global variable that contains what 1112Completion}) used for completion in the minibuffer. This is the
1113@code{completing-read} passes to @code{try-completion}. It is used by 1113global variable that contains what @code{completing-read} passes to
1114minibuffer completion commands such as 1114@code{try-completion}. It is used by minibuffer completion commands
1115@code{minibuffer-complete-word}. 1115such as @code{minibuffer-complete-word}.
1116@end defvar 1116@end defvar
1117 1117
1118@defvar minibuffer-completion-predicate 1118@defvar minibuffer-completion-predicate
@@ -1770,7 +1770,8 @@ possible match, and ignore the match if the predicate returns
1770@code{nil}. 1770@code{nil}.
1771 1771
1772@item 1772@item
1773A flag specifying the type of completion operation to perform. This 1773A flag specifying the type of completion operation to perform; see
1774@ref{Basic Completion}, for the details of those operations. This
1774flag may be one of the following values. 1775flag may be one of the following values.
1775 1776
1776@table @code 1777@table @code
@@ -1841,17 +1842,26 @@ the same as for @code{display-sort-function}.
1841 1842
1842@defun completion-table-dynamic function &optional switch-buffer 1843@defun completion-table-dynamic function &optional switch-buffer
1843This function is a convenient way to write a function that can act as 1844This function is a convenient way to write a function that can act as
1844a programmed completion function. The argument @var{function} should be 1845a programmed completion function. The argument @var{function} should
1845a function that takes one argument, a string, and returns an alist of 1846be a function that takes one argument, a string, and returns a
1846possible completions of it. It is allowed to ignore the argument and 1847completion table (@pxref{Basic Completion}) containing all the
1847return a full list of all possible completions. You can think of 1848possible completions. The table returned by @var{function} can also
1848@code{completion-table-dynamic} as a transducer between that interface 1849include elements that don't match the string argument; they are
1850automatically filtered out by @code{completion-table-dynamic}. In
1851particular, @var{function} can ignore its argument and return a full
1852list of all possible completions. You can think of
1853@code{completion-table-dynamic} as a transducer between @var{function}
1849and the interface for programmed completion functions. 1854and the interface for programmed completion functions.
1850 1855
1851If the optional argument @var{switch-buffer} is non-@code{nil}, and 1856If the optional argument @var{switch-buffer} is non-@code{nil}, and
1852completion is performed in the minibuffer, @var{function} will be 1857completion is performed in the minibuffer, @var{function} will be
1853called with current buffer set to the buffer from which the minibuffer 1858called with current buffer set to the buffer from which the minibuffer
1854was entered. 1859was entered.
1860
1861The return value of @code{completion-table-dynamic} is a function that
1862can be used as the 2nd argument to @code{try-completion} and
1863@code{all-completions}. Note that this function will always return
1864empty metadata and trivial boundaries (@pxref{Programmed Completion}).
1855@end defun 1865@end defun
1856 1866
1857@defun completion-table-with-cache function &optional ignore-case 1867@defun completion-table-with-cache function &optional ignore-case
@@ -1876,9 +1886,10 @@ Emacs Manual}. This command uses the abnormal hook variable
1876 1886
1877@defvar completion-at-point-functions 1887@defvar completion-at-point-functions
1878The value of this abnormal hook should be a list of functions, which 1888The value of this abnormal hook should be a list of functions, which
1879are used to compute a completion table for completing the text at 1889are used to compute a completion table (@pxref{Basic Completion}) for
1880point. It can be used by major modes to provide mode-specific 1890completing the text at point. It can be used by major modes to
1881completion tables (@pxref{Major Mode Conventions}). 1891provide mode-specific completion tables (@pxref{Major Mode
1892Conventions}).
1882 1893
1883When the command @code{completion-at-point} runs, it calls the 1894When the command @code{completion-at-point} runs, it calls the
1884functions in the list one by one, without any argument. Each function 1895functions in the list one by one, without any argument. Each function
diff --git a/doc/misc/tramp.texi b/doc/misc/tramp.texi
index 3630c317b2f..db3b3f7fee5 100644
--- a/doc/misc/tramp.texi
+++ b/doc/misc/tramp.texi
@@ -3857,7 +3857,9 @@ Due to the remote shell saving tilde expansions triggered by
3857@value{tramp} can suppress this behavior with the user option 3857@value{tramp} can suppress this behavior with the user option
3858@code{tramp-histfile-override}. When set to @code{t}, environment 3858@code{tramp-histfile-override}. When set to @code{t}, environment
3859variable @env{HISTFILE} is unset, and environment variables 3859variable @env{HISTFILE} is unset, and environment variables
3860@env{HISTFILESIZE} and @env{HISTSIZE} are set to 0. 3860@env{HISTFILESIZE} and @env{HISTSIZE} are set to 0. Don't use this
3861with @command{bash} 5.0.0. There is a bug in @command{bash} which
3862lets @command{bash} die.
3861 3863
3862Alternatively, @code{tramp-histfile-override} could be a string. 3864Alternatively, @code{tramp-histfile-override} could be a string.
3863Environment variable @env{HISTFILE} is set to this file name then. Be 3865Environment variable @env{HISTFILE} is set to this file name then. Be
diff --git a/lisp/emacs-lisp/regexp-opt.el b/lisp/emacs-lisp/regexp-opt.el
index 152dca2309d..63786c1508c 100644
--- a/lisp/emacs-lisp/regexp-opt.el
+++ b/lisp/emacs-lisp/regexp-opt.el
@@ -121,9 +121,9 @@ than that of a simplified version:
121 ((eq paren \\='symbols) \\='(\"\\\\_<\\\\(\" . \"\\\\)\\\\_>\")) 121 ((eq paren \\='symbols) \\='(\"\\\\_<\\\\(\" . \"\\\\)\\\\_>\"))
122 ((null paren) \\='(\"\\\\(?:\" . \"\\\\)\")) 122 ((null paren) \\='(\"\\\\(?:\" . \"\\\\)\"))
123 (t \\='(\"\\\\(\" . \"\\\\)\"))))) 123 (t \\='(\"\\\\(\" . \"\\\\)\")))))
124 (concat (car paren) 124 (concat (car parens)
125 (mapconcat \\='regexp-quote strings \"\\\\|\") 125 (mapconcat \\='regexp-quote strings \"\\\\|\")
126 (cdr paren))))" 126 (cdr parens))))"
127 (save-match-data 127 (save-match-data
128 ;; Recurse on the sorted list. 128 ;; Recurse on the sorted list.
129 (let* ((max-lisp-eval-depth 10000) 129 (let* ((max-lisp-eval-depth 10000)
diff --git a/src/image.c b/src/image.c
index 642bf671520..854fbe40f75 100644
--- a/src/image.c
+++ b/src/image.c
@@ -9079,8 +9079,8 @@ imagemagick_load (struct frame *f, struct image *img)
9079#endif 9079#endif
9080 success_p = imagemagick_load_image (f, img, 0, 0, SSDATA (file)); 9080 success_p = imagemagick_load_image (f, img, 0, 0, SSDATA (file));
9081 } 9081 }
9082 /* Else its not a file, its a lisp object. Load the image from a 9082 /* Else it's not a file, it's a Lisp object. Load the image from a
9083 lisp object rather than a file. */ 9083 Lisp object rather than a file. */
9084 else 9084 else
9085 { 9085 {
9086 Lisp_Object data; 9086 Lisp_Object data;
@@ -9388,8 +9388,8 @@ svg_load (struct frame *f, struct image *img)
9388 SSDATA (ENCODE_FILE (file))); 9388 SSDATA (ENCODE_FILE (file)));
9389 xfree (contents); 9389 xfree (contents);
9390 } 9390 }
9391 /* Else its not a file, its a lisp object. Load the image from a 9391 /* Else it's not a file, it's a Lisp object. Load the image from a
9392 lisp object rather than a file. */ 9392 Lisp object rather than a file. */
9393 else 9393 else
9394 { 9394 {
9395 Lisp_Object data, original_filename; 9395 Lisp_Object data, original_filename;