dbordak / telephone-line

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

`(fn FACE)"]) telephone-line-tan-hollow-right 'evil)) signaled (wrong-type-argument number-or-marker-p nil)` #142

Open Icy-Thought opened 1 year ago

Icy-Thought commented 1 year ago

I am not aware of what I am doing wrong, but something in Telephone-Line is triggering repetitive entries in the *Messages buffer complaining about something being of a wrong-type-argument number-or-marker-p nil.

I have provided some useful information below about how I am using telephone-line in my config. Otherwise, if you want more information about the config in general, you could always refer to the link below.

Emacs Info

The way I am using Emacs as of now is by starting it up as a systemd daemon service and later triggering emacsclient -c -a '' through a specific binding in my window-manager for scratchpad spawns.

GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0)
Complaints in *Messages:
(fn FACE)"]) telephone-line-tan-hollow-right 'evil)) signaled (wrong-type-argument number-or-marker-p nil)
Error during redisplay: (eval (telephone-line-add-subseparators '(#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_36>) telephone-line-tan-hollow-left 'evil)) signaled (wrong-type-argument number-or-marker-p nil)
Error during redisplay: (eval (telephone-line-separator-render telephone-line-tan-left (telephone-line-face-map 'accent) (telephone-line-face-map 'evil))) signaled (wrong-type-argument number-or-marker-p nil)
Error during redisplay: (eval (telephone-line-add-subseparators '(#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_6> #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_27> #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_7>) telephone-line-tan-hollow-left 'accent)) signaled (wrong-type-argument number-or-marker-p nil)
Error during redisplay: (eval (telephone-line-separator-render telephone-line-tan-left (telephone-line-face-map 'nil) (telephone-line-face-map 'accent))) signaled (wrong-type-argument number-or-marker-p nil)
Error during redisplay: (eval (telephone-line-add-subseparators '(#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_31> #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_11>) telephone-line-tan-hollow-left 'nil)) signaled (wrong-type-argument number-or-marker-p nil)
Error during redisplay: (eval (telephone-line-add-subseparators '(#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_38> #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_10>) telephone-line-tan-hollow-right 'nil)) signaled (wrong-type-argument number-or-marker-p nil)
Error during redisplay: (eval (telephone-line-separator-render telephone-line-tan-right (telephone-line-face-map 'accent) (telephone-line-face-map 'nil))) signaled (wrong-type-argument number-or-marker-p nil)
Error during redisplay: (eval (telephone-line-add-subseparators '(#<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_23>) telephone-line-tan-hollow-right 'accent)) signaled (wrong-type-argument number-or-marker-p nil)
Error during redisplay: (eval (telephone-line-separator-render telephone-line-tan-right (telephone-line-face-map 'evil) (telephone-line-face-map 'accent))) signaled (wrong-type-argument number-or-marker-p nil)
Error during redisplay: (eval (telephone-line-add-subseparators '(#[257 "\305\301\203   \0\301\202
\0\306!\305\300\203\0\300\202\0\307!
\310=\203!\0\311\312\"\207\313\314\315\316\304!\2034\0\2034\0\317\2025\0\320\260D\207" [nil nil major-mode mode-line-front-space column-number-indicator-zero-based number-to-string 4 3 paradox-menu-mode telephone-line-raw t (-3 "%p") " %" "l:%" boundp "c" "C"] 10 "
(Config) Telephone Line

Firstly, I start configuring Telephone-Line to my liking.

(use-package telephone-line
  :hook ((prog-mode text-mode) . telephone-line-mode)
  :custom
  (telephone-line-height 26)
  (telephone-line-evil-use-short-tag t)
  ;; Left separator
  (telephone-line-primary-left-separator 'telephone-line-tan-left)
  (telephone-line-secondary-left-separator 'telephone-line-tan-hollow-left)
  ;; Right separator
  (telephone-line-primary-right-separator 'telephone-line-tan-right)
  (telephone-line-secondary-right-separator 'telephone-line-tan-hollow-right))

And afterwards I apply some theme-related changes to telephone-line through autothemer in kanagawa-theme.el:

  (telephone-line-accent-active                  (:background sumiInk-1 :foreground dragonBlue :weight 'bold :italic t))
  (telephone-line-accent-inactive                (:background sumiInk-1 :foreground comet))
  (telephone-line-evil-normal                    (:background autumnGreen :foreground sumiInk-1 :bold t))
  (telephone-line-evil-visual                    (:background crystalBlue :foreground sumiInk-1 :bold t))
  (telephone-line-evil-motion                    (:background oniViolet :foreground sumiInk-1 :bold t))
  (telephone-line-evil-insert                    (:background autumnYellow :foreground sumiInk-1 :bold t))
  (telephone-line-projectile                     (:foreground springGreen :weight 'bold :italic t))