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

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

[elpa] externals/orgalist f3a57e7 2/2: Fix workaround bug#31361


From: Nicolas Goaziou
Subject: [elpa] externals/orgalist f3a57e7 2/2: Fix workaround bug#31361
Date: Sat, 5 May 2018 10:45:14 -0400 (EDT)

branch: externals/orgalist
commit f3a57e79ac06072899401e7f3e298b8d3e8055f7
Author: Nicolas Goaziou <address@hidden>
Commit: Nicolas Goaziou <address@hidden>

    Fix workaround bug#31361
    
    * orgalist.el (orgalist-mode): Re-apply advice.
---
 orgalist.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/orgalist.el b/orgalist.el
index 842c357..518d63a 100644
--- a/orgalist.el
+++ b/orgalist.el
@@ -785,9 +785,10 @@ C-c C-c         `orgalist-check-item'"
       (advice-add 'indent-according-to-mode
                   :around (lambda (old)
                             "Workaround bug#31361."
-                            (let ((indent-line-function
-                                   (advice--cd*r indent-line-function)))
-                              (funcall old)))
+                            (or (orgalist--indent-line)
+                                (let ((indent-line-function
+                                       (advice--cd*r indent-line-function)))
+                                  (funcall old))))
                   '((name . orgalist-fix-bug:31361)))))
    (t
     (remove-function (local 'fill-paragraph-function) #'orgalist--fill-item)



reply via email to

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