help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs lisp question


From: Barry Margolin
Subject: Re: Emacs lisp question
Date: Sun, 06 Feb 2011 20:38:54 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article 
<28c7d37e-682e-41e2-b6cd-6fe18322949d@x11g2000yqc.googlegroups.com>,
 Ben <bkey76@gmail.com> wrote:

> I have a small ELlisp package that configures Emacs to use a vertical
> bar caret.  It takes into account the differences between GNU Emacs
> and XEmacs.
> 
> In this package I have the following line.
> 
> (setq-default cursor-type '(bar . bk-preferred-caret-width))
> 
> bk-preferred-caret-width is a defcustom variable with a default value
> of 2.
> 
> Unfortunately this does not have the desired effect.  However, the
> following does work.
> 
> (setq-default cursor-type '(bar . 2))
> 
> Can anyone suggest how I might get this to work?
> 
> Thanks.

(setq-default cursor-type `(bar . ,bk-preferred-caret-width))

However, this grabs the value of bk-preferred-caret-width when Emacs 
starts up.  Changing it later won't have any effect.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***


reply via email to

[Prev in Thread] Current Thread [Next in Thread]