unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* pp-eval-expression
@ 2005-01-04 22:54 Drew Adams
  2005-01-05 20:08 ` pp-eval-expression Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2005-01-04 22:54 UTC (permalink / raw)


Shouldn't `pp-eval-expression' turn off emacs-lisp-mode-hook and
change-major-mode-hook before turning on emacs-lisp-mode?

[What about having a pretty-print option for `eval-expression'? IOW, combine
`eval-expression' with `pp-eval-expression' in some way (e.g. print-function
variable or different prefix-arg value)?]

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

* Re: pp-eval-expression
  2005-01-04 22:54 pp-eval-expression Drew Adams
@ 2005-01-05 20:08 ` Richard Stallman
  2005-01-05 21:23   ` pp-eval-expression Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2005-01-05 20:08 UTC (permalink / raw)
  Cc: emacs-devel

    Shouldn't `pp-eval-expression' turn off emacs-lisp-mode-hook and
    change-major-mode-hook before turning on emacs-lisp-mode?

Why?

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

* RE: pp-eval-expression
  2005-01-05 20:08 ` pp-eval-expression Richard Stallman
@ 2005-01-05 21:23   ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2005-01-05 21:23 UTC (permalink / raw)
  Cc: emacs-devel

        Shouldn't `pp-eval-expression' turn off emacs-lisp-mode-hook and
        change-major-mode-hook before turning on emacs-lisp-mode?

    Why?

Well, I admit that it's problematic either way, but I was thinking that
users might have hook functions that aren't relevant in the pp eval buffer.

I was guessing that the only reasons that the buffer is put into emacs-lisp
mode are for 1) font-locking, 2) the syntax table, and possibly 3)
reformatting and evaling parts by hand. But someone will perhaps argue that
you can also use the buffer interactively.

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

end of thread, other threads:[~2005-01-05 21:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-04 22:54 pp-eval-expression Drew Adams
2005-01-05 20:08 ` pp-eval-expression Richard Stallman
2005-01-05 21:23   ` pp-eval-expression Drew Adams

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