Explain narrowing and widening

This commit is contained in:
Gerard Vermeulen 2021-12-11 15:45:52 +01:00
parent d5eaaaef9c
commit f7372de802
1 changed files with 5 additions and 2 deletions

View File

@ -984,13 +984,16 @@ Emacs prevents new users from shooting themselves in the feet.
(call-interactively this-command)))
#+end_src
** [[info:emacs#Narrowing][Narrowing]]
:PROPERTIES:
:CUSTOM_ID: sec:narrowing
:END:
[[https://endlessparentheses.com/emacs-narrow-or-widen-dwim.html][Emacs narrow-or-widen-dwim]]
Narrowing means focusing in on some portion of the buffer and widening means
focussing out on the whole buffer. This allows to concentrate temporarily on
for instance a particular function or paragraph by removing clutter. The "Do
What I Mean" [[https://endlessparentheses.com/emacs-narrow-or-widen-dwim.html][narrow-or-widen-dwim]] function allows to toggle between narrowed and
widened buffer states.
#+begin_src emacs-lisp
(defun narrow-or-widen-dwim (p)