org-persist-unregister: Fix when BUFFER is not 'all
* lisp/org-persist.el (org-persist-unregister): Use `string=' instead of `eq' to compare strings. `eq' always returns nil here.
This commit is contained in:
parent
be03334a7e
commit
e0b1a05460
|
@ -159,10 +159,10 @@ When BUFFER is `all', unregister VAR in all buffers."
|
|||
(lambda (plist)
|
||||
(when (and (memq var (plist-get plist :variable))
|
||||
(or (eq buffer 'all)
|
||||
(eq (buffer-file-name
|
||||
(string= (buffer-file-name
|
||||
(or (buffer-base-buffer buffer)
|
||||
buffer))
|
||||
(plist-get plist :path))))
|
||||
(or (plist-get plist :path) ""))))
|
||||
(if (> (length (plist-get plist :variable)) 1)
|
||||
(progn
|
||||
(setq plist
|
||||
|
|
Loading…
Reference in New Issue