emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/annotate fdfec4b1d2 4/6: - removed a redudant test for che


From: ELPA Syncer
Subject: [nongnu] elpa/annotate fdfec4b1d2 4/6: - removed a redudant test for checking if a file is in info format.
Date: Tue, 22 Nov 2022 12:58:55 -0500 (EST)

branch: elpa/annotate
commit fdfec4b1d2653b076f06bf1be5f21c8d4c8d3501
Author: cage <cage@invalid>
Commit: cage <cage@invalid>

    - removed a redudant test for checking if a file is in info format.
---
 annotate.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/annotate.el b/annotate.el
index 15e8746c83..c64ff9044e 100644
--- a/annotate.el
+++ b/annotate.el
@@ -1741,7 +1741,7 @@ annotation."
   "Return a sexp from the annotation database contained in `FILE'."
   (with-temp-buffer
     (let* ((annotations-file file)
-           (attributes    (file-attributes annotations-file)))
+           (attributes       (file-attributes annotations-file)))
       (cond
        ((not (file-exists-p annotations-file))
         (signal 'annotate-db-file-not-found (list annotations-file)))
@@ -2482,8 +2482,7 @@ sophisticated way than plain text."
                                       (separator-re    "\^L?\^_\^L?\^J")
                                       (has-separator-p (string-match 
separator-re file-contents))
                                       (has-node-p      (string-match "Node:" 
file-contents)))
-                                 (if (or (annotate-info-root-dir-p filename)
-                                         (and has-separator-p
+                                 (if (or (and has-separator-p
                                               has-node-p)
                                          (and has-separator-p
                                               has-info-p))



reply via email to

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