Package: emacs-goodies-el
Version: 24.15-2
Severity: normal

There is an annoying problem with the library bar-cursor.el.  Just
loading the bar-cursor library (e.g. when creating the customization
buffer for the variable bar-cursor-mode) will change the cursor of the
selected frame to a hollow box in emacs-snapshot (not in emacs21).

I have an explanation for this undesired behaviour.  The defcustom
macro at the end of bar-cursor.el calls the function
bar-cursor-change, which will in turn modify the frame parameters and
set cursor-type to 'block.  In Emacs 22, the variable cursor-type has
changed and has now the following possible values:

  t               use the cursor specified for the frame
  nil             don't display a cursor
  box             display a filled box cursor
  hollow          display a hollow box cursor
  bar             display a vertical bar cursor with default width
  (bar . WIDTH)   display a vertical bar cursor with width WIDTH
  hbar            display a horizontal bar cursor with default height
  (hbar . HEIGHT) display a horizontal bar cursor with height HEIGHT
  ANYTHING ELSE   display a hollow box cursor

A lot of possible values, but "block" is not among them.

IMHO, what bar-cursor-mode would need to do is to take these values
into account, save the frame's parameter for the cursor type when
turning bar-cursor-mode on and restore it when turning it off.

At least for GNU Emacs 21 and 22 (I don't know about XEmacs), it seems
to me that a better solution should be possible.  Using the variable
'cursor-type', which is buffer-local and overrides the frame's
parameter for the cursor, bar-cursor-mode could be turned on and off
for each buffer individually, which would be a great improvement.
Food for the upstream author, I think!


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (3, 'testing'), (2, 
'unstable'), (1, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.31
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages emacs-goodies-el depends on:
ii  bash                        3.0-16       The GNU Bourne Again SHell
ii  emacs-snapshot [emacsen]    1:20050929-1 The GNU Emacs editor (development
ii  emacs21 [emacsen]           21.4a-1      The GNU Emacs editor

Versions of packages emacs-goodies-el recommends:
pn  dict                          <none>     (no description available)
ii  perl-doc                      5.8.7-5    Perl documentation
ii  wget                          1.10.1-1   retrieves files from the web

-- no debconf information









--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to