Fuco1 / indicators.el

Display the buffer relative location of line in the fringe.
42 stars 5 forks source link

Function void `define-fringe-bitmap` #8

Closed jcs090218 closed 3 months ago

jcs090218 commented 5 years ago

I think when https://github.com/Fuco1/indicators.el/blob/f62a1201f21453e3aca93f48483e65ae8251432e/indicators.el#L91 this line is executed. I got the error function void: define-fringe-bitmap. I think is because this function only built-in when the user compile with GUI version of Emacs. Is this line necessary? Is there other way to get around this? Thank you!

Fuco1 commented 5 years ago

How would this work without the gui version when it draws to the margins? I don't think you can use it otherwise.

jcs090218 commented 5 years ago

I was just thinking about avoiding the error when only the terminal version is installed!

Fuco1 commented 5 years ago

I see. It doesn't have to be top level and probably could move to the minor mode init and have some kind of lazy init.

jcs090218 commented 5 years ago

Yeah, I don't know how you implemented this package. I read through your code and just have a feeling that define-fringe-bitmap does not have to be on the top level? :D