diff options
| author | Dmitry Kurochkin | 2011-05-24 15:15:07 -0300 |
|---|---|---|
| committer | Stefan Monnier | 2011-05-24 15:15:07 -0300 |
| commit | 4d90d6d07885c641d9e4c4458345107c0ef602c3 (patch) | |
| tree | 45f3b12b34184073e34413288d69090370678d4f | |
| parent | 73b788823fd8c2476f39f0c4576ba3baf55bc500 (diff) | |
| download | emacs-4d90d6d07885c641d9e4c4458345107c0ef602c3.tar.gz emacs-4d90d6d07885c641d9e4c4458345107c0ef602c3.zip | |
* lisp/isearch.el (isearch-range-invisible): Use invisible-p.
Fixes: debbugs:8721
| -rw-r--r-- | lisp/ChangeLog | 12 | ||||
| -rw-r--r-- | lisp/isearch.el | 13 |
2 files changed, 10 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index bf7977ced08..975ddde8bcc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-05-24 Dmitry Kurochkin <dmitry.kurochkin@gmail.com> (tiny change) | ||
| 2 | |||
| 3 | * isearch.el (isearch-range-invisible): Use invisible-p (bug#8721). | ||
| 4 | |||
| 1 | 2011-05-24 Leo Liu <sdl.web@gmail.com> | 5 | 2011-05-24 Leo Liu <sdl.web@gmail.com> |
| 2 | 6 | ||
| 3 | * vc/vc-bzr.el (vc-bzr-sha1-program): Rename from sha1-program. | 7 | * vc/vc-bzr.el (vc-bzr-sha1-program): Rename from sha1-program. |
| @@ -13,15 +17,15 @@ | |||
| 13 | (mail-insert-from-field): Do not perform RFC2047 encoding. | 17 | (mail-insert-from-field): Do not perform RFC2047 encoding. |
| 14 | (mail-encode-header): New function. | 18 | (mail-encode-header): New function. |
| 15 | (sendmail-send-it): Set buffer-file-coding-system of the work | 19 | (sendmail-send-it): Set buffer-file-coding-system of the work |
| 16 | buffer to the return value of select-message-coding-system. Call | 20 | buffer to the return value of select-message-coding-system. |
| 17 | mail-encode-header. | 21 | Call mail-encode-header. |
| 18 | 22 | ||
| 19 | * mail/smtpmail.el (smtpmail-send-it): Call mail-encode-header. | 23 | * mail/smtpmail.el (smtpmail-send-it): Call mail-encode-header. |
| 20 | 24 | ||
| 21 | 2011-05-24 Sean Neakums <sneakums@zork.net> (tiny change) | 25 | 2011-05-24 Sean Neakums <sneakums@zork.net> (tiny change) |
| 22 | 26 | ||
| 23 | * mail/supercite.el (sc-default-cite-frame): Handle | 27 | * mail/supercite.el (sc-default-cite-frame): |
| 24 | sc-nested-citation-p when sc-cite-blank-lines-p is non-nil. | 28 | Handle sc-nested-citation-p when sc-cite-blank-lines-p is non-nil. |
| 25 | 29 | ||
| 26 | 2011-05-24 Glenn Morris <rgm@gnu.org> | 30 | 2011-05-24 Glenn Morris <rgm@gnu.org> |
| 27 | 31 | ||
diff --git a/lisp/isearch.el b/lisp/isearch.el index 7db7f30dd89..008cf2ce58a 100644 --- a/lisp/isearch.el +++ b/lisp/isearch.el | |||
| @@ -2434,13 +2434,7 @@ update the match data, and return point." | |||
| 2434 | ;; If the following character is currently invisible, | 2434 | ;; If the following character is currently invisible, |
| 2435 | ;; skip all characters with that same `invisible' property value. | 2435 | ;; skip all characters with that same `invisible' property value. |
| 2436 | ;; Do that over and over. | 2436 | ;; Do that over and over. |
| 2437 | (while (and (< (point) end) | 2437 | (while (and (< (point) end) (invisible-p (point))) |
| 2438 | (let ((prop | ||
| 2439 | (get-char-property (point) 'invisible))) | ||
| 2440 | (if (eq buffer-invisibility-spec t) | ||
| 2441 | prop | ||
| 2442 | (or (memq prop buffer-invisibility-spec) | ||
| 2443 | (assq prop buffer-invisibility-spec))))) | ||
| 2444 | (if (get-text-property (point) 'invisible) | 2438 | (if (get-text-property (point) 'invisible) |
| 2445 | (progn | 2439 | (progn |
| 2446 | (goto-char (next-single-property-change (point) 'invisible | 2440 | (goto-char (next-single-property-change (point) 'invisible |
| @@ -2456,10 +2450,7 @@ update the match data, and return point." | |||
| 2456 | (while overlays | 2450 | (while overlays |
| 2457 | (setq o (car overlays) | 2451 | (setq o (car overlays) |
| 2458 | invis-prop (overlay-get o 'invisible)) | 2452 | invis-prop (overlay-get o 'invisible)) |
| 2459 | (if (if (eq buffer-invisibility-spec t) | 2453 | (if (invisible-p invis-prop) |
| 2460 | invis-prop | ||
| 2461 | (or (memq invis-prop buffer-invisibility-spec) | ||
| 2462 | (assq invis-prop buffer-invisibility-spec))) | ||
| 2463 | (if (overlay-get o 'isearch-open-invisible) | 2454 | (if (overlay-get o 'isearch-open-invisible) |
| 2464 | (setq ov-list (cons o ov-list)) | 2455 | (setq ov-list (cons o ov-list)) |
| 2465 | ;; We found one overlay that cannot be | 2456 | ;; We found one overlay that cannot be |