diff options
| author | Mattias EngdegÄrd | 2020-03-26 10:58:30 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-03-28 14:36:32 +0100 |
| commit | dfeb87d8e54ee5f2ce3e16d34a812131bb2f6e4d (patch) | |
| tree | 6a475f8207baeabed0768ab3cb9619ff7ef55b60 | |
| parent | e6c6486ee0b4e50c61c062f475bbe473cfd397f9 (diff) | |
| download | emacs-dfeb87d8e54ee5f2ce3e16d34a812131bb2f6e4d.tar.gz emacs-dfeb87d8e54ee5f2ce3e16d34a812131bb2f6e4d.zip | |
Turn compilation-error-case-fold-search into a defvar
See bug#40119, and the discussion at
https://lists.gnu.org/archive/html/emacs-devel/2020-03/msg00653.html
* lisp/progmodes/compile.el (compilation-error-case-fold-search):
Turn into a defvar.
* etc/NEWS: Update.
| -rw-r--r-- | etc/NEWS | 6 | ||||
| -rw-r--r-- | lisp/progmodes/compile.el | 10 |
2 files changed, 10 insertions, 6 deletions
| @@ -218,8 +218,10 @@ Defaults to 'libravatar', with 'unicornify' and 'gravatar' as options. | |||
| 218 | ** Compilation mode | 218 | ** Compilation mode |
| 219 | 219 | ||
| 220 | *** Regexp matching of messages is now case-sensitive by default. | 220 | *** Regexp matching of messages is now case-sensitive by default. |
| 221 | The user option 'compilation-error-case-fold-search' can be set | 221 | The variable 'compilation-error-case-fold-search' can be set for |
| 222 | for case-insensitive matching of messages. | 222 | case-insensitive matching of messages when the old behaviour is |
| 223 | required, but the recommended solution is to use a correctly matching | ||
| 224 | regexp instead. | ||
| 223 | 225 | ||
| 224 | 226 | ||
| 225 | * New Modes and Packages in Emacs 28.1 | 227 | * New Modes and Packages in Emacs 28.1 |
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index f4532b7edb7..e5878b28f96 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -646,13 +646,15 @@ matched file names, and weeding out false positives." | |||
| 646 | :link `(file-link :tag "example file" | 646 | :link `(file-link :tag "example file" |
| 647 | ,(expand-file-name "compilation.txt" data-directory))) | 647 | ,(expand-file-name "compilation.txt" data-directory))) |
| 648 | 648 | ||
| 649 | (defcustom compilation-error-case-fold-search nil | 649 | (defvar compilation-error-case-fold-search nil |
| 650 | "If non-nil, use case-insensitive matching of compilation errors | 650 | "If non-nil, use case-insensitive matching of compilation errors |
| 651 | by the regexps of `compilation-error-regexp-alist' and | 651 | by the regexps of `compilation-error-regexp-alist' and |
| 652 | `compilation-error-regexp-alist-alist'. | 652 | `compilation-error-regexp-alist-alist'. |
| 653 | If nil, matching is case-sensitive." | 653 | If nil, matching is case-sensitive. |
| 654 | :type 'boolean | 654 | |
| 655 | :version "28.1") | 655 | This variable should only be set for backward compatibility as a temporary |
| 656 | measure. The proper solution is to use a regexp that matches the | ||
| 657 | messages without case-folding.") | ||
| 656 | 658 | ||
| 657 | ;;;###autoload(put 'compilation-directory 'safe-local-variable 'stringp) | 659 | ;;;###autoload(put 'compilation-directory 'safe-local-variable 'stringp) |
| 658 | (defvar compilation-directory nil | 660 | (defvar compilation-directory nil |