unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* command for creating local variables in files
@ 2005-06-15  4:50 Werner LEMBERG
  2005-06-16  4:07 ` Richard Stallman
  0 siblings, 1 reply; 6+ messages in thread
From: Werner LEMBERG @ 2005-06-15  4:50 UTC (permalink / raw)



Here an after-release suggestion:

  Despite the importance of local variables (and the local variables
  list) of a file, there apparently isn't a command to explitly create
  them.

  I suggest to add an interactive command `file-make-local-variable'
  which does this.  As an interface I can imagine something similar to
  AUCTeX's C-c C-e command.

Perhaps this can be put onto the TODO list.


    Werner

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: command for creating local variables in files
  2005-06-15  4:50 command for creating local variables in files Werner LEMBERG
@ 2005-06-16  4:07 ` Richard Stallman
  2005-06-16 10:13   ` Werner LEMBERG
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2005-06-16  4:07 UTC (permalink / raw)
  Cc: emacs-devel

      I suggest to add an interactive command `file-make-local-variable'
      which does this.  As an interface I can imagine something similar to
      AUCTeX's C-c C-e command.

For those of us that do not use AUCTeX,
what does that interface look like?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: command for creating local variables in files
  2005-06-16  4:07 ` Richard Stallman
@ 2005-06-16 10:13   ` Werner LEMBERG
  2005-06-17  4:38     ` Richard Stallman
  0 siblings, 1 reply; 6+ messages in thread
From: Werner LEMBERG @ 2005-06-16 10:13 UTC (permalink / raw)
  Cc: emacs-devel

>       I suggest to add an interactive command
>       `file-make-local-variable' which does this.  As an interface I
>       can imagine something similar to AUCTeX's C-c C-e command.
>
> For those of us that do not use AUCTeX, what does that interface
> look like?

If you type C-c C-e in a just created buffer foo.tex, you see the
following dialogue in the minibuffer:

  Environment type: (default document)
    <user input; after pressing	`enter' you see>
  Document class: (default article)
    <user input; after pressing `enter' you see>
  Options:
    ...

So for a file-make-local-variable command we need questions like

  Major mode: (default <the current major mode>)
    ...
  Variable:
    foo...
  Variable foo set to:
    ...

etc.


    Werner

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: command for creating local variables in files
  2005-06-16 10:13   ` Werner LEMBERG
@ 2005-06-17  4:38     ` Richard Stallman
  2005-06-17  6:58       ` David Kastrup
  0 siblings, 1 reply; 6+ messages in thread
From: Richard Stallman @ 2005-06-17  4:38 UTC (permalink / raw)
  Cc: emacs-devel

    So for a file-make-local-variable command we need questions like

      Major mode: (default <the current major mode>)
	...
      Variable:
	foo...
      Variable foo set to:
	...

You are describing a command to set up an entire local variables list.
That's not what file-make-local-variable should do.  That command
should add or alter ONE variable in the local variables list; only
one.  It can read a variable name and the value string in the usual
way with the minibuffer.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: command for creating local variables in files
  2005-06-17  4:38     ` Richard Stallman
@ 2005-06-17  6:58       ` David Kastrup
  2005-06-17 18:47         ` Richard Stallman
  0 siblings, 1 reply; 6+ messages in thread
From: David Kastrup @ 2005-06-17  6:58 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:

>     So for a file-make-local-variable command we need questions like
>
>       Major mode: (default <the current major mode>)
> 	...
>       Variable:
> 	foo...
>       Variable foo set to:
> 	...
>
> You are describing a command to set up an entire local variables list.
> That's not what file-make-local-variable should do.  That command
> should add or alter ONE variable in the local variables list; only
> one.  It can read a variable name and the value string in the usual
> way with the minibuffer.

It might be nice if it also accepted major-mode as a variable name,
and minor mode variables, and buffer-file-coding-system and translated
them into the corresponding sequences.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: command for creating local variables in files
  2005-06-17  6:58       ` David Kastrup
@ 2005-06-17 18:47         ` Richard Stallman
  0 siblings, 0 replies; 6+ messages in thread
From: Richard Stallman @ 2005-06-17 18:47 UTC (permalink / raw)
  Cc: emacs-devel

    > You are describing a command to set up an entire local variables list.
    > That's not what file-make-local-variable should do.  That command
    > should add or alter ONE variable in the local variables list; only
    > one.  It can read a variable name and the value string in the usual
    > way with the minibuffer.

    It might be nice if it also accepted major-mode as a variable name,
    and minor mode variables, and buffer-file-coding-system and translated
    them into the corresponding sequences.

Those sound like natural extensions of the basic idea.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-06-17 18:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-15  4:50 command for creating local variables in files Werner LEMBERG
2005-06-16  4:07 ` Richard Stallman
2005-06-16 10:13   ` Werner LEMBERG
2005-06-17  4:38     ` Richard Stallman
2005-06-17  6:58       ` David Kastrup
2005-06-17 18:47         ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).