From: Drew Adams <drew.adams@oracle.com>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 19362@debbugs.gnu.org
Subject: bug#19362: 25.0.50; Fix `pp.el' in line with new `elisp-mode.el'
Date: Wed, 6 Jul 2016 22:35:49 +0000 (UTC) [thread overview]
Message-ID: <f02097f2-2829-4769-b0fb-a78d0ada72c9@default> (raw)
In-Reply-To: <CAM-tV-9_RnUjUtTKE0y5KsatvHXXsTkVEdTyUY_7L=4nfDaH3g@mail.gmail.com>
> But do you know of any concrete cases where there is a difference in
> behaviour? Or is this report just about code duplication (or lack
> thereof)?
1. I don't know about concrete cases; sorry.
2. This report is an enhancement request; it doesn't report a bug.
In the past, `eval-last-sexp' and `pp-eval-last-sexp' did about the
same thing, apart from the pretty-printing part (which the latter
farms out to another function). My guess is that _improvements_
were made to the former case (only). Just what those improvements
were and why they were made I don't know.
> I found #10495 "pp-eval-last-sexp doesn't work on a `symbol' in
> quotes", but that was reported against 24.0.92, so perhaps these
> functions were in fact never "aligned"?
The functions used to be mostly "aligned", but it's possible that
the difference Michael points out in #10495 was present. I don't
know.
In any case, I was not really referring to the interactive behavior
but to the code/behavior after the sexp has been determined. In
the case of `eval-last-sexp' I guess that means the code other
than `elisp--preceding-sexp'. I'm interested in both, but I don't
think I was paying attention to differences that are covered by the
`elisp--preceding-sexp' code.
Michael's bug is all about extending what `elisp--preceding-sexp'
does to pp.el. It could perhaps be a good start, in terms of
realignment. On the other hand, that behavior seems to be overly
DWIM, making heuristic assumptions about what sexp you _really_
wanted to evaluate. I'm not sure that's always such a good thing.
I'd probably rather have that DWIM be a user choice (option).
`pp-eval-last-sexp' is much simpler.
In any case, what `elisp--preceding-sexp' is/does is not really
what I had in mind about the code divergence, as you rightfully
observed. So I guess this bug report is somewhat complementary
to Michael's report.
next prev parent reply other threads:[~2016-07-06 22:35 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-13 2:46 bug#19362: 25.0.50; Fix `pp.el' in line with new `elisp-mode.el' Drew Adams
2016-04-30 16:26 ` Lars Ingebrigtsen
2016-04-30 17:36 ` Drew Adams
2016-04-30 17:43 ` Lars Ingebrigtsen
2016-04-30 18:16 ` Drew Adams
2016-04-30 18:33 ` Lars Ingebrigtsen
2016-07-01 2:04 ` npostavs
2016-07-01 3:07 ` Drew Adams
2016-07-06 20:39 ` Noam Postavsky
2016-07-06 22:35 ` Drew Adams [this message]
2016-07-06 23:36 ` Noam Postavsky
2016-07-06 23:51 ` Drew Adams
2016-07-07 0:26 ` npostavs
2016-07-07 2:34 ` Drew Adams
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f02097f2-2829-4769-b0fb-a78d0ada72c9@default \
--to=drew.adams@oracle.com \
--cc=19362@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=npostavs@users.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).