[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Possible truncation of the value of list variable
From: |
Ikumi Keita |
Subject: |
Re: [AUCTeX-devel] Possible truncation of the value of list variable |
Date: |
Sun, 01 Oct 2017 17:36:33 +0900 |
Hi Arash,
>>>>> Arash Esbati <address@hidden> writes:
> I checked those styles and they don't produce unwanted changes to
> global variables. You can eval these forms to see the basic
> operation:
> (require 'cl)
> (setq my/test '(("align" ("left" "right" "center"))))
> (make-variable-buffer-local 'my/test)
> (defun my/test ()
> (dolist (newalign '(("justified") ("center")))
> (let* ((key "align")
> (val (car newalign))
> (val-match (cdr (assoc key my/test)))
> (temp (copy-alist my/test))
> (opts (assq-delete-all (car (assoc key temp)) temp)))
> (pushnew (list key (delete-dups (apply #'append (list val) val-match)))
> opts :test #'equal)
> my/test ;; for testing only
> (setq my/test (copy-alist opts)))))
> (my/test)
Thank you so much for carring out the boring job. I appreciate your
effort. Then we can be pretty confident about this issue.
Best,
Ikumi Keita
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [AUCTeX-devel] Possible truncation of the value of list variable,
Ikumi Keita <=