Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing function define-fringe-bitmap #57

bbatsov opened this issue Jan 12, 2013 · 5 comments


Copy link

@bbatsov bbatsov commented Jan 12, 2013

Some Prelude users are getting the following error:

Warning (initialization): An error occurred while loading `/Users/akshatpradhan/.emacs.d/init.el':                                   

Symbol's function definition is void: define-fringe-bitmap                                                                           

To ensure normal operation, you should investigate and remove the                                                                    
cause of the error in your initialization file.  Start Emacs with                                                                    
the `--debug-init' option to view a complete error backtrace.  

More details here bbatsov/prelude#231 (comment)

Oddly enough I'm using the same Emacs 24.2 and flycheck works for me (meaning I have the define-fringe-bitmap function. I wonder if its a compilation flag problem or something like that.


This comment has been minimized.

Copy link

@lunaryorn lunaryorn commented Jan 12, 2013

I was not able to reproduce this error, neither on OS X, nor on Ubuntu or Arch, with Emacs 24.2 and Emacs snapshot.

I also found no recent information regarding this error, but only some old messages from 2004 and a bug report from 2010 against a pretest of Emacs 23. These suggest that define-fringe-bitmap may be undefined on Emacs versions that are built without GUI toolkit (i.e. without X, Gtk, Cocoa or the like)—though that is not documented in the Elisp reference.

I am inviting @akshatpradhan, @Apsu and @harshavardhana to this discussion. Did you build Emacs without X or Cocoa?


This comment has been minimized.

Copy link

@Apsu Apsu commented Jan 12, 2013

Correct. I am building without X/Cocoa, on both the OS X and Arch tests. I just now tried the emacs + X package on Arch, giving me version: GNU Emacs 24.2.1, and installing Prelude from scratch (with no .emacs.d), but starting it with the -nw flag (to remain in text mode), and the define-fringe-bitmap error is no longer occurring. Huzzah!

However... now it's giving me "File already exists: File exists, /home/apsu/.emacs.d/elpa/nrepl-20130111.742/nrepl-pkg.el" the first run. The subsequent run it does some more melpa installs, and fully starts up. Subsequent runs have no problems. Presumably this is a transient issue with the nrepl package logic, or something else installing it as a dep before prelude tries to install it. Ignoring it for now.

So, the GUI toolkit being compiled in is apparently the solution, whether you start in text mode or not.


This comment has been minimized.

Copy link

@Apsu Apsu commented Jan 12, 2013

I just built emacs from git on Arch, with X, giving me version: GNU Emacs, again with a fresh Prelude, again starting with the -nw flag, and I'm getting almost identical behavior. No define-fring-bitmap error, the same nrepl-pkg.el error, a warning only (with scss) at the end of the subsequent run, and every further run works fine. I'm considering this bug to be fully verified.


This comment has been minimized.

Copy link

@akshatpradhan akshatpradhan commented Jan 12, 2013

Give me a bit and I'll put up screenshots/log of everything I did. I'm using Mountain Lion (fully updated), with emacs (fully updated) from

@lunaryorn lunaryorn closed this Jan 12, 2013
@lunaryorn lunaryorn reopened this Jan 12, 2013
@ghost ghost assigned lunaryorn Jan 12, 2013

This comment has been minimized.

Copy link

@harshavardhana harshavardhana commented Jan 13, 2013

Just tested with brew install emacs --cocoa - seems like fixed. But the same warning as observed by @Apsu - just the scss module warning.

Maybe flycheck or prelude can add check for this on installed emacs to have 'X/Cocoa' support

@lunaryorn lunaryorn closed this in 25553a3 Jan 13, 2013
lunaryorn added a commit that referenced this issue Jan 13, 2013
* master:
  Fix arguments of Emacs Lisp checker
  Do not mess up error match data
  Put first checker error on top
  [Fix #57] Guard the definition of fringe bitmaps
  Fix byte compilation warnings
conao3 added a commit to flylint/flylint that referenced this issue Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
5 participants
You can’t perform that action at this time.