all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4
@ 2020-12-31 20:37 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 
  0 siblings, 2 replies; 10+ messages in thread
From: gliao.tw--- via  @ 2020-12-31 20:37 UTC (permalink / raw)
  To: 45576

Hi,

on and after commit 0593f478762437e2a8618f3f874a26424e4590b4 of feature/native-comp branch, some of eshell's features/functions (such as syntax highlight according to file types and exit function) stop working or not working properly after loaded from eln, as the screenshot in the first attachment shows.

For comparison, the second attachment is a screenshot of a build on commit 3f00d666e9674ba18f1ded490a27ac2868a32a88, which shows eshell loaded from eln working properly without issues.

Thanks,
Kiong-Ge.

------

System info:


In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0)
 of 2020-12-31 built on Sid2KGW0
Repository revision: 0593f478762437e2a8618f3f874a26424e4590b4
Repository branch: HEAD
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description: Debian GNU/Linux bullseye/sid

Configured using:
 'configure --prefix=/home/kiong-ge/.local/emacs/native-comp
 --enable-check-lisp-object-type --enable-link-time-optimization
 --with-modules --with-xwidgets --with-cairo --with-nativecomp
 --with-mailutils'

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES NATIVE_COMP THREADS
XWIDGETS LIBSYSTEMD JSON PDUMPER LCMS2

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Eshell

Minor modes in effect:
  eshell-prompt-mode: t
  eshell-hist-mode: t
  eshell-pred-mode: t
  eshell-cmpl-mode: t
  pyvenv-mode: t
  eshell-proc-mode: t
  eshell-arg-mode: t
  sly-symbol-completion-mode: t
  dap-ui-mode: t
  treemacs-filewatch-mode: t
  treemacs-follow-mode: t
  treemacs-git-mode: deferred
  treemacs-fringe-indicator-mode: t
  dap-mode: t
  shell-dirtrack-mode: t
  doom-modeline-mode: t
  show-paren-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/kiong-ge/.config/emacs/28/elpa/lispy-20201226.1746/elpa hides /home/kiong-ge/.config/emacs/28/elpa/ivy-20201218.1222/elpa

Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec epa epg
epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr base16-unikitty-light-theme
em-unix em-term em-script em-prompt em-ls em-hist em-pred em-glob
em-dirs esh-var em-cmpl em-basic em-banner em-alias esh-mode mule-util
rainbow-delimiters elec-pair base16-atelier-forest-light-theme my-init
configs wrtng-configs cj5input-dvorak-ergonomic quail imath imaxima
maxima maxima-font-lock imaxima-autoconf-variables cl prgmg-configs
highlight-indentation company-capf elpy elpy-rpc pyvenv eshell esh-cmd
esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util
elpy-shell elpy-profile elpy-django elpy-refactor diff-mode python ido
rust-mode dap-java lsp-java request autorevert mail-utils cc-mode
cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars
cc-defs google-c-style haskell-mode haskell-cabal haskell-utils
haskell-font-lock haskell-indentation haskell-string
haskell-sort-imports haskell-lexeme haskell-align-imports
haskell-complete-module haskell-ghc-support flymake-proc flymake dabbrev
haskell-customize le-clojure cider-find cider tramp-sh cider-debug
cider-browse-ns cider-mode cider-inspector cider-completion
cider-profile cider-eval cider-repl-history cider-repl cider-resolve
cider-test cider-overlays cider-stacktrace cider-doc cider-browse-spec
cider-clojuredocs cider-eldoc cider-client cider-common cider-connection
cider-util cider-popup sesman-browser nrepl-client tramp tramp-loaddefs
trampver tramp-integration files-x tramp-compat parse-time iso8601
time-date ls-lisp format-spec queue nrepl-dict cider-compat sesman vc
vc-dispatcher clojure-mode lisp-mnt align parseedn parseclj-parser
parseclj-lex a geiser sly sly-completion sly-buttons sly-messages
sly-common apropos slime arc-mode archive-mode hyperspec lispy swiper
ivy ivy-faces ivy-overlay colir delsel lispy-inline avy etags fileloop
generator edebug backtrace help-fns radix-tree lispy-tags mode-local
dap-ui lsp-treemacs lsp-treemacs-themes treemacs treemacs-header-line
treemacs-compatibility treemacs-mode treemacs-bookmarks treemacs-tags
treemacs-interface treemacs-extensions treemacs-persistence
treemacs-filewatch-mode treemacs-follow-mode treemacs-rendering
treemacs-async treemacs-workspaces treemacs-dom treemacs-visuals
treemacs-fringe-indicator treemacs-scope pulse treemacs-faces
treemacs-icons treemacs-themes treemacs-core-utils pfuture hl-line
treemacs-logging treemacs-customization treemacs-macros gdb-mi gud bui
bui-list bui-info bui-entry bui-core bui-history bui-button bui-utils
cus-edit cus-start cus-load lsp-lens dap-mode dap-launch posframe
dap-overlays lsp-ui lsp-ui-flycheck derived lsp-ui-doc xwidget bookmark
pp goto-addr lsp-ui-imenu lsp-ui-peek lsp-ui-sideline face-remap
flycheck find-func company-lsp company hydra lsp-mode lsp-protocol xref
project tree-widget wid-edit spinner network-stream puny nsm rmc
markdown-mode color noutline outline lv inline imenu ht filenotify ewoc
dash-functional bindat yasnippet projectile grep compile
text-property-search ibuf-ext ibuffer ibuffer-loaddefs thingatpt
ui-configs multi-term eterm-256color term disp-table shell pcomplete
ehelp comint ansi-color ring xterm-color base16-default-light-theme
base16-theme doom-modeline doom-modeline-segments doom-modeline-env
doom-modeline-core shrink-path f s all-the-icons all-the-icons-faces
data-material data-weathericons data-octicons data-fileicons
data-faicons data-alltheicons memoize load-theme-buffer-local noflet
cl-indent paren dash edmacro kmacro gnl-configs advice dired+
image-dired image-mode exif image-file image-converter dired-x dired-aux
dired dired-loaddefs use-package use-package-ensure use-package-delight
use-package-diminish use-package-bind-key bind-key easy-mmode
use-package-core finder-inf slime-autoloads info package browse-url url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util mailcap url-handlers url-parse auth-source eieio
eieio-core eieio-loaddefs password-cache json map url-vars comp
comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode easymenu
seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv
iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddefs faces cus-face pcase macroexp files
window text-properties overlay sha1 md5 base64 format env code-pages
mule custom widget hashtable-print-readable backquote threads
xwidget-internal dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit
x multi-tty make-network-process nativecomp emacs)

Memory information:
((conses 16 1094351 509735)
 (symbols 48 52927 81)
 (strings 32 303653 190518)
 (string-bytes 1 7675860)
 (vectors 16 148515)
 (vector-slots 8 1662689 710346)
 (floats 8 1177 4055)
 (intervals 56 1454 976)
 (buffers 984 15))


-----











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

* bug#45576: Acknowledgement (28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4)
  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 ` 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 
  1 sibling, 0 replies; 10+ messages in thread
From: gliao.tw--- via  @ 2020-12-31 21:53 UTC (permalink / raw)
  To: 45576@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 34 bytes --]

the two screenshots are attached 

[-- Attachment #2: eshell-on-emacs-native-comp-commit-0593f478762437e2a8618f3f874a26424e4590b4.png --]
[-- Type: image/png, Size: 231527 bytes --]

[-- Attachment #3: eshell-emacs-native-comp-commit-3f00d666e9674ba18f1ded490a27ac2868a32a88.png --]
[-- Type: image/png, Size: 92395 bytes --]

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

* bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4
  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 ` gliao.tw--- via 
  2021-01-01 19:09   ` gliao.tw--- via 
  2021-01-01 19:14   ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 2 replies; 10+ messages in thread
From: gliao.tw--- via  @ 2021-01-01 17:51 UTC (permalink / raw)
  To: 45576@debbugs.gnu.org, akrl@sdf.org

Hi, 

I just found that on or after commit #0593f478762437e2a8618f3f874a26424e4590b4, the eshell's "eshell-prefer-lisp-functions" variable is always ignored.
For example, "exit" command does not work, I have to type "(eshell/exit)" to close a eshell window.

Not sure if this is related to the type inference works in recent commits mentionde in gccemacs update #13.

Thanks,
Kiong-Ge.







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

* bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4
  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
  2021-01-01 19:14   ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 10+ messages in thread
From: gliao.tw--- via  @ 2021-01-01 19:09 UTC (permalink / raw)
  To: 45576@debbugs.gnu.org, akrl@sdf.org

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.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Friday, January 1st, 2021 at 11:51 AM, gliao.tw@pm.me <gliao.tw@pm.me> wrote:

> Hi, 
>
> I just found that on or after commit #0593f478762437e2a8618f3f874a26424e4590b4, the eshell's "eshell-prefer-lisp-functions" variable is always ignored.
>
> For example, "exit" command does not work, I have to type "(eshell/exit)" to close a eshell window.
>
> Not sure if this is related to the type inference works in recent commits mentionde in gccemacs update #13.
>
> Thanks,
>
> Kiong-Ge.





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

* bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4
  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 19:14   ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 0 replies; 10+ messages in thread
From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-01-01 19:14 UTC (permalink / raw)
  To: gliao.tw; +Cc: 45576@debbugs.gnu.org

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

> Hi, 

Hi Kiong-Ge,

> I just found that on or after commit #0593f478762437e2a8618f3f874a26424e4590b4, the eshell's "eshell-prefer-lisp-functions" variable is always ignored.
> For example, "exit" command does not work, I have to type "(eshell/exit)" to close a eshell window.
>
> Not sure if this is related to the type inference works in recent commits mentionde in gccemacs update #13.

this is very possible.  I can reproduce it, I'll have a look.

Thanks

  Andrea





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

* bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4
  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
  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
  0 siblings, 2 replies; 10+ messages in thread
From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-01-01 21:12 UTC (permalink / raw)
  To: gliao.tw; +Cc: Stefan Monnier, 45576@debbugs.gnu.org

"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





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

* bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4
  2021-01-01 21:12     ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 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
  1 sibling, 0 replies; 10+ messages in thread
From: gliao.tw--- via  @ 2021-01-01 22:55 UTC (permalink / raw)
  To: akrl; +Cc: monnier, 45576

[-- Attachment #1: Type: text/plain, Size: 1505 bytes --]

Indeed,
(functionp (func1 x)) does not imply (functionp x)

Sent from ProtonMail mobile

-------- Original Message --------
On Jan 1, 2021, 15:12, Andrea Corallo wrote:

> "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

[-- Attachment #2: Type: text/html, Size: 1960 bytes --]

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

* bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4
  2021-01-01 21:12     ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  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 
  1 sibling, 1 reply; 10+ messages in thread
From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-01-02 12:11 UTC (permalink / raw)
  To: gliao.tw; +Cc: Stefan Monnier, 45576@debbugs.gnu.org

Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:

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

Right 43d0e8483e fix it for me, could you give a try?

Thanks!

  Andrea





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

* bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4
  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
  0 siblings, 1 reply; 10+ messages in thread
From: gliao.tw--- via  @ 2021-01-02 14:17 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: Stefan Monnier, 45576@debbugs.gnu.org

Hi Andrea,
I can confirm that commit #	43d0e8483e5b51aec1347b8a2ed53acae34a9811  solves the issue.

Thanks,
Kiong-Ge.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Saturday, January 2nd, 2021 at 6:11 AM, Andrea Corallo <akrl@sdf.org> wrote:

> Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of
>
> text editors" bug-gnu-emacs@gnu.org writes:
>
> > "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.
>
> Right 43d0e8483e fix it for me, could you give a try?
>
> Thanks!
>
> Andrea





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

* bug#45576: 28.0.50 [native-comp] some functions in eshell stop functioning after commit 0593f478762437e2a8618f3f874a26424e4590b4
  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
  0 siblings, 0 replies; 10+ messages in thread
From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-01-02 21:08 UTC (permalink / raw)
  To: gliao.tw; +Cc: Stefan Monnier, 45576-done

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

> Hi Andrea,
> I can confirm that commit #	43d0e8483e5b51aec1347b8a2ed53acae34a9811  solves the issue.
>
> Thanks,
> Kiong-Ge.

Very nice, closing

Thanks for reporting it!

  Andrea





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

end of thread, other threads:[~2021-01-02 21:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.