* bug#35372: Describe all types of safe-local-variable-values
@ 2019-04-21 13:52 積丹尼 Dan Jacobson
2019-04-22 1:58 ` Noam Postavsky
0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-04-21 13:52 UTC (permalink / raw)
To: 35372
"safe-local-variable-values is a variable defined in ‘files.el’.
List variable-value pairs that are considered safe.
Each element is a cons cell (VAR . VAL)..."
No,only a few are like that
x((eval picture-movement-down)
x (eval register-file-header-action "// @version[ ]* " 'update-write-count)
(dired-omit-mode . t)
(picture-vertical-step . 1)
(picture-horizontal-step . 0)
(sh-indentation . 2)
(dired-actual-switches . "-ogta")
(dired-actual-switches . "-ogt")
(dired-actual-switches . "-og")
(truncate-lines . 1)
y (make-backup-files))
Others either don't have a "." (x), or don't have a ". VAL" (y).
So the docstring should explain them too.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#35372: Describe all types of safe-local-variable-values
2019-04-21 13:52 bug#35372: Describe all types of safe-local-variable-values 積丹尼 Dan Jacobson
@ 2019-04-22 1:58 ` Noam Postavsky
0 siblings, 0 replies; 2+ messages in thread
From: Noam Postavsky @ 2019-04-22 1:58 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 35372
tags 35372 notabug
close 35372
quit
積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:
> "safe-local-variable-values is a variable defined in ‘files.el’.
>
> List variable-value pairs that are considered safe.
> Each element is a cons cell (VAR . VAL)..."
>
> No,only a few are like that
>
> x((eval picture-movement-down)
That's an alternate way of writing (eval . (picture-movement-down))
> x (eval register-file-header-action "// @version[ ]* " 'update-write-count)
(eval . (register-file-header-action "// @version[ ]* " 'update-write-count))
> (dired-omit-mode . t)
> (picture-vertical-step . 1)
> (picture-horizontal-step . 0)
> (sh-indentation . 2)
> (dired-actual-switches . "-ogta")
> (dired-actual-switches . "-ogt")
> (dired-actual-switches . "-og")
> (truncate-lines . 1)
> y (make-backup-files))
(make-backup-files . nil)
> Others either don't have a "." (x), or don't have a ". VAL" (y).
>
> So the docstring should explain them too.
There's no sense in every alist docstring explaining dot notation.
See (elisp) Dotted Pair Notation.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-22 1:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-21 13:52 bug#35372: Describe all types of safe-local-variable-values 積丹尼 Dan Jacobson
2019-04-22 1:58 ` Noam Postavsky
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.