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

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

[elpa] externals/objed 806c681 209/216: Improve objed-activate condition


From: Stefan Monnier
Subject: [elpa] externals/objed 806c681 209/216: Improve objed-activate conditions
Date: Tue, 8 Jan 2019 12:29:41 -0500 (EST)

branch: externals/objed
commit 806c6817dd1a18e1ef8cd2fa59feb51e1ea37d8c
Author: Clemens Radermacher <address@hidden>
Commit: Clemens Radermacher <address@hidden>

    Improve objed-activate conditions
---
 objed.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/objed.el b/objed.el
index 031fe62..90eb49d 100644
--- a/objed.el
+++ b/objed.el
@@ -1096,6 +1096,8 @@ See `objed-cmd-alist'."
   "Default for `objed-init-p-function'."
   (and (eq (key-binding (kbd "C-n"))
            #'next-line)
+       (not (and (not buffer-read-only) (bobp)))
+       (not (and (bobp) (eobp)))
        ;; only for modes which do not
        ;; their their own modal setup
        (or (memq (key-binding "f")



reply via email to

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