dbordak / telephone-line

A new implementation of Powerline for Emacs
GNU General Public License v3.0
551 stars 51 forks source link

Rendering Error #37

Closed 0x4d6165 closed 7 years ago

0x4d6165 commented 7 years ago

I'm trying to use the default evil config for telephone-line and I'm receiving this error

Error during redisplay: (eval (telephone-line-separator-render telephone-line-abs-right (telephone-line-face-map (quote evil)) (telephone-line-face-map (quote accent)))) signaled (void-function alist-get)
Error during redisplay: (eval (telephone-line-add-subseparators (quote (telephone-line-airline-position-segment)) telephone-line-abs-hollow-right (quote evil))) signaled (void-function alist-get)

The relevant part of my init.el is

(use-package telephone-line
  :ensure t
  :config
  (telephone-line-evil-config))
dbordak commented 7 years ago

Oops, looks like alist-get was added in Emacs 25. I'll switch it to something else.

dbordak commented 7 years ago

Alright, should be fixed once the next build is up.

dbordak commented 7 years ago

Does it work for you now?

0x4d6165 commented 7 years ago

@dbordak Yes it works perfectly. Thanks :smile:

shackra commented 7 years ago

I'm experiencing this bug:

Error during redisplay: (eval (telephone-line-add-subseparators (quote (telephone-line-misc-info-segment telephone-line-major-mode-segment)) telephone-line-abs-hollow-right (quote nil))) signaled (wrong-number-of-arguments (0 . 0) 1)

This may be the offeding code, but I've been using this without issues until now:

(setf telephone-line-rhs '((nil . (telephone-line-misc-info-segment telephone-line-major-mode-segment))
                             (accent . (telephone-line-minor-mode-segment telephone-line-position-segment))))
dbordak commented 7 years ago

The code you quoted doesn't appear to have anything wrong with it. The issue must have come from somewhere else. Can I see more of your config, or is your .emacs.d repo up to date?

shackra commented 7 years ago

Sure, take a look! https://github.com/shackra/.emacs.d/blob/master/configuracion.org#telephone-line

It is up to date, in packages and compared to my configuration locally.

dbordak commented 7 years ago

You need to update your defsegment forms

From this:

(telephone-line-defsegment
  body)

To this:

(telephone-line-defsegment ()
  body)

Sorry, my fault, tried to make this change more obvious but I don't think I got it across very well.

shackra commented 7 years ago

Thanks!