unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Perry Smith <pedzsan@gmail.com>
To: Ben Key <bkey76@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs lisp question
Date: Sun, 6 Feb 2011 18:49:45 -0600	[thread overview]
Message-ID: <12F6D22A-CBAF-4948-B881-FE983D2B624E@gmail.com> (raw)
In-Reply-To: <AANLkTikf68KUCUTmReuBvtH6s-iVrhhYdXXEbsnBQ1Fc@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1027 bytes --]


On Feb 6, 2011, at 5:04 PM, Ben Key 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?

Is it possible that bk-preferred-caret-width is being set *after* the line (setq-default ...) executes?

This could be, for example, if the package that defines bk-preferred-carent-wdith is
loaded after the (setq-default ...) line.

If so, then require the package that bk-preferred-caret -width before the seq-default line.

(I use the term "package"... in Emacs terms, this is usually an elisp file)

HTH,
Perry


[-- Attachment #2: Type: text/html, Size: 1468 bytes --]

  reply	other threads:[~2011-02-07  0:49 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-06 23:04 Emacs lisp question Ben Key
2011-02-07  0:49 ` Perry Smith [this message]
2011-02-07  1:05 ` Drew Adams
2011-02-07  1:30   ` Ben Key
     [not found] <mailman.616.1460989677.7477.help-gnu-emacs@gnu.org>
2016-04-18 16:05 ` Barry Margolin
  -- strict thread matches above, loose matches on Subject: below --
2016-04-18 14:27 Matthias Pfeifer
2016-04-18 19:50 ` tomas
2016-04-19 10:39   ` Matthias Pfeifer
2016-04-19 11:59 ` Alexis
2016-04-22  9:05   ` Matthias Pfeifer
     [not found] <mailman.2559.1372339138.22516.help-gnu-emacs@gnu.org>
2013-06-27 15:33 ` Emacs Lisp Question Barry Margolin
2013-06-27 13:11 drain
2013-06-27 13:25 ` Thorsten Jolitz
2011-02-06 23:19 Emacs lisp question Ben
2011-02-07  1:38 ` Barry Margolin
2009-06-27 13:08 Emacs & Lisp question Ben Badgley
     [not found] <mailman.1371.1246077688.2239.help-gnu-emacs@gnu.org>
2009-06-27  5:52 ` Tim X
2009-06-27 10:19 ` Richard Riley
2009-06-26 23:05 Ben Badgley
2009-06-27 17:40 ` Johan Bockgård
     [not found] <mailman.303.1073667340.928.help-gnu-emacs@gnu.org>
2004-01-09 16:48 ` Emacs " Paolo Gianrossi
2004-01-09 15:55 Gian Uberto Lauri
     [not found] <mailman.669.1061546874.29551.help-gnu-emacs@gnu.org>
2003-08-22 11:17 ` Emacs LISP Question Klaus Zeitler
2003-08-20 16:04 Yakov Nekritch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12F6D22A-CBAF-4948-B881-FE983D2B624E@gmail.com \
    --to=pedzsan@gmail.com \
    --cc=bkey76@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).