*s in menu?

60 views
Skip to first unread message

Benjamin Slade

unread,
Jun 13, 2013, 4:09:37 PM6/13/13
to mu-di...@googlegroups.com
In the main mu4e menu I seem to be getting *s in place of every actual
shortcut. The actual shortcuts still work, just the menu is odd.

Kyle Machulis

unread,
Jun 14, 2013, 5:45:44 PM6/14/13
to mu-di...@googlegroups.com
I'm getting this too. Might be that the regexp in mu4e-main's mu4e~main-action-str is getting a different group back now? I'm not seeing any recent git changes in there, did something update in the emacs regexp engine (I just updated to the 2013/06/11 build today)?


On Thu, Jun 13, 2013 at 1:09 PM, Benjamin Slade <sl...@jnanam.net> wrote:
In the main mu4e menu I seem to be getting *s in place of every actual
shortcut. The actual shortcuts still work, just the menu is odd.

--
You received this message because you are subscribed to the Google Groups "mu-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mu-discuss+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



Dirk-Jan C. Binnema

unread,
Jun 15, 2013, 2:58:44 AM6/15/13
to mu-di...@googlegroups.com

On Sat, Jun 15 2013, Kyle Machulis wrote:

> I'm getting this too. Might be that the regexp in mu4e-main's
> mu4e~main-action-str is getting a different group back now? I'm not seeing
> any recent git changes in there, did something update in the emacs regexp
> engine (I just updated to the 2013/06/11 build today)?

Hmmm, it still works for me (24.3.50.21 on debian/sid). Can you
reproduce it with an older version?

This is what I get:

(insert (mu4e~main-action-str "\t* [j]ump to some maildir\n"
'mu4e-jump-to-maildir))
=> "* [j]ump to some maildir"

Are you getting
(insert (mu4e~main-action-str "\t* [j]ump to some maildir\n"
'mu4e-jump-to-maildir))
=> "* [*]ump to some maildir"
?

If so, it would be interesting to see what

(let* ((str "\t* [f]oo bar"))
(insert
(replace-regexp-in-string "\\[\\(\\w+\\)\\]"
(lambda(m)
(format "[%s]" (propertize (match-string 1 str) 'face 'mu4e-highlight-face)))
str)))

does (I get "* [f]oo bar").


Best wishes,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C

Kyle Machulis

unread,
Jun 15, 2013, 2:50:05 PM6/15/13
to mu-di...@googlegroups.com
(insert (mu4e~main-action-str "\t* [j]ump to some maildir\n"
                              'mu4e-jump-to-maildir))

=> "* [*]ump to some maildir"

(let* ((str "\t* [f]oo bar"))
  (insert
    (replace-regexp-in-string "\\[\\(\\w+\\)\\]"
      (lambda(m)
        (format "[%s]" (propertize (match-string 1 str) 'face 'mu4e-highlight-face)))
      str)))
=> "* [*]oo bar"

(insert (emacs-version))
=> "GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2013-06-11 on papaya, modified by Debian"

So... Yeah. Weird. This is emacs-snapshot on Ubuntu 12.04, pulled from https://launchpad.net/~cassou/+archive/emacs



Dirk-Jan C. Binnema

unread,
Jun 16, 2013, 3:52:57 AM6/16/13
to mu-di...@googlegroups.com

On Sat, Jun 15 2013, Kyle Machulis wrote:

> (insert (mu4e~main-action-str "\t* [j]ump to some maildir\n"
> 'mu4e-jump-to-maildir))
>
> => "* [*]ump to some maildir"
>
> (let* ((str "\t* [f]oo bar"))
> (insert
> (replace-regexp-in-string "\\[\\(\\w+\\)\\]"
> (lambda(m)
> (format "[%s]" (propertize (match-string 1 str) 'face
> 'mu4e-highlight-face)))
> str)))
> => "* [*]oo bar"
>
> (insert (emacs-version))
> => "GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
> of 2013-06-11 on papaya, modified by Debian"
>
> So... Yeah. Weird. This is emacs-snapshot on Ubuntu 12.04, pulled from
> https://launchpad.net/~cassou/+archive/emacs
>

Thanks
And what happens with this one?

(let* ((str "\t* [f]oo bar"))
(insert
(replace-regexp-in-string "\\[\\(\\w+\\)\\]"
(lambda(m)
(format "[%s]" (propertize (match-string 1 m) 'face 'mu4e-highlight-face))) str)))

(I suspect that the issue is some difference of behavior in match-string;
i.e., it returns the matches relative to the whole str rather than
relative to the part matched by the regexp.)

Cheers,

Joost Kremers

unread,
Jun 16, 2013, 12:52:52 PM6/16/13
to mu-di...@googlegroups.com

On So, Jun 16 2013, Dirk-Jan C. Binnema <dj...@djcbsoftware.nl> wrote:
> And what happens with this one?
>
> (let* ((str "\t* [f]oo bar"))
> (insert
> (replace-regexp-in-string "\\[\\(\\w+\\)\\]"
> (lambda(m)
> (format "[%s]" (propertize (match-string 1 m) 'face 'mu4e-highlight-face))) str)))
>

I get:

* [f]oo bar

And I'm running into the same problem on two different machines (desktop
and netbook). I don't remember seeing it on my Mac at work, but I'm not
sure it's as up to date with mu4e as my two other computers are.

> On Sat, Jun 15 2013, Kyle Machulis wrote:
>> So... Yeah. Weird. This is emacs-snapshot on Ubuntu 12.04, pulled from
>> https://launchpad.net/~cassou/+archive/emacs

I'm running Ubuntu 13.04 (on the desktop) and Xubuntu 13.04 (on the
netbook), both with the Emacs snapshot packages from cassou. So it could
be that a very recent change in Emacs triggered this bug, in which case
it should probably be reported.

--
Joost Kremers
Life has its moments

Kyle Machulis

unread,
Jun 17, 2013, 2:13:18 AM6/17/13
to mu-di...@googlegroups.com
Running that gets me

=> "* [f]oo bar"

So that seems to work for me too. Will update to head for the fix. Thanks!


emilio.t...@gmail.com

unread,
Mar 6, 2015, 6:05:42 AM3/6/15
to mu-di...@googlegroups.com
Any solution? I am using emacs 24.4.1 and mu 0.9.9.5 and I get the same error. Thank you. Emilio

(insert (mu4e~main-action-str "\t* [j]ump to some maildir\n"
                              'mu4e-jump-to-maildir))

* [*]ump to some maildir


(let* ((str "\t* [f]oo bar"))
  (insert  
   (replace-regexp-in-string "\\[\\(\\w+\\)\\]"
                             (lambda(m)
                               (format "[%s]" (propertize (match-string 1 m) 'face 'mu4e-highlight-face))) str)))

* [f]oo bar


(insert (emacs-version))

GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23)





Dirk-Jan C. Binnema

unread,
Mar 6, 2015, 6:14:53 AM3/6/15
to mu-di...@googlegroups.com
This started happening with some specific emacs versions; anyway, this
has long been fixed, please upgrade your mu version to something more
recent.

Emilio Torres Manzanera

unread,
Mar 6, 2015, 1:59:37 PM3/6/15
to mu-di...@googlegroups.com
Ok. I have installed the version 0.9.11 from github, and it works fine. Thank you!
(Note: In http://www.djcbsoftware.nl/code/mu/mu4e.html, the first link to download it gets the version 0.9.9.5)
--
Sent with my mu4e

Xavier Maillard

unread,
Mar 8, 2015, 5:59:13 PM3/8/15
to mu-di...@googlegroups.com

Emilio Torres Manzanera <emilio.t...@gmail.com> writes:

> Ok. I have installed the version 0.9.11 from github, and it works
> fine. Thank you!

While speaking about it, when is the next release due date ?

Thank you.

-- Xavier.
Reply all
Reply to author
Forward
0 new messages