diff options
| author | Paul Eggert | 2016-09-26 13:39:17 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-09-26 13:39:17 -0700 |
| commit | a2513667af6c1cfc58e971b9a5476cd5edfaef1c (patch) | |
| tree | 1e02fcc7d96e31aedb28ebb618b8e3f484be9c9a | |
| parent | ffd6a03521de0a177db217e56cd6564ef60348fe (diff) | |
| parent | 9fc9988d4d08028fb37c588f5e0483ac85b713d3 (diff) | |
| download | emacs-a2513667af6c1cfc58e971b9a5476cd5edfaef1c.tar.gz emacs-a2513667af6c1cfc58e971b9a5476cd5edfaef1c.zip | |
Merge from origin/emacs-25
9fc9988 Improve documentation of 'expand-abbrev' and wrapper hooks
c14a1d4 Minor copyedits of MS-Windows installation instructions
f281924 Fix display of cursor when 'blink-cursor-delay' has small value
# Conflicts:
# lisp/minibuffer.el
| -rw-r--r-- | doc/lispref/text.texi | 4 | ||||
| -rw-r--r-- | lisp/abbrev.el | 9 | ||||
| -rw-r--r-- | lisp/frame.el | 12 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 6 | ||||
| -rw-r--r-- | lisp/simple.el | 6 | ||||
| -rw-r--r-- | nt/INSTALL | 22 | ||||
| -rw-r--r-- | nt/README.W32 | 18 |
7 files changed, 53 insertions, 24 deletions
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 213eec9d3c8..c6a3eb035ad 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -232,7 +232,9 @@ using a function specified by the variable | |||
| 232 | @code{filter-buffer-substring-function}, and returns the result. | 232 | @code{filter-buffer-substring-function}, and returns the result. |
| 233 | 233 | ||
| 234 | The default filter function consults the obsolete wrapper hook | 234 | The default filter function consults the obsolete wrapper hook |
| 235 | @code{filter-buffer-substring-functions}, and the obsolete variable | 235 | @code{filter-buffer-substring-functions} (see the documentation string |
| 236 | of the macro @code{with-wrapper-hook} for the details about this | ||
| 237 | obsolete facility), and the obsolete variable | ||
| 236 | @code{buffer-substring-filters}. If both of these are @code{nil}, it | 238 | @code{buffer-substring-filters}. If both of these are @code{nil}, it |
| 237 | returns the unaltered text from the buffer, i.e., what | 239 | returns the unaltered text from the buffer, i.e., what |
| 238 | @code{buffer-substring} would return. | 240 | @code{buffer-substring} would return. |
diff --git a/lisp/abbrev.el b/lisp/abbrev.el index 163dc8e5727..b6d202c1807 100644 --- a/lisp/abbrev.el +++ b/lisp/abbrev.el | |||
| @@ -837,16 +837,17 @@ Takes no argument and should return the abbrev symbol if expansion took place.") | |||
| 837 | "Expand the abbrev before point, if there is an abbrev there. | 837 | "Expand the abbrev before point, if there is an abbrev there. |
| 838 | Effective when explicitly called even when `abbrev-mode' is nil. | 838 | Effective when explicitly called even when `abbrev-mode' is nil. |
| 839 | Before doing anything else, runs `pre-abbrev-expand-hook'. | 839 | Before doing anything else, runs `pre-abbrev-expand-hook'. |
| 840 | Calls `abbrev-expand-function' with no argument to do the work, | 840 | Calls the value of `abbrev-expand-function' with no argument to do |
| 841 | and returns whatever it does. (This should be the abbrev symbol | 841 | the work, and returns whatever it does. (That return value should |
| 842 | if expansion occurred, else nil.)" | 842 | be the abbrev symbol if expansion occurred, else nil.)" |
| 843 | (interactive) | 843 | (interactive) |
| 844 | (run-hooks 'pre-abbrev-expand-hook) | 844 | (run-hooks 'pre-abbrev-expand-hook) |
| 845 | (funcall abbrev-expand-function)) | 845 | (funcall abbrev-expand-function)) |
| 846 | 846 | ||
| 847 | (defun abbrev--default-expand () | 847 | (defun abbrev--default-expand () |
| 848 | "Default function to use for `abbrev-expand-function'. | 848 | "Default function to use for `abbrev-expand-function'. |
| 849 | This respects the wrapper hook `abbrev-expand-functions'. | 849 | This also respects the obsolete wrapper hook `abbrev-expand-functions'. |
| 850 | \(See `with-wrapper-hook' for details about wrapper hooks.) | ||
| 850 | Calls `abbrev-insert' to insert any expansion, and returns what it does." | 851 | Calls `abbrev-insert' to insert any expansion, and returns what it does." |
| 851 | (subr--with-wrapper-hook-no-warnings abbrev-expand-functions () | 852 | (subr--with-wrapper-hook-no-warnings abbrev-expand-functions () |
| 852 | (pcase-let ((`(,sym ,name ,wordstart ,wordend) (abbrev--before-point))) | 853 | (pcase-let ((`(,sym ,name ,wordstart ,wordend) (abbrev--before-point))) |
diff --git a/lisp/frame.el b/lisp/frame.el index cfd40bf22fc..b13621a5c50 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -2114,7 +2114,11 @@ This is done when a frame gets focus. Blink timers may be stopped by | |||
| 2114 | (not blink-cursor-idle-timer)) | 2114 | (not blink-cursor-idle-timer)) |
| 2115 | (remove-hook 'post-command-hook 'blink-cursor-check) | 2115 | (remove-hook 'post-command-hook 'blink-cursor-check) |
| 2116 | (setq blink-cursor-idle-timer | 2116 | (setq blink-cursor-idle-timer |
| 2117 | (run-with-idle-timer blink-cursor-delay | 2117 | ;; The 0.2 sec limitation from below is to avoid erratic |
| 2118 | ;; behavior (or downright failure to display the cursor | ||
| 2119 | ;; during command execution) if they set blink-cursor-delay | ||
| 2120 | ;; to a very small or even zero value. | ||
| 2121 | (run-with-idle-timer (max 0.2 blink-cursor-delay) | ||
| 2118 | blink-cursor-delay | 2122 | blink-cursor-delay |
| 2119 | 'blink-cursor-start)))) | 2123 | 'blink-cursor-start)))) |
| 2120 | 2124 | ||
| @@ -2148,7 +2152,11 @@ terminals, cursor blinking is controlled by the terminal." | |||
| 2148 | (add-hook 'focus-in-hook #'blink-cursor-check) | 2152 | (add-hook 'focus-in-hook #'blink-cursor-check) |
| 2149 | (add-hook 'focus-out-hook #'blink-cursor-suspend) | 2153 | (add-hook 'focus-out-hook #'blink-cursor-suspend) |
| 2150 | (setq blink-cursor-idle-timer | 2154 | (setq blink-cursor-idle-timer |
| 2151 | (run-with-idle-timer blink-cursor-delay | 2155 | ;; The 0.2 sec limitation from below is to avoid erratic |
| 2156 | ;; behavior (or downright failure to display the cursor | ||
| 2157 | ;; during command execution) if they set blink-cursor-delay | ||
| 2158 | ;; to a very small or even zero value. | ||
| 2159 | (run-with-idle-timer (max 0.2 blink-cursor-delay) | ||
| 2152 | blink-cursor-delay | 2160 | blink-cursor-delay |
| 2153 | #'blink-cursor-start)))) | 2161 | #'blink-cursor-start)))) |
| 2154 | 2162 | ||
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 9190c1fb203..3d63ca8bd5f 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -1925,7 +1925,8 @@ variables.") | |||
| 1925 | (exit-minibuffer)) | 1925 | (exit-minibuffer)) |
| 1926 | 1926 | ||
| 1927 | (defvar completion-in-region-functions nil | 1927 | (defvar completion-in-region-functions nil |
| 1928 | "Wrapper hook around `completion--in-region'.") | 1928 | "Wrapper hook around `completion--in-region'. |
| 1929 | \(See `with-wrapper-hook' for details about wrapper hooks.)") | ||
| 1929 | (make-obsolete-variable 'completion-in-region-functions | 1930 | (make-obsolete-variable 'completion-in-region-functions |
| 1930 | 'completion-in-region-function "24.4") | 1931 | 'completion-in-region-function "24.4") |
| 1931 | 1932 | ||
| @@ -1969,7 +1970,8 @@ if there was no valid completion, else t." | |||
| 1969 | (defun completion--in-region (start end collection &optional predicate) | 1970 | (defun completion--in-region (start end collection &optional predicate) |
| 1970 | "Default function to use for `completion-in-region-function'. | 1971 | "Default function to use for `completion-in-region-function'. |
| 1971 | Its arguments and return value are as specified for `completion-in-region'. | 1972 | Its arguments and return value are as specified for `completion-in-region'. |
| 1972 | This respects the wrapper hook `completion-in-region-functions'." | 1973 | Also respects the obsolete wrapper hook `completion-in-region-functions'. |
| 1974 | \(See `with-wrapper-hook' for details about wrapper hooks.)" | ||
| 1973 | (subr--with-wrapper-hook-no-warnings | 1975 | (subr--with-wrapper-hook-no-warnings |
| 1974 | ;; FIXME: Maybe we should use this hook to provide a "display | 1976 | ;; FIXME: Maybe we should use this hook to provide a "display |
| 1975 | ;; completions" operation as well. | 1977 | ;; completions" operation as well. |
diff --git a/lisp/simple.el b/lisp/simple.el index 7e68baa02f8..dd253aec7d5 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -4121,7 +4121,8 @@ These commands include \\[set-mark-command] and \\[start-kbd-macro]." | |||
| 4121 | 4121 | ||
| 4122 | 4122 | ||
| 4123 | (defvar filter-buffer-substring-functions nil | 4123 | (defvar filter-buffer-substring-functions nil |
| 4124 | "This variable is a wrapper hook around `buffer-substring--filter'.") | 4124 | "This variable is a wrapper hook around `buffer-substring--filter'. |
| 4125 | \(See `with-wrapper-hook' for details about wrapper hooks.)") | ||
| 4125 | (make-obsolete-variable 'filter-buffer-substring-functions | 4126 | (make-obsolete-variable 'filter-buffer-substring-functions |
| 4126 | 'filter-buffer-substring-function "24.4") | 4127 | 'filter-buffer-substring-function "24.4") |
| 4127 | 4128 | ||
| @@ -4162,7 +4163,8 @@ that are special to a buffer, and should not be copied into other buffers." | |||
| 4162 | (defun buffer-substring--filter (beg end &optional delete) | 4163 | (defun buffer-substring--filter (beg end &optional delete) |
| 4163 | "Default function to use for `filter-buffer-substring-function'. | 4164 | "Default function to use for `filter-buffer-substring-function'. |
| 4164 | Its arguments and return value are as specified for `filter-buffer-substring'. | 4165 | Its arguments and return value are as specified for `filter-buffer-substring'. |
| 4165 | This respects the wrapper hook `filter-buffer-substring-functions', | 4166 | Also respects the obsolete wrapper hook `filter-buffer-substring-functions' |
| 4167 | \(see `with-wrapper-hook' for details about wrapper hooks), | ||
| 4166 | and the abnormal hook `buffer-substring-filters'. | 4168 | and the abnormal hook `buffer-substring-filters'. |
| 4167 | No filtering is done unless a hook says to." | 4169 | No filtering is done unless a hook says to." |
| 4168 | (subr--with-wrapper-hook-no-warnings | 4170 | (subr--with-wrapper-hook-no-warnings |
diff --git a/nt/INSTALL b/nt/INSTALL index fff0eb6f8d9..cd726cbecbb 100644 --- a/nt/INSTALL +++ b/nt/INSTALL | |||
| @@ -633,11 +633,13 @@ build will run on Windows 9X and newer systems). | |||
| 633 | 633 | ||
| 634 | To support XPM images (required for color tool-bar icons), you will | 634 | To support XPM images (required for color tool-bar icons), you will |
| 635 | need the libXpm library. It is available from the ezwinports site, | 635 | need the libXpm library. It is available from the ezwinports site, |
| 636 | http://sourceforge.net/projects/ezwinports/files/. | 636 | http://sourceforge.net/projects/ezwinports/files/ and from |
| 637 | http://alpha.gnu.org/gnu/emacs/pretest/windows/. | ||
| 637 | 638 | ||
| 638 | For PNG images, we recommend to use versions 1.4.x and later of | 639 | For PNG images, we recommend to use versions 1.4.x and later of |
| 639 | libpng, because previous versions had security issues. You can find | 640 | libpng, because previous versions had security issues. You can find |
| 640 | precompiled libraries and headers on the ezwinports site. | 641 | precompiled libraries and headers on the ezwinports site and on |
| 642 | alpha.gnu. | ||
| 641 | 643 | ||
| 642 | Versions 1.4.0 and later of libpng are binary incompatible with | 644 | Versions 1.4.0 and later of libpng are binary incompatible with |
| 643 | earlier versions, so Emacs will only look for libpng libraries which | 645 | earlier versions, so Emacs will only look for libpng libraries which |
| @@ -654,7 +656,8 @@ build will run on Windows 9X and newer systems). | |||
| 654 | For GIF images, we recommend to use versions 5.0.0 or later of | 656 | For GIF images, we recommend to use versions 5.0.0 or later of |
| 655 | giflib, as it is much enhanced wrt previous versions. You can find | 657 | giflib, as it is much enhanced wrt previous versions. You can find |
| 656 | precompiled binaries and headers for giflib on the ezwinports site, | 658 | precompiled binaries and headers for giflib on the ezwinports site, |
| 657 | http://sourceforge.net/projects/ezwinports/files/. | 659 | http://sourceforge.net/projects/ezwinports/files/ and on |
| 660 | http://alpha.gnu.org/gnu/emacs/pretest/windows/. | ||
| 658 | 661 | ||
| 659 | Version 5.0.0 and later of giflib are binary incompatible with | 662 | Version 5.0.0 and later of giflib are binary incompatible with |
| 660 | previous versions (the signatures of several functions have | 663 | previous versions (the signatures of several functions have |
| @@ -668,7 +671,7 @@ build will run on Windows 9X and newer systems). | |||
| 668 | 671 | ||
| 669 | For JPEG images, you will need libjpeg 6b or later, which will be | 672 | For JPEG images, you will need libjpeg 6b or later, which will be |
| 670 | called libjpeg-N.dll, jpeg62.dll, libjpeg.dll, or jpeg.dll. You can | 673 | called libjpeg-N.dll, jpeg62.dll, libjpeg.dll, or jpeg.dll. You can |
| 671 | find these on the ezwinports site. | 674 | find these on the ezwinports site and on alpha.gnu. |
| 672 | 675 | ||
| 673 | TIFF images require libTIFF 3.0 or later, which will be called | 676 | TIFF images require libTIFF 3.0 or later, which will be called |
| 674 | libtiffN.dll or libtiff-N.dll or libtiff.dll. These can be found on | 677 | libtiffN.dll or libtiff-N.dll or libtiff.dll. These can be found on |
| @@ -695,6 +698,10 @@ build will run on Windows 9X and newer systems). | |||
| 695 | because the compiler needs to see their header files when building | 698 | because the compiler needs to see their header files when building |
| 696 | Emacs. | 699 | Emacs. |
| 697 | 700 | ||
| 701 | http://alpha.gnu.org/gnu/emacs/pretest/windows/ | ||
| 702 | |||
| 703 | More fat ports, from the MSYS2 project. | ||
| 704 | |||
| 698 | To use librsvg at runtime, ensure that librsvg and its dependencies | 705 | To use librsvg at runtime, ensure that librsvg and its dependencies |
| 699 | are on your PATH, or in the same directory as the emacs.exe binary. | 706 | are on your PATH, or in the same directory as the emacs.exe binary. |
| 700 | If you are downloading from the ezwinports site, you only need to | 707 | If you are downloading from the ezwinports site, you only need to |
| @@ -751,7 +758,8 @@ build will run on Windows 9X and newer systems). | |||
| 751 | session. | 758 | session. |
| 752 | 759 | ||
| 753 | You can get pre-built binaries (including any required DLL and the | 760 | You can get pre-built binaries (including any required DLL and the |
| 754 | header files) at http://sourceforge.net/projects/ezwinports/files/. | 761 | header files) at http://sourceforge.net/projects/ezwinports/files/ |
| 762 | and on http://alpha.gnu.org/gnu/emacs/pretest/windows/. | ||
| 755 | 763 | ||
| 756 | * Optional libxml2 support | 764 | * Optional libxml2 support |
| 757 | 765 | ||
| @@ -773,6 +781,7 @@ build will run on Windows 9X and newer systems). | |||
| 773 | (including any required DLL and the header files) is here: | 781 | (including any required DLL and the header files) is here: |
| 774 | 782 | ||
| 775 | http://sourceforge.net/projects/ezwinports/files/ | 783 | http://sourceforge.net/projects/ezwinports/files/ |
| 784 | http://alpha.gnu.org/gnu/emacs/pretest/windows/ | ||
| 776 | 785 | ||
| 777 | For runtime support of libxml2, you will also need to install the | 786 | For runtime support of libxml2, you will also need to install the |
| 778 | libiconv "development" tarball, because the libiconv headers need to | 787 | libiconv "development" tarball, because the libiconv headers need to |
| @@ -788,7 +797,8 @@ build will run on Windows 9X and newer systems). | |||
| 788 | 797 | ||
| 789 | Emacs can decompress text if compiled with the zlib library. | 798 | Emacs can decompress text if compiled with the zlib library. |
| 790 | Prebuilt binaries of zlib DLL (for 32-bit builds of Emacs) are | 799 | Prebuilt binaries of zlib DLL (for 32-bit builds of Emacs) are |
| 791 | available from the ezwinports site; see above for the URL. | 800 | available from the ezwinports site and on alpha.gnu; see above for |
| 801 | the URLs. | ||
| 792 | 802 | ||
| 793 | (This library is also a prerequisite for several image libraries, so | 803 | (This library is also a prerequisite for several image libraries, so |
| 794 | you may already have it; look for zlib1.dll or libz-1.dll.) | 804 | you may already have it; look for zlib1.dll or libz-1.dll.) |
diff --git a/nt/README.W32 b/nt/README.W32 index a061596da55..e3f6094f9be 100644 --- a/nt/README.W32 +++ b/nt/README.W32 | |||
| @@ -140,10 +140,12 @@ See the end of the file for license conditions. | |||
| 140 | 140 | ||
| 141 | 1. http://sourceforge.net/projects/ezwinports/files/ | 141 | 1. http://sourceforge.net/projects/ezwinports/files/ |
| 142 | -- up-to-date builds, self-contained archives, only for 32-bit Emacs | 142 | -- up-to-date builds, self-contained archives, only for 32-bit Emacs |
| 143 | 2. The MSYS2 project -- for 64-bit Emacs: | 143 | 2. Libraries from the MSYS2 project on alpha.gnu.org: |
| 144 | http://alpha.gnu.org/gnu/emacs/pretest/windows/. | ||
| 145 | 3. The MSYS2 project -- for 64-bit Emacs: | ||
| 144 | http://msys2.github.io/ | 146 | http://msys2.github.io/ |
| 145 | https://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/ | 147 | https://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64/ |
| 146 | 3. GnuWin32 project -- very old 32-bit builds, not recommended | 148 | 4. GnuWin32 project -- very old 32-bit builds, not recommended |
| 147 | 149 | ||
| 148 | The libraries to download are mentioned below. Some libraries | 150 | The libraries to download are mentioned below. Some libraries |
| 149 | depend on others that need to be downloaded separately from the same | 151 | depend on others that need to be downloaded separately from the same |
| @@ -197,7 +199,8 @@ See the end of the file for license conditions. | |||
| 197 | but GnuTLS won't be available to the running session. | 199 | but GnuTLS won't be available to the running session. |
| 198 | 200 | ||
| 199 | You can get pre-built binaries (including any dependency DLLs) at | 201 | You can get pre-built binaries (including any dependency DLLs) at |
| 200 | http://sourceforge.net/projects/ezwinports/files/. | 202 | http://sourceforge.net/projects/ezwinports/files/ and on |
| 203 | http://alpha.gnu.org/gnu/emacs/pretest/windows/. | ||
| 201 | 204 | ||
| 202 | * libxml2 support | 205 | * libxml2 support |
| 203 | 206 | ||
| @@ -210,7 +213,8 @@ See the end of the file for license conditions. | |||
| 210 | running session. | 213 | running session. |
| 211 | 214 | ||
| 212 | You can get pre-built binaries (including any required DLL and the | 215 | You can get pre-built binaries (including any required DLL and the |
| 213 | header files) at http://sourceforge.net/projects/ezwinports/files/. | 216 | header files) at http://sourceforge.net/projects/ezwinports/files/ and |
| 217 | http://alpha.gnu.org/gnu/emacs/pretest/windows/. | ||
| 214 | 218 | ||
| 215 | 219 | ||
| 216 | * zlib support | 220 | * zlib support |
| @@ -219,9 +223,9 @@ See the end of the file for license conditions. | |||
| 219 | the zlib-decompress-region primitive. | 223 | the zlib-decompress-region primitive. |
| 220 | 224 | ||
| 221 | Prebuilt binaries of zlib DLL (for 32-bit builds of Emacs) are | 225 | Prebuilt binaries of zlib DLL (for 32-bit builds of Emacs) are |
| 222 | available from the ezwinports site; see above for the URL. For the | 226 | available from the ezwinports site and on alpha.gnu; see above for |
| 223 | 64-bit DLL, see the instructions below for installing from MSYS2 | 227 | the URLs. For the 64-bit DLL, see the instructions below for |
| 224 | site. | 228 | installing from MSYS2 site. |
| 225 | 229 | ||
| 226 | (This library is also a prerequisite for several image libraries, so | 230 | (This library is also a prerequisite for several image libraries, so |
| 227 | you may already have it; look for zlib1.dll or libz-1.dll.) | 231 | you may already have it; look for zlib1.dll or libz-1.dll.) |