[Top][All Lists]

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

[PATCH 3/3] RefTeX: Fix reftex-ref-style-toggle not properly deactivatin

From: Rüdiger Sonderfeld
Subject: [PATCH 3/3] RefTeX: Fix reftex-ref-style-toggle not properly deactivating.
Date: Wed, 15 May 2013 20:10:39 +0200
User-agent: KMail/4.10.2 (Linux/3.8.0-19-generic; KDE/4.10.2; x86_64; ; )

See documentation of `delete':

    Write `(setq foo (delete element foo))' to be sure of correctly
    changing the value of a sequence `foo'.

* lisp/textmodes/reftex.el (reftex-ref-style-toggle): Fix deactivate

Signed-off-by: Rüdiger Sonderfeld <address@hidden>
 lisp/textmodes/reftex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/textmodes/reftex.el b/lisp/textmodes/reftex.el
index 21083fd..7fed4d0 100644
--- a/lisp/textmodes/reftex.el
+++ b/lisp/textmodes/reftex.el
@@ -547,7 +547,7 @@ will deactivate it."
             (when (member style list)
               (setq reftex-tables-dirty t
                     changed t)
-              (delete style list)))
+              (setq list (delete style list))))
             (if (member style list)
                 (delete style list)

reply via email to

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