branch: externals/fountain-mode commit eef014a2333bcfb37c5af70c06629efd7453e97a Author: Paul W. Rankin <he...@paulwrankin.com> Commit: Paul W. Rankin <he...@paulwrankin.com>
Update README/Commentary/code comments --- README.md | 11 ++++++++--- fountain-mode.el | 11 +++++------ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 8567911..c7f7e57 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,13 @@ Installation Fountain Mode is now part of GNU ELPA and can be installed with `M-x package-install RET fountain-mode RET`. -Reporting Bugs --------------- +History +------- + +See: <https://git.sr.ht/~pwr/fountain-mode/refs> + +Contributing +------------ To report bugs, please use `M-x report-emacs-bug RET` or send an email to -<bug-gnu-em...@gnu.org> +<bug-gnu-em...@gnu.org>. Please include "fountain" in the subject. diff --git a/fountain-mode.el b/fountain-mode.el index 7f9f5e5..84ffb48 100644 --- a/fountain-mode.el +++ b/fountain-mode.el @@ -7,6 +7,8 @@ ;; Version: 2.7.0 ;; Package-Requires: ((emacs "24.5")) +;; This file is part of GNU Emacs. + ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or (at @@ -89,7 +91,7 @@ ;; -------------- ;; To report bugs, please use `M-x report-emacs-bug RET` or send an email to -;; <bug-gnu-em...@gnu.org> +;; <bug-gnu-em...@gnu.org>. Please include "fountain" in the subject. ;;; Code: @@ -1037,11 +1039,8 @@ In Emacs versions prior to 26, adds advice to override after POS or point has invisible text property eq to 'outline. See <http://debbugs.gnu.org/24073>." ;; In Emacs version prior to 26, `outline-invisible-p' returns non-nil for ANY - ;; invisible property of text at point: - ;; - ;; (get-char-property (or pos (point)) 'invisible)) - ;; - ;; We want to only return non-nil if property is 'outline + ;; invisible property of text at point. We want to only return non-nil if + ;; property is 'outline (unless (or (advice-member-p 'fountain-outline-invisible-p 'outline-invisible-p) (<= 26 emacs-major-version)) (advice-add 'outline-invisible-p :override #'fountain-outline-invisible-p)