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

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

[nongnu] elpa/org-auto-tangle 820cdd19e6 37/56: used a more consice majo


From: ELPA Syncer
Subject: [nongnu] elpa/org-auto-tangle 820cdd19e6 37/56: used a more consice major mode check
Date: Mon, 6 Jun 2022 11:58:54 -0400 (EDT)

branch: elpa/org-auto-tangle
commit 820cdd19e6d30403215adc39d75936dd1ae6fb3b
Author: lispy-dobby <yilkalargawworkneh@gmail.com>
Commit: GitHub <noreply@github.com>

    used a  more consice major mode check
    
    based on a comment by @riscy the
    (string= (buffer-local-value 'major-mode (current-buffer)) "org-mode")
    line is replaced by
    (eq major-mode 'org-mode)
---
 org-auto-tangle.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/org-auto-tangle.el b/org-auto-tangle.el
index c8128f381f..6402ea7c25 100644
--- a/org-auto-tangle.el
+++ b/org-auto-tangle.el
@@ -75,7 +75,7 @@
 
 (defun org-auto-tangle-tangle-if-tag-exists ()
   "Check if the #+auto_tangle option exists and call org-auto-tangle-async if 
it exists."
-  (when (and (string= (buffer-local-value 'major-mode (current-buffer)) 
"org-mode")
+  (when (and (eq major-mode 'org-mode)
             (org-auto-tangle-find-value (current-buffer))
             (not (string= (org-auto-tangle-find-value(current-buffer)) "nil")))
     (org-auto-tangle-async (buffer-file-name))))



reply via email to

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