#24 Cygwin installation/configuration problem (scroll-bar)

normal
open
nobody
5
2009-12-08
2009-12-08
Iliyan Jeliazkov
No

Installed on Cygwin:

$ uname -a
CYGWIN_NT-5.1 STLWD302681 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin

Running "emacs -nw filename" from the command prompt results in empty emacs buffer and a status bar message that says:

Symbol's function definition is void: set-scroll-bar-mode-1

A quick search identified the location of the problem:

$ find /usr -name '*.el' | xargs grep 'set-scroll-bar-mode-1'
/usr/share/elisp/emacro/lisp/e-macs.el: :set 'set-scroll-bar-mode-1)

The following change fixes the issue for me:

$ diff /usr/share/elisp/emacro/lisp/e-macs.el /usr/share/elisp/emacro/lisp/e-macs.el.old
105c105
< (unless (or (eq system-type 'cygwin) (eq system-type 'darwin)) ;OS X and Cygwin rxvt consoles hate scrollbars
---
> (unless (eq system-type 'darwin) ;OS X console hates scrollbars

It is somewhat incomplete because it simply causes scrolbar settings to be ignores for cygwin. If running under Cygwin+X that may not be what one expects. YMMV

Discussion

  • The modified /usr/share/elisp/emacro/lisp/e-macs.el file

     
    Attachments