Skip to content

Commit

Permalink
Fix disabling when major mode is derived from one of p-b-l-modes
Browse files Browse the repository at this point in the history
p-b-l-mode-maybe also  adds a check  on minibufferp; I figure  this is
not   needed,   since   p-b-l--update-display-table's   only   caller,
p-b-l--update-display-tables, already checks this.
  • Loading branch information
peniblec committed Dec 21, 2018
1 parent fd3b7e3 commit 5872e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page-break-lines.el
Expand Up @@ -137,7 +137,7 @@ its display table will be modified as necessary."
(new-display-entry (vconcat (make-list width glyph))))
(unless (equal new-display-entry (elt buffer-display-table ?\^L))
(aset buffer-display-table ?\^L new-display-entry)))))
(when (and (member major-mode page-break-lines-modes)
(when (and (apply 'derived-mode-p page-break-lines-modes)
buffer-display-table)
(aset buffer-display-table ?\^L nil))))))

Expand Down

0 comments on commit 5872e5d

Please sign in to comment.