mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-22 07:09:47 +00:00
Fix lexical variable warning
* lisp/org.el (org-fast-tag-selection): Don't use add-to-list with lexical variable. Reported-by: Vicente Vera <vicentemvp@gmail.com> <http://permalink.gmane.org/gmane.emacs.orgmode/104363>
This commit is contained in:
parent
d15cae7e0f
commit
cb7f44f1af
@ -15256,7 +15256,7 @@ Returns the new tags string, or nil to not change the current settings."
|
||||
(org-get-buffer-tags))))))
|
||||
(quit (setq tg "")))
|
||||
(when (string-match "\\S-" tg)
|
||||
(add-to-list 'buffer-tags (list tg))
|
||||
(cl-pushnew (list tg) buffer-tags :test #'equal)
|
||||
(if (member tg current)
|
||||
(setq current (delete tg current))
|
||||
(push tg current)))
|
||||
|
Loading…
Reference in New Issue
Block a user