unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: gliao.tw@pm.me
Cc: Stefan Monnier <monnier@iro.umontreal.ca>,
	"45576@debbugs.gnu.org" <45576@debbugs.gnu.org>
Subject: bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4
Date: Fri, 01 Jan 2021 21:12:36 +0000	[thread overview]
Message-ID: <xjftus0icor.fsf@sdf.org> (raw)
In-Reply-To: <eoDhGU028pIzkcRTHtxxWQkY__Nvsb-AtB83QwLYt2vx95kbVxqBbaM8P8_wjvd9XxuyfHSnteSM9ktHH8-bssGz4O22lBifcGyGOrjs7qw=@pm.me> (gliao's message of "Fri, 01 Jan 2021 19:09:45 +0000")

"gliao.tw@pm.me" <gliao.tw@pm.me> writes:

> Hi,
>
> More precisely, in this case, the "eshell-find-alias-function" definded in $EMACS_DIR/share/emacs/28.0.50/lisp/eshell/esh-cmd.el.gz seems where the issue pops up.
>
> Before commit #0593f478762437e2a8618f3f874a26424e4590b4,
>
> (eshell-find-alias-function "ls") shows
>
> "eshell/ls"
>
> but on or after commit #0593f478762437e2a8618f3f874a26424e4590b4, the same command shows
>
> "nil"
>
> Both cases are based on functions loaded from eshell.el.gz and esh-cmd.el's corresponding eln files.
>
> It seems that some part of the type inference code added recently lead to this unexpected result.
>
> Thanks,
> Kiong-Ge.

I see what's going, this is very funny :)

I've used the alist producing `cl-deftype-satisfies' and reversed it to
get the relation type-predicate -> type.

But doing this way satisfying `functionp' implies the argument being a
function (while indeed it can be also a symbol).

Using this information the compiler cleverly proves the output of
`eshell-find-alias-function' being always nil.

So I guess the relation type <-> predicate in the alist used to build
`cl-deftype-satisfies' is correct but not bijective and cannot simply be
reversed to produce what I use.

I'll come up with a fix tomorrow.

  Andrea





  reply	other threads:[~2021-01-01 21:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-31 20:37 bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4 gliao.tw--- via 
2020-12-31 21:53 ` bug#45576: Acknowledgement (28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4) gliao.tw--- via 
2021-01-01 17:51 ` bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4 gliao.tw--- via 
2021-01-01 19:09   ` gliao.tw--- via 
2021-01-01 21:12     ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2021-01-01 22:55       ` gliao.tw--- via 
2021-01-02 12:11       ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-01-02 14:17         ` gliao.tw--- via 
2021-01-02 21:08           ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-01-01 19:14   ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=xjftus0icor.fsf@sdf.org \
    --to=bug-gnu-emacs@gnu.org \
    --cc=45576@debbugs.gnu.org \
    --cc=akrl@sdf.org \
    --cc=gliao.tw@pm.me \
    --cc=monnier@iro.umontreal.ca \
    /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).