bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: local variable for updating the time stamp on save


From: Bruce Korb
Subject: Re: local variable for updating the time stamp on save
Date: Thu, 17 Jan 2008 07:32:10 -0800

On Jan 16, 2008 12:31 AM, Richard Stallman <address@hidden> wrote:
>     At the moment, no.  Thank you.  I just updated to GNU Emacs 22.1.1
>     and plodded my way through variable after variable triggering the
>     "we've never set this variable before.  Are sure you want to do
>     this?" over and over
>
> Can you find the list of the ones you accepted, and send it to us?
> Maybe we should mark some of them for acceptance by default.

Hi Richard,

I have a "safe-local-variables-values" both at home and at work.  For some
administrative reason, my work one got reset to empty and now only
contains:

'(safe-local-variable-values (quote ((sh-indentation . 2)
(sh-basic-offset . 4) (sh-basic-offset . 2))))

But I'd simply say that anything containing "indent" or "offset" is
pretty likely
to be "pretty safe".  I still think it is better still to "allow" me to say that
this is a nifty feature that I don't like.  :)  I want to live
dangerously because
I don't edit files that might do such nasty things.  Thinking along those lines,
it might make more sense to be able to say "in this file hierarchy, I trust
everything" and "in that file hierarchy, I don't trust a thing."  I
just have little
use for the latter.

Cheers - Bruce

P.S. Have I mentioned that I have really liked using emacs since 1984?  :)

P.P.S. variables using "indent" in their names:

c-indent-comment-alist
  Variable: *Specifies how \[indent-for-comment] calculates the
comment start column.
c-indent-comments-syntactically-p
  Variable: *Specifies how \[indent-for-comment] should handle
comment-only lines.
c-label-minimum-indentation
  Variable: *Minimum indentation for lines inside code blocks.
c-special-indent-hook
  Variable: *Hook for user defined special indentation adjustments.
c-syntactic-indentation
  Variable: *Whether the indentation should be controlled by the
syntactic context.
c-syntactic-indentation-in-macros
  Variable: *Enable syntactic analysis inside macros.
c-tab-always-indent
  Variable: *Controls the operation of the TAB key.
custom-buffer-indent
  Variable: Number of spaces to indent nested groups.
fill-individual-varying-indent
  Variable: *Controls criterion for a new paragraph in
`fill-individual-paragraphs'.
indent-tabs-mode
  Variable: *Indentation can insert tabs if this is non-nil.
mail-indentation-spaces
  Variable: Number of spaces to insert at the beginning of each cited line.
message-indent-citation-function
  Variable: *Function for modifying a citation just inserted in the mail buffer.
sh-first-lines-indent
  Variable: *The indentation of the first non-blank non-comment line.
sh-indent-after-case
  Variable: *How much to indent a statement relative to the `case' statement.
sh-indent-after-do
  Variable: *How much to indent a line after a `do' statement.
sh-indent-after-done
  Variable: *How much to indent a statement after a `done' keyword.
sh-indent-after-else
  Variable: *How much to indent a statement after an `else' statement.
sh-indent-after-function
  Variable: *How much to indent after a function line.
sh-indent-after-if
  Variable: *How much to indent a statement after an `if' statement.
sh-indent-after-loop-construct
  Variable: *How much to indent a statement after a loop construct.
sh-indent-after-open
  Variable: *How much to indent after a line with an opening
parenthesis or brace.
sh-indent-after-switch
  Variable: *How much to indent a `case' statement relative to the
`switch' statement.
sh-indent-comment
  Variable: *How a comment line is to be indented.
sh-indent-for-case-alt
  Variable: *How much to indent statements after the case label.
sh-indent-for-case-label
  Variable: *How much to indent a case label statement.
sh-indent-for-continuation
  Variable: *How much to indent for a continuation statement.
sh-indent-for-do
  Variable: *How much to indent a `do' statement.
sh-indent-for-done
  Variable: *How much to indent a `done' relative to its matching
stmt.  Usually 0.
sh-indent-for-else
  Variable: *How much to indent an `else' relative to its `if'.  Usually 0.
sh-indent-for-fi
  Variable: *How much to indent a `fi' relative to its `if'.  Usually 0.
sh-indent-for-then
  Variable: *How much to indent a `then' relative to its `if'.
sh-indentation
  Variable: The width for further indentation in Shell-Script mode.
standard-indent
  Variable: *Default number of columns for margin-changing functions to indent.
tab-always-indent
  Variable: *Controls the operation of the TAB key.




reply via email to

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