diff options
| author | Glenn Morris | 2019-03-01 09:40:22 -0800 |
|---|---|---|
| committer | Glenn Morris | 2019-03-01 09:40:22 -0800 |
| commit | 3c1407cedf9787605cf6c8ea6071bc97acb169b4 (patch) | |
| tree | 4718edd369ef5f4cf5f0c8c6ab6e8a67b8d862ec | |
| parent | 7e29eae023c8158d41eba02c2367e70cbee53642 (diff) | |
| parent | dee3cdc50415a3fa45c6b043590d99adf47c7c69 (diff) | |
| download | emacs-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.ac | 4 | ||||
| -rw-r--r-- | doc/lispref/minibuf.texi | 39 | ||||
| -rw-r--r-- | doc/misc/tramp.texi | 4 | ||||
| -rw-r--r-- | lisp/emacs-lisp/regexp-opt.el | 4 | ||||
| -rw-r--r-- | src/image.c | 8 |
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) | |||
| 4294 | AC_SUBST(TERMCAP_OBJ) | 4294 | AC_SUBST(TERMCAP_OBJ) |
| 4295 | 4295 | ||
| 4296 | # GNU/Linux-specific timer functions. | 4296 | # GNU/Linux-specific timer functions. |
| 4297 | # Bug#34618. | ||
| 4298 | if test "$opsys" = "cygwin"; then | ||
| 4299 | emacs_cv_have_timerfd=no | ||
| 4300 | fi | ||
| 4297 | AC_CACHE_CHECK([for timerfd interface], [emacs_cv_have_timerfd], | 4301 | AC_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 | |||
| 1108 | in the minibuffer to do completion. | 1108 | in the minibuffer to do completion. |
| 1109 | 1109 | ||
| 1110 | @defvar minibuffer-completion-table | 1110 | @defvar minibuffer-completion-table |
| 1111 | The value of this variable is the completion table used for completion | 1111 | The value of this variable is the completion table (@pxref{Basic |
| 1112 | in the minibuffer. This is the global variable that contains what | 1112 | Completion}) used for completion in the minibuffer. This is the |
| 1113 | @code{completing-read} passes to @code{try-completion}. It is used by | 1113 | global variable that contains what @code{completing-read} passes to |
| 1114 | minibuffer completion commands such as | 1114 | @code{try-completion}. It is used by minibuffer completion commands |
| 1115 | @code{minibuffer-complete-word}. | 1115 | such 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 |
| 1773 | A flag specifying the type of completion operation to perform. This | 1773 | A flag specifying the type of completion operation to perform; see |
| 1774 | @ref{Basic Completion}, for the details of those operations. This | ||
| 1774 | flag may be one of the following values. | 1775 | flag 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 |
| 1843 | This function is a convenient way to write a function that can act as | 1844 | This function is a convenient way to write a function that can act as |
| 1844 | a programmed completion function. The argument @var{function} should be | 1845 | a programmed completion function. The argument @var{function} should |
| 1845 | a function that takes one argument, a string, and returns an alist of | 1846 | be a function that takes one argument, a string, and returns a |
| 1846 | possible completions of it. It is allowed to ignore the argument and | 1847 | completion table (@pxref{Basic Completion}) containing all the |
| 1847 | return a full list of all possible completions. You can think of | 1848 | possible completions. The table returned by @var{function} can also |
| 1848 | @code{completion-table-dynamic} as a transducer between that interface | 1849 | include elements that don't match the string argument; they are |
| 1850 | automatically filtered out by @code{completion-table-dynamic}. In | ||
| 1851 | particular, @var{function} can ignore its argument and return a full | ||
| 1852 | list of all possible completions. You can think of | ||
| 1853 | @code{completion-table-dynamic} as a transducer between @var{function} | ||
| 1849 | and the interface for programmed completion functions. | 1854 | and the interface for programmed completion functions. |
| 1850 | 1855 | ||
| 1851 | If the optional argument @var{switch-buffer} is non-@code{nil}, and | 1856 | If the optional argument @var{switch-buffer} is non-@code{nil}, and |
| 1852 | completion is performed in the minibuffer, @var{function} will be | 1857 | completion is performed in the minibuffer, @var{function} will be |
| 1853 | called with current buffer set to the buffer from which the minibuffer | 1858 | called with current buffer set to the buffer from which the minibuffer |
| 1854 | was entered. | 1859 | was entered. |
| 1860 | |||
| 1861 | The return value of @code{completion-table-dynamic} is a function that | ||
| 1862 | can be used as the 2nd argument to @code{try-completion} and | ||
| 1863 | @code{all-completions}. Note that this function will always return | ||
| 1864 | empty 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 |
| 1878 | The value of this abnormal hook should be a list of functions, which | 1888 | The value of this abnormal hook should be a list of functions, which |
| 1879 | are used to compute a completion table for completing the text at | 1889 | are used to compute a completion table (@pxref{Basic Completion}) for |
| 1880 | point. It can be used by major modes to provide mode-specific | 1890 | completing the text at point. It can be used by major modes to |
| 1881 | completion tables (@pxref{Major Mode Conventions}). | 1891 | provide mode-specific completion tables (@pxref{Major Mode |
| 1892 | Conventions}). | ||
| 1882 | 1893 | ||
| 1883 | When the command @code{completion-at-point} runs, it calls the | 1894 | When the command @code{completion-at-point} runs, it calls the |
| 1884 | functions in the list one by one, without any argument. Each function | 1895 | functions 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 |
| 3859 | variable @env{HISTFILE} is unset, and environment variables | 3859 | variable @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 |
| 3861 | with @command{bash} 5.0.0. There is a bug in @command{bash} which | ||
| 3862 | lets @command{bash} die. | ||
| 3861 | 3863 | ||
| 3862 | Alternatively, @code{tramp-histfile-override} could be a string. | 3864 | Alternatively, @code{tramp-histfile-override} could be a string. |
| 3863 | Environment variable @env{HISTFILE} is set to this file name then. Be | 3865 | Environment 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; |