Add g-/g= keys for buffer narrowing/widening

This commit is contained in:
Henrik Lissner 2018-10-03 11:14:08 -04:00
parent f20cfd21c2
commit fe425c005e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 6 additions and 3 deletions

View file

@ -238,8 +238,9 @@ clone the buffer and hard-narrow the selection. If mark isn't active, then widen
the buffer (if narrowed).
Inspired from http://demonastery.org/2013/04/emacs-evil-narrow-region/"
(interactive "r")
(cond ((region-active-p)
(interactive "rP")
(cond ((or (region-active-p)
(and beg end))
(deactivate-mark)
(when clone-p
(let ((old-buf (current-buffer)))