From: Drew Adams <drew.adams@oracle.com>
To: 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: Thu, 30 Jun 2016 20:07:51 -0700 (PDT) [thread overview]
Message-ID: <b8392264-7645-4247-beea-0da4dacc35f4@default> (raw)
In-Reply-To: <87poqyi05f.fsf@gmail.com>
> >> Do you have a list of things that you think should be aligned?
> >
> > No, but diff of the source code should show it. ;-)
>
> I tried diffing pp.el and elisp-mode.el, but it was unenlightening.
> Like this bug report.
Yes, well, it's quite difficult. Some of the code from lisp-mode.el
was moved to elisp-mode.el. And then it was modified, in some cases
radically. Dunno why, except that some of the changes seem to have
involved integrating eldoc. But most of the changes presumably do not
concern this bug, which is only about the part of lisp-mode.el that
had functions that correspond to pp.el functions.)
===> The starting point is `eval-last-sexp', which used to correspond
directly with `pp-eval-last-sexp'. The former was (presumably)
improved, but the latter was not modified similarly.
Some functions were renamed to add the prefix `elisp-' or `elisp--'
(e.g. `elisp--preceding-sexp', `elisp--eval-last-sexp',
`elisp--eval-last-sexp-print-value', `elisp--eval-last-sexp-fake-value',
`elisp--eval-defun-1', `elisp--eval-defun'), so knowing that can help.
In some cases they were just renamed. In other cases the code was
changed quite a bit. But again, this bug is only about the pp-like
code.
This is not something you will understand in 5 minutes. It likely
requires understanding the changes that were made to `eval-last-sexp'
and its supporting functions, and then doing the right thing (not
necessarily exactly the same thing) for `pp-eval-last-sexp'. The
pp.el code was slightly different from the Emacs 24.4 (and prior)
lisp-mode.el code (different helper functions, and one does not
involve pretty-printing), but they generally mirror one another.
Using their former correspondence as a guide should help.
I cannot help more than this. It is unfortunate that the person
who changed the non-pp version did not think to act similarly for
the pp version. I discovered it late, myself. Once things are
properly understood, perhaps the code fix will be minor. Dunno.
With luck, you will find and understand the changes made to
`eval-last-sexp' as a straightforward improvement that do not
involve all of the other changes from lisp-mode.el code to
elisp-mode.el code. With luck, perhaps the person(s) who made
the changes to the non-pp code can look at this bug. No doubt
that would be easiest.
next prev parent reply other threads:[~2016-07-01 3:07 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 [this message]
2016-07-06 20:39 ` Noam Postavsky
2016-07-06 22:35 ` Drew Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b8392264-7645-4247-beea-0da4dacc35f4@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.