perspective-el icon indicating copy to clipboard operation
perspective-el copied to clipboard

Duplicating workspace list on click

Open TripsJ opened this issue 1 year ago • 4 comments

I added a perspective besides main. If i click on the modebar indicator to switch perspectives the whole list gets duplicated and appended to the perspective list. switch-perspective bound to a key seems to work fine.

I added a screenshot to illustrate. Any idea where this behaviourt might come from ?

image

TripsJ avatar Oct 18 '24 13:10 TripsJ

It’s probably the code in persp-update-modestring. It looks like you have a fairly sophisticated modeline setup, so it’s hard to tell where Perspective’s modeline updating code conflicts with it.

gcv avatar Oct 18 '24 22:10 gcv

In other words, I need a simple reproducible example.

gcv avatar Oct 30 '24 18:10 gcv

I get this behavior with doom-modeline or mood-line.

Personally I use straight.el, so my minimal example looks like:

emacs -Q -l ~/.emacs.d/straight/repos/straight.el/bootstrap.el

(straight-use-package 'perspective)
(straight-use-package 'doom-modeline)

(doom-modeline-mode)
(persp-mode)

(persp-switch 'other)

...then click.

I get the same doubling if I replace doom-modeline with mood-line.

muello avatar Mar 11 '25 12:03 muello

Okay, I'll reopen this and take a look when I have time.

gcv avatar Mar 11 '25 19:03 gcv