unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: Pip Cet <pipcet@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: master f9d7440: ; * lisp/emacs-lisp/byte-opt.el (byte-optimize-eq): Fix last change.
Date: Tue, 20 Jul 2021 23:00:34 +0200	[thread overview]
Message-ID: <5972BC2B-9605-412D-B110-64F74AFE175C@acm.org> (raw)
In-Reply-To: <CAOqdjBdVFkwB74607ikHZfB3DX5SMmmm4bcEjXmqu8OguQqihw@mail.gmail.com>

20 juli 2021 kl. 22.07 skrev Pip Cet <pipcet@gmail.com>:

> I played around with simple expressions a little after this patch, and
> things didn't seem quite right.

Oh no...

> The good news is they weren't quite
> right without the patch, either.

Phew! Got away this time.

> I find things work better with the attached patch applied. If it is as
> obviously correct as it seems to me, it should probably be applied.

Good spotting! I don't see why not. In fact it probably allows us to remove my ad-hoc 'nil => nil at the end of `byte-optimize-form`.

> But it does occur to me this code optimizes (quote) to nil. Is that
> intentional? Is it worth fixing? (It also optimizes (quote 1 2 3) to
> 1).

At least (quote 1 2 3) gives a warning -- I'd say it should be a hard error but the compiler seems to be soft on law and order, damn hippies -- but (quote) doesn't even reach `byte-optimize-quote`; it's converted to nil in `byte-optimize-form-code-walker` without as much as a squeak.




  reply	other threads:[~2021-07-20 21:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210720173248.5699.35348@vcs0.savannah.gnu.org>
     [not found] ` <20210720173249.D00AF209AA@vcs0.savannah.gnu.org>
2021-07-20 20:07   ` master f9d7440: ; * lisp/emacs-lisp/byte-opt.el (byte-optimize-eq): Fix last change Pip Cet
2021-07-20 21:00     ` Mattias Engdegård [this message]
2021-07-21  9:35       ` Mattias Engdegård

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=5972BC2B-9605-412D-B110-64F74AFE175C@acm.org \
    --to=mattiase@acm.org \
    --cc=emacs-devel@gnu.org \
    --cc=pipcet@gmail.com \
    /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).