diff options
| author | Juri Linkov | 2018-02-06 23:24:42 +0200 |
|---|---|---|
| committer | Juri Linkov | 2018-02-06 23:24:42 +0200 |
| commit | 109237e23a01901e70c70c41166ebefc26b1b24f (patch) | |
| tree | 36fcd48ffdb714db8bac8145cbf16d0a04a21cd4 | |
| parent | 31350817ae6eda2e071dbc28f1f1edc50e5f3b0c (diff) | |
| download | emacs-109237e23a01901e70c70c41166ebefc26b1b24f.tar.gz emacs-109237e23a01901e70c70c41166ebefc26b1b24f.zip | |
; Small fixes and indentation
| -rw-r--r-- | ChangeLog.2 | 6 | ||||
| -rw-r--r-- | lisp/isearch.el | 4 | ||||
| -rw-r--r-- | lisp/replace.el | 40 |
3 files changed, 25 insertions, 25 deletions
diff --git a/ChangeLog.2 b/ChangeLog.2 index 22c7e0116ba..356fbc788f3 100644 --- a/ChangeLog.2 +++ b/ChangeLog.2 | |||
| @@ -25940,9 +25940,9 @@ | |||
| 25940 | 2015-08-19 Artur Malabarba <bruce.connor.am@gmail.com> | 25940 | 2015-08-19 Artur Malabarba <bruce.connor.am@gmail.com> |
| 25941 | 25941 | ||
| 25942 | * lisp/isearch.el (isearch-search-fun-default): Revert a5bdb87 | 25942 | * lisp/isearch.el (isearch-search-fun-default): Revert a5bdb87 |
| 25943 | Remove usage of `isearch-lax-whitespace' inside the `iearch-word' | 25943 | Remove usage of `isearch-lax-whitespace' inside the `isearch-word' |
| 25944 | clause of `isearch-search-fun-default'. That lax variable does not | 25944 | clause of `isearch-search-fun-default'. That lax variable does not |
| 25945 | refer to lax-whitespacing. Related to (bug#21777). | 25945 | refer to lax-whitespacing. Related to (bug#21277). |
| 25946 | This reverts commit a5bdb872edb9f031fe041faf9a8c0be432e5f64c. | 25946 | This reverts commit a5bdb872edb9f031fe041faf9a8c0be432e5f64c. |
| 25947 | * lisp/character-fold.el (character-fold-search): Set to nil. | 25947 | * lisp/character-fold.el (character-fold-search): Set to nil. |
| 25948 | Default to nil for now, until someone implements proper | 25948 | Default to nil for now, until someone implements proper |
| @@ -29096,7 +29096,7 @@ | |||
| 29096 | * lisp/isearch.el: Move character-folding code to | 29096 | * lisp/isearch.el: Move character-folding code to |
| 29097 | character-fold.el | 29097 | character-fold.el |
| 29098 | (isearch-toggle-character-fold): New command. | 29098 | (isearch-toggle-character-fold): New command. |
| 29099 | (isearch-mode-map): Bind it to "\M-sf". | 29099 | (isearch-mode-map): Bind it to "\M-s'". |
| 29100 | (isearch-mode): Check value of `character-fold-search'. | 29100 | (isearch-mode): Check value of `character-fold-search'. |
| 29101 | 29101 | ||
| 29102 | 2015-06-24 Stefan Monnier <monnier@iro.umontreal.ca> | 29102 | 2015-06-24 Stefan Monnier <monnier@iro.umontreal.ca> |
diff --git a/lisp/isearch.el b/lisp/isearch.el index 729f629423c..41350c2d303 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -589,8 +589,8 @@ variable by the command `isearch-toggle-lax-whitespace'.") | |||
| 589 | (defvar isearch-cmds nil | 589 | (defvar isearch-cmds nil |
| 590 | "Stack of search status elements. | 590 | "Stack of search status elements. |
| 591 | Each element is an `isearch--state' struct where the slots are | 591 | Each element is an `isearch--state' struct where the slots are |
| 592 | [STRING MESSAGE POINT SUCCESS FORWARD OTHER-END WORD | 592 | [STRING MESSAGE POINT SUCCESS FORWARD OTHER-END WORD/REGEXP-FUNCTION |
| 593 | ERROR WRAPPED BARRIER CASE-FOLD-SEARCH]") | 593 | ERROR WRAPPED BARRIER CASE-FOLD-SEARCH POP-FUN]") |
| 594 | 594 | ||
| 595 | (defvar isearch-string "") ; The current search string. | 595 | (defvar isearch-string "") ; The current search string. |
| 596 | (defvar isearch-message "") ; text-char-description version of isearch-string | 596 | (defvar isearch-message "") ; text-char-description version of isearch-string |
diff --git a/lisp/replace.el b/lisp/replace.el index c6892328d71..c28c9b36f05 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | (defcustom replace-char-fold nil | 39 | (defcustom replace-char-fold nil |
| 40 | "Non-nil means replacement commands should do character folding in matches. | 40 | "Non-nil means replacement commands should do character folding in matches. |
| 41 | This means, for instance, that \\=' will match a large variety of | 41 | This means, for instance, that \\=' will match a large variety of |
| 42 | unicode quotes. | 42 | Unicode quotes. |
| 43 | This variable affects `query-replace' and `replace-string', but not | 43 | This variable affects `query-replace' and `replace-string', but not |
| 44 | `replace-regexp'." | 44 | `replace-regexp'." |
| 45 | :type 'boolean | 45 | :type 'boolean |
| @@ -1638,11 +1638,11 @@ See also `multi-occur'." | |||
| 1638 | (inhibit-field-text-motion t) | 1638 | (inhibit-field-text-motion t) |
| 1639 | (headerpt (with-current-buffer out-buf (point)))) | 1639 | (headerpt (with-current-buffer out-buf (point)))) |
| 1640 | (with-current-buffer buf | 1640 | (with-current-buffer buf |
| 1641 | ;; The following binding is for when case-fold-search | 1641 | ;; The following binding is for when case-fold-search |
| 1642 | ;; has a local binding in the original buffer, in which | 1642 | ;; has a local binding in the original buffer, in which |
| 1643 | ;; case we cannot bind it globally and let that have | 1643 | ;; case we cannot bind it globally and let that have |
| 1644 | ;; effect in every buffer we search. | 1644 | ;; effect in every buffer we search. |
| 1645 | (let ((case-fold-search case-fold)) | 1645 | (let ((case-fold-search case-fold)) |
| 1646 | (or coding | 1646 | (or coding |
| 1647 | ;; Set CODING only if the current buffer locally | 1647 | ;; Set CODING only if the current buffer locally |
| 1648 | ;; binds buffer-file-coding-system. | 1648 | ;; binds buffer-file-coding-system. |
| @@ -1708,9 +1708,9 @@ See also `multi-occur'." | |||
| 1708 | ;; at the end of the prefix | 1708 | ;; at the end of the prefix |
| 1709 | ;; (for Occur Edit mode). | 1709 | ;; (for Occur Edit mode). |
| 1710 | front-sticky t | 1710 | front-sticky t |
| 1711 | rear-nonsticky t | 1711 | rear-nonsticky t |
| 1712 | occur-target ,marker | 1712 | occur-target ,marker |
| 1713 | follow-link t | 1713 | follow-link t |
| 1714 | help-echo "mouse-2: go to this occurrence")))) | 1714 | help-echo "mouse-2: go to this occurrence")))) |
| 1715 | (match-str | 1715 | (match-str |
| 1716 | ;; We don't put `mouse-face' on the newline, | 1716 | ;; We don't put `mouse-face' on the newline, |
| @@ -1730,7 +1730,7 @@ See also `multi-occur'." | |||
| 1730 | "\n" | 1730 | "\n" |
| 1731 | (if prefix-face | 1731 | (if prefix-face |
| 1732 | (propertize | 1732 | (propertize |
| 1733 | "\n :" 'font-lock-face prefix-face) | 1733 | "\n :" 'font-lock-face prefix-face) |
| 1734 | "\n :") | 1734 | "\n :") |
| 1735 | match-str) | 1735 | match-str) |
| 1736 | ;; Add marker at eol, but no mouse props. | 1736 | ;; Add marker at eol, but no mouse props. |
| @@ -1777,7 +1777,7 @@ See also `multi-occur'." | |||
| 1777 | (setq curr-line (+ curr-line (count-lines begpt endpt) | 1777 | (setq curr-line (+ curr-line (count-lines begpt endpt) |
| 1778 | ;; Add 1 for empty last match line | 1778 | ;; Add 1 for empty last match line |
| 1779 | ;; since count-lines returns one | 1779 | ;; since count-lines returns one |
| 1780 | ;; line less. | 1780 | ;; line less. |
| 1781 | (if (and (bolp) (eolp)) 1 0))) | 1781 | (if (and (bolp) (eolp)) 1 0))) |
| 1782 | ;; On to the next match... | 1782 | ;; On to the next match... |
| 1783 | (forward-line 1)) | 1783 | (forward-line 1)) |
| @@ -1820,16 +1820,16 @@ See also `multi-occur'." | |||
| 1820 | (if (= lines matches) | 1820 | (if (= lines matches) |
| 1821 | "" (format " in %d line%s" | 1821 | "" (format " in %d line%s" |
| 1822 | lines | 1822 | lines |
| 1823 | (if (= lines 1) "" "s"))) | 1823 | (if (= lines 1) "" "s"))) |
| 1824 | ;; Don't display regexp for multi-buffer. | 1824 | ;; Don't display regexp for multi-buffer. |
| 1825 | (if (> (length buffers) 1) | 1825 | (if (> (length buffers) 1) |
| 1826 | "" (occur-regexp-descr regexp)) | 1826 | "" (occur-regexp-descr regexp)) |
| 1827 | (buffer-name buf) | 1827 | (buffer-name buf) |
| 1828 | (if in-region-p | 1828 | (if in-region-p |
| 1829 | (format " within region: %d-%d" | 1829 | (format " within region: %d-%d" |
| 1830 | occur--region-start | 1830 | occur--region-start |
| 1831 | occur--region-end) | 1831 | occur--region-end) |
| 1832 | "")) | 1832 | "")) |
| 1833 | 'read-only t)) | 1833 | 'read-only t)) |
| 1834 | (setq end (point)) | 1834 | (setq end (point)) |
| 1835 | (add-text-properties beg end `(occur-title ,buf)) | 1835 | (add-text-properties beg end `(occur-title ,buf)) |
| @@ -2220,9 +2220,9 @@ It is called with three arguments, as if it were | |||
| 2220 | ;; used after `recursive-edit' might override them. | 2220 | ;; used after `recursive-edit' might override them. |
| 2221 | (let* ((isearch-regexp regexp-flag) | 2221 | (let* ((isearch-regexp regexp-flag) |
| 2222 | (isearch-regexp-function (or delimited-flag | 2222 | (isearch-regexp-function (or delimited-flag |
| 2223 | (and replace-char-fold | 2223 | (and replace-char-fold |
| 2224 | (not regexp-flag) | 2224 | (not regexp-flag) |
| 2225 | #'char-fold-to-regexp))) | 2225 | #'char-fold-to-regexp))) |
| 2226 | (isearch-lax-whitespace | 2226 | (isearch-lax-whitespace |
| 2227 | replace-lax-whitespace) | 2227 | replace-lax-whitespace) |
| 2228 | (isearch-regexp-lax-whitespace | 2228 | (isearch-regexp-lax-whitespace |