powerline icon indicating copy to clipboard operation
powerline copied to clipboard

Unthemed powerline when switching to *Messages* buffer while using powerline-center-evil-theme

Open rubin55 opened this issue 5 years ago • 7 comments

When using powerline-center-evil theme, and switching to the Messages buffer, the powerline theme is unapplied. Switching back to Buffer List or scratch re-enables the theme. See:

Screenshot 2019-03-14 at 21 19 14

And with multiple windows:

Screenshot 2019-03-14 at 21 17 22

rubin55 avatar Mar 15 '19 01:03 rubin55

any thoughts on what's happening here? i don't have any idea.v

On Thu, Mar 14, 2019 at 8:24 PM Rubin Simons [email protected] wrote:

When using powerline-center-evil theme, and switching to the Messages buffer, the powerline theme is unapplied. Switching back to Buffer List or scratch re-enables the theme. See:

[image: Screenshot 2019-03-14 at 21 19 14] https://user-images.githubusercontent.com/6214491/54401739-4e5d6a00-469f-11e9-80ce-8b7946fd186e.png

And with multiple windows:

[image: Screenshot 2019-03-14 at 21 17 22] https://user-images.githubusercontent.com/6214491/54401750-5c12ef80-469f-11e9-982b-7eea24c76a1d.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/milkypostman/powerline/issues/170, or mute the thread https://github.com/notifications/unsubscribe-auth/AACUss2MINfsXEsxV31u2srvmMGZgjtOks5vWvZSgaJpZM4b1hTo .

milkypostman avatar Mar 31 '19 20:03 milkypostman

Could it be the case that some other package is getting in the way here? Are all packages current versions?

c-alpha avatar Apr 01 '19 13:04 c-alpha

  • is default in emacs. i think you probably have something else changing the name.

On Mon, Apr 1, 2019 at 8:25 AM Alexander Adolf [email protected] wrote:

One thing that caught my eye is that all buffer names in the screen shots are surrounded by *. My messages buffer for instance is called Messages, not Messages.

Could it be the case that some other package is getting in the way here?

@rubin55 https://github.com/rubin55, where do the * surrounding the buffer names come from?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/milkypostman/powerline/issues/170#issuecomment-478578005, or mute the thread https://github.com/notifications/unsubscribe-auth/AACUspKZhx17BD_-uexvOmIaasnfz4W8ks5vcgjegaJpZM4b1hTo .

milkypostman avatar Apr 01 '19 21:04 milkypostman

* is default in emacs. i think you probably have something else changing the name.

You are right, of course. I realised as I had submitted my comment, and have edited it immediately. Ashes to my head. :-(

The screenshots hint to ParEdit and UndoTree being used. If and when "unfavourable package combination" were a suspicion to be investigated, @rubin55 would need to set his .emacs(.d) and custom.el aside, start with nothing but powerline loaded, and keep trying other packages in turn in combination with powerline (i.e. powerline+A, powerline+B, etc.). This admittedly can be a lengthy process, but without an MWE it will be very difficult.

c-alpha avatar Apr 03 '19 11:04 c-alpha

I've moved my .emacs and .emacs.d aside and came up with a minimal-ish .emacs. This depends on no other packages but whatever comes as default with Emacs 26.1 and the powerline and evil packages themselves. see here: dotemacs-repoducer.txt

To try, install that as .emacs, then M-x package-install evil and M-X package-install powerline, restart, switch to Messages buffer and observe the same bug. I'm running Emacs 26.1 on Mac OS from https://emacsformacosx.com/ . I observed the issue on Gentoo Linux and on Windows 10 using Emacs 26.1 too (I don't think it's platform specific).

rubin55 avatar Apr 04 '19 08:04 rubin55

is this still happening? almost two years later?

milkypostman avatar Mar 13 '21 16:03 milkypostman

Cause

The issue occurs when powerline is required and loaded after evil.

evil before powerline

  (require 'evil)
  (evil-mode 1)

  (require 'powerline)
  (powerline-center-evil-theme)

Pressing the following on startup:

C-h e			;; view-echo-area-messages

Results in:

emacs_2021-05-11_11-09-19

powerline before evil

  (require 'powerline)
  (powerline-center-evil-theme)

  (require 'evil)
  (evil-mode 1)

Pressing the following on startup:

C-h e			;; view-echo-area-messages

Results in:

emacs_2021-05-11_11-13-04

System

powerline-20210428.1229 evil-20210503.2034 GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 Windows 10 Version 2004


In rubin55's config:

  • evil is required and loaded on line: 98
;; Enable evil mode.
(require 'evil)
(evil-mode 1)
  • powerline is required and loaded on line: 139
;; Enable powerline status bar.
(require 'powerline)
;;(setq powerline-image-apple-rgb t)
(powerline-center-evil-theme)

This isn't limited to the powerline-center-evil-theme it also happens with the powerline-default-theme.

duianto avatar May 11 '21 09:05 duianto