emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/objed f3efa0e 121/216: Don't let sentence object jump o


From: Stefan Monnier
Subject: [elpa] externals/objed f3efa0e 121/216: Don't let sentence object jump over to next comments/string
Date: Tue, 8 Jan 2019 12:29:23 -0500 (EST)

branch: externals/objed
commit f3efa0e360d4a8302fc1bc0fcc74c66064768a2b
Author: Clemera <address@hidden>
Commit: Clemera <address@hidden>

    Don't let sentence object jump over to next comments/string
---
 objed-objects.el | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/objed-objects.el b/objed-objects.el
index 7389b01..2676451 100644
--- a/objed-objects.el
+++ b/objed-objects.el
@@ -1670,6 +1670,11 @@ non-nil the indentation block can contain empty lines."
                   (backward-sentence)
                   (point)))))
       (and ip (= (point) ip))))
+  :max-search-forward
+  (save-excursion
+    (objed--with-narrow-for-text
+     (forward-paragraph 1)
+     (point)))
   :get-obj
   (when (or (derived-mode-p 'text-mode)
             (eq major-mode 'fundamental-mode)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]