unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* compile mode buffer name customization
@ 2020-11-11 16:23 Joe Buehler
  2020-11-11 18:16 ` Michael Heerdegen
  0 siblings, 1 reply; 2+ messages in thread
From: Joe Buehler @ 2020-11-11 16:23 UTC (permalink / raw)
  To: help-gnu-emacs

I customized compile mode some time ago to add the command name
(suitably sanitized) to the buffer name.  That way I have a complete
history of all the compiles I have run and their output.

This stopped working at some point (haven't upgraded in a long time).  I
saw a note to the effect that emacs lisp switched to lexical scoping?  I
was using the "command" variable in my hook but it is no longer
accessible apparently due to the scoping change?

Any easy solutions here?  Just having the mode name for the buffer name
hook is a bit of a limitation.

Joe Buehler




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

* Re: compile mode buffer name customization
  2020-11-11 16:23 compile mode buffer name customization Joe Buehler
@ 2020-11-11 18:16 ` Michael Heerdegen
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Heerdegen @ 2020-11-11 18:16 UTC (permalink / raw)
  To: help-gnu-emacs

Joe Buehler <aspam@cox.net> writes:

> This stopped working at some point (haven't upgraded in a long time).  I
> saw a note to the effect that emacs lisp switched to lexical scoping?  I
> was using the "command" variable in my hook but it is no longer
> accessible apparently due to the scoping change?

Looks like that.

> Any easy solutions here?  Just having the mode name for the buffer name
> hook is a bit of a limitation.

(car compilation-arguments) maybe?  But I haven't studied the code,
maybe there is a better solution.


Michael.




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

end of thread, other threads:[~2020-11-11 18:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-11 16:23 compile mode buffer name customization Joe Buehler
2020-11-11 18:16 ` Michael Heerdegen

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).