emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 04ca1a1: Make so-long test pass following lisp-mnt change


From: Glenn Morris
Subject: master 04ca1a1: Make so-long test pass following lisp-mnt change
Date: Thu, 23 Jan 2020 21:42:25 -0500 (EST)

branch: master
commit 04ca1a1e080df1801f5ad8e9bc7d4cf68661ca5f
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    Make so-long test pass following lisp-mnt change
    
    * lisp/so-long.el (so-long-commentary): Update for lisp-mnt change.
---
 lisp/so-long.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lisp/so-long.el b/lisp/so-long.el
index dcf7e62..6b05f48 100644
--- a/lisp/so-long.el
+++ b/lisp/so-long.el
@@ -353,7 +353,7 @@
 ;; this caveat is the `mode' pseudo-variable, which is processed early in all
 ;; versions of Emacs, and can be set to `so-long-mode' if desired.
 
-;;; * Change Log:
+;; * Change Log:
 ;;
 ;; 1.0   - Included in Emacs 27.1, and in GNU ELPA for prior versions of Emacs.
 ;;       - New global mode `global-so-long-mode' to enable/disable the library.
@@ -944,8 +944,10 @@ This command calls `so-long' with the selected action as 
an argument.")
     (cl-letf (((symbol-function 'finder-summary) #'ignore))
       (finder-commentary "so-long"))
     (let ((inhibit-read-only t))
-      (when (looking-at "^Commentary:\n\n")
-        (replace-match "so-long.el\n\n"))
+      (if (looking-at "^Commentary:\n\n")
+          (replace-match "so-long.el\n\n")
+        (insert "so-long.el\n")
+        (forward-line 1))
       (save-excursion
         (while (re-search-forward "^-+$" nil :noerror)
           (replace-match ""))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]