GNU bug report logs - #61919
Action key does not open Emacs mail msg files from shell

Previous Next

Package: hyperbole;

Reported by: John Cummings <john <at> rootabega.net>

Date: Thu, 2 Mar 2023 16:35:01 UTC

Severity: normal

Done: Bob Weiner <rsw <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61919 in the body.
You can then email your comments to 61919 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-hyperbole <at> gnu.org:
bug#61919; Package hyperbole. (Thu, 02 Mar 2023 16:35:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to John Cummings <john <at> rootabega.net>:
New bug report received and forwarded. Copy sent to bug-hyperbole <at> gnu.org. (Thu, 02 Mar 2023 16:35:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: John Cummings <john <at> rootabega.net>
To: "bug-hyperbole <at> gnu.org" <bug-hyperbole <at> gnu.org>
Subject: Action key does not open Emacs mail msg files from shell
Date: Thu, 02 Mar 2023 16:34:07 +0000
I use:  Editor:      GNU Emacs 28.2
        Hyperbole:   9.0.0
        Sys Type:    x86_64-pc-linux-gnu
        OS Type:     gnu/linux
        Window Sys:  None
        News Reader: Gnus v5.13
        Install:     elpa-devel, 8.0.1pre0.20230227.3018
(HyDebug) ButProps: (variable-documentation "The currently selected Hyperbole button.  Available to action routines." lbl-key "#*message*-20230220-192738#" lbl-start 11965 lbl-end 11992 categ ibtypes::pathname loc #<buffer *shell*> dir "/home/emacs/shellbug/examples/mail/" actype actypes::link-to-file args ("#*message*-20230220-192738#"))

Given:
In a shell buffer, run an ls command in a directory containing a file
named like this Emacs-generated mail file (the quotes are not part of
the file name): '#*message*-20230220-192738#'

Expected behavior:
Hyperbole's smart keys will interpret this as a filename, and the
action key will open that file.

Actual behavior:
Hyperbole does seem to interpret it as a filename, but an error occurs
when hitting the action key, indicating it may not be determining the
file's location correctly. A portion of that error backtrace:

  Debugger entered--Lisp error: (error "(hpath:find): \"#*message*-20230220-192738#\" does n...")
    error("(hpath:find): \"%s\" does not exist" "#*message*-20230220-192738#")
    hpath:find("#*message*-20230220-192738#")
    actypes::link-to-file("#*message*-20230220-192738#")

Here is what hkey-help says about the name from the shell buffer:

  A press of the Action Key
  WHEN  (hbut:at-p)
  CALLS (hui:hbut-act) WHICH WILL:
  
    Execute action for optional Hyperbole button symbol BUT in current buffer.
    The default is the current button.
    
    (fn &optional BUT)
  
  pathname BUTTON SPECIFICS:
     lbl-key:         "#*message*-20230220-192738#"
     lbl-start:       11965
     lbl-end:         11992
     categ:           ibtypes::pathname
     loc:             #<buffer *shell*>
     dir:             "/home/emacs/shellbug/examples/mail/"
     actype:          link-to-file
     args:            ("#*message*-20230220-192738#")




Information forwarded to bug-hyperbole <at> gnu.org:
bug#61919; Package hyperbole. (Fri, 03 Mar 2023 03:07:01 GMT) Full text and rfc822 format available.

Message #8 received at 61919 <at> debbugs.gnu.org (full text, mbox):

From: Robert Weiner <rswgnu <at> gmail.com>
To: John Cummings <john <at> rootabega.net>
Cc: 61919 <at> debbugs.gnu.org
Subject: Re: bug#61919: Action key does not open Emacs mail msg files from
 shell
Date: Thu, 2 Mar 2023 22:06:17 -0500
Hi John:

Thanks.  We are working on resolving this.  — rsw

> On Mar 2, 2023, at 11:39 AM, John Cummings <john <at> rootabega.net> wrote:
> 
> I use:  Editor:      GNU Emacs 28.2
>        Hyperbole:   9.0.0
>        Sys Type:    x86_64-pc-linux-gnu
>        OS Type:     gnu/linux
>        Window Sys:  None
>        News Reader: Gnus v5.13
>        Install:     elpa-devel, 8.0.1pre0.20230227.3018
> (HyDebug) ButProps: (variable-documentation "The currently selected Hyperbole button.  Available to action routines." lbl-key "#*message*-20230220-192738#" lbl-start 11965 lbl-end 11992 categ ibtypes::pathname loc #<buffer *shell*> dir "/home/emacs/shellbug/examples/mail/" actype actypes::link-to-file args ("#*message*-20230220-192738#"))
> 
> Given:
> In a shell buffer, run an ls command in a directory containing a file
> named like this Emacs-generated mail file (the quotes are not part of
> the file name): '#*message*-20230220-192738#'
> 
> Expected behavior:
> Hyperbole's smart keys will interpret this as a filename, and the
> action key will open that file.
> 
> Actual behavior:
> Hyperbole does seem to interpret it as a filename, but an error occurs
> when hitting the action key, indicating it may not be determining the
> file's location correctly. A portion of that error backtrace:
> 
>  Debugger entered--Lisp error: (error "(hpath:find): \"#*message*-20230220-192738#\" does n...")
>    error("(hpath:find): \"%s\" does not exist" "#*message*-20230220-192738#")
>    hpath:find("#*message*-20230220-192738#")
>    actypes::link-to-file("#*message*-20230220-192738#")
> 
> Here is what hkey-help says about the name from the shell buffer:
> 
>  A press of the Action Key
>  WHEN  (hbut:at-p)
>  CALLS (hui:hbut-act) WHICH WILL:
> 
>    Execute action for optional Hyperbole button symbol BUT in current buffer.
>    The default is the current button.
> 
>    (fn &optional BUT)
> 
>  pathname BUTTON SPECIFICS:
>     lbl-key:         "#*message*-20230220-192738#"
>     lbl-start:       11965
>     lbl-end:         11992
>     categ:           ibtypes::pathname
>     loc:             #<buffer *shell*>
>     dir:             "/home/emacs/shellbug/examples/mail/"
>     actype:          link-to-file
>     args:            ("#*message*-20230220-192738#")
> 
> 
> 
> _______________________________________________
> Bug-hyperbole mailing list
> Bug-hyperbole <at> gnu.org
> https://lists.gnu.org/mailman/listinfo/bug-hyperbole




Information forwarded to bug-hyperbole <at> gnu.org:
bug#61919; Package hyperbole. (Mon, 13 Mar 2023 23:40:01 GMT) Full text and rfc822 format available.

Message #11 received at 61919 <at> debbugs.gnu.org (full text, mbox):

From: Bob Weiner <rsw <at> gnu.org>
To: John Cummings <john <at> rootabega.net>
Cc: 61919 <at> debbugs.gnu.org
Subject: Re: bug#61919: Action key does not open Emacs mail msg files from
 shell
Date: Mon, 13 Mar 2023 19:38:59 -0400
Hi John:

This has been fixed in a recent Hyperbole pre-release at elpa-devel.
Thanks for reporting it.  I will close this issue.

-- rsw

John Cummings <john <at> rootabega.net> writes:

> I use:  Editor:      GNU Emacs 28.2
>         Hyperbole:   9.0.0
>         Sys Type:    x86_64-pc-linux-gnu
>         OS Type:     gnu/linux
>         Window Sys:  None
>         News Reader: Gnus v5.13
>         Install:     elpa-devel, 8.0.1pre0.20230227.3018
> (HyDebug) ButProps: (variable-documentation "The currently selected Hyperbole button.  Available to action routines." lbl-key "#*message*-20230220-192738#" lbl-start 11965 lbl-end 11992 categ ibtypes::pathname loc #<buffer *shell*> dir "/home/emacs/shellbug/examples/mail/" actype actypes::link-to-file args ("#*message*-20230220-192738#"))
>
> Given:
> In a shell buffer, run an ls command in a directory containing a file
> named like this Emacs-generated mail file (the quotes are not part of
> the file name): '#*message*-20230220-192738#'
>
> Expected behavior:
> Hyperbole's smart keys will interpret this as a filename, and the
> action key will open that file.
>
> Actual behavior:
> Hyperbole does seem to interpret it as a filename, but an error occurs
> when hitting the action key, indicating it may not be determining the
> file's location correctly. A portion of that error backtrace:
>
>   Debugger entered--Lisp error: (error "(hpath:find): \"#*message*-20230220-192738#\" does n...")
>     error("(hpath:find): \"%s\" does not exist" "#*message*-20230220-192738#")
>     hpath:find("#*message*-20230220-192738#")
>     actypes::link-to-file("#*message*-20230220-192738#")
>
> Here is what hkey-help says about the name from the shell buffer:
>
>   A press of the Action Key
>   WHEN  (hbut:at-p)
>   CALLS (hui:hbut-act) WHICH WILL:
>   
>     Execute action for optional Hyperbole button symbol BUT in current buffer.
>     The default is the current button.
>     
>     (fn &optional BUT)
>   
>   pathname BUTTON SPECIFICS:
>      lbl-key:         "#*message*-20230220-192738#"
>      lbl-start:       11965
>      lbl-end:         11992
>      categ:           ibtypes::pathname
>      loc:             #<buffer *shell*>
>      dir:             "/home/emacs/shellbug/examples/mail/"
>      actype:          link-to-file
>      args:            ("#*message*-20230220-192738#")




bug closed, send any further explanations to 61919 <at> debbugs.gnu.org and John Cummings <john <at> rootabega.net> Request was from Bob Weiner <rsw <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 13 Mar 2023 23:42:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 11 Apr 2023 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 352 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.