~protesilaos/logos

3a6370311c325a722918aa09dadd3842a34ada29 — Edgar Vincent 1 year, 3 months ago 88beb0a
Fix (cond ...) in `logos-narrow-dwim'
1 files changed, 5 insertions(+), 4 deletions(-)

M logos.el
M logos.el => logos.el +5 -4
@@ 393,16 393,17 @@ If narrowing is in effect, widen the view."
    (push-mark (point) t nil))
  (cond
   ((and (use-region-p)
         (null (buffer-narrowed-p)))
         (not (buffer-narrowed-p)))
    (narrow-to-region (region-beginning) (region-end)))
   ((logos--page-p)
   ((and (logos--page-p)
         (not (buffer-narrowed-p)))
    ;; Use our own narrow to page function because when
    ;; logos-outlines-are-pages is t, the page delimiter
    ;; is included in the region narrowed to.
    (logos--narrow-to-page 0))
   ((null (buffer-narrowed-p))
   ((not (buffer-narrowed-p))
    (logos-narrow-visible-window))
   ((widen))))
   (t (widen))))

;;;; Optional "focus mode" and utilities