From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ben Key Newsgroups: gmane.emacs.help Subject: Re: Emacs lisp question Date: Sun, 6 Feb 2011 19:30:11 -0600 Message-ID: References: <71A9494C9F54449295D11B7BE18B3B7D@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636c5b5ae7c1b09049ba72d8e X-Trace: dough.gmane.org 1297054815 29986 80.91.229.12 (7 Feb 2011 05:00:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 7 Feb 2011 05:00:15 +0000 (UTC) To: Drew Adams , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 07 06:00:10 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PmJCs-0003Z2-HA for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Feb 2011 06:00:10 +0100 Original-Received: from localhost ([127.0.0.1]:40338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmJCr-0002Ri-Rr for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Feb 2011 00:00:09 -0500 Original-Received: from [140.186.70.92] (port=35261 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PmFw3-0005ay-0A for help-gnu-emacs@gnu.org; Sun, 06 Feb 2011 20:30:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PmFw1-0000kW-6R for help-gnu-emacs@gnu.org; Sun, 06 Feb 2011 20:30:34 -0500 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:65276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PmFw1-0000kG-1k for help-gnu-emacs@gnu.org; Sun, 06 Feb 2011 20:30:33 -0500 Original-Received: by bwz16 with SMTP id 16so4582030bwz.0 for ; Sun, 06 Feb 2011 17:30:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=QvHyTXsOMAQnqr/F6lkDEfM0YIco/N0KX0u0hLpH3NM=; b=OfjYiipvOL4W84oXpjVA/dpz8q9hOijezNpKaMF65klLOXqSWlvwgSy5dsOh82WeIT BYV9tw5MDQAXzeVpOfV1GnLpCt4BPVMdl+PxMo6BPDoNzo9ieTo3IlaJSZQZo7HQzB8j fOYY6ym2NySqJKqQRPssEdfZK7G+Gu6qrSiIA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=VMQpUqDCzFheMQhsO9MFtyXnpRm6938wj4UvLYP6l5SxmyWJE8gUg5L3LQ3fdiezPJ MnIWW5lRA6a93D4K+Yx+6JmTTd8gnBlSDvCC4MZBSMR9pSIKRChnrF4lIbdoYQbvltwP 6MDyLQw+vnaIqZT32lnNiMpEa2e3iID8xQpFY= Original-Received: by 10.204.65.135 with SMTP id j7mr14720332bki.85.1297042231794; Sun, 06 Feb 2011 17:30:31 -0800 (PST) Original-Received: by 10.204.9.193 with HTTP; Sun, 6 Feb 2011 17:30:11 -0800 (PST) In-Reply-To: <71A9494C9F54449295D11B7BE18B3B7D@us.oracle.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-Mailman-Approved-At: Sun, 06 Feb 2011 23:59:27 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78999 Archived-At: --001636c5b5ae7c1b09049ba72d8e Content-Type: text/plain; charset=ISO-8859-1 Thanks. That solved my problem. On Sun, Feb 6, 2011 at 7:05 PM, Drew Adams wrote: > > (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? > > Change > '(bar . bk-preferred-caret-width) to > `(bar . ,bk-preferred-caret-width) > > The latter is the same as > (cons 'bar bk-preferred-caret-width), which you can also use if you prefer. > > Simply quoting the cons cell > (bar . bk-preferred-caret-width) > > evaluates to that cons cell itself. And that cons cell has a car of `bar' > and a > cdr that is the symbol `bk-preferred-caret-width'. > > --001636c5b5ae7c1b09049ba72d8e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks.=A0 That solved my problem.

On Sun= , Feb 6, 2011 at 7:05 PM, Drew Adams <drew.adams@oracle.com> wrote:
> (setq-default cursor-type '(bar . bk-preferred-c= aret-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?

Change
'(bar . bk-preferred-caret-width) to
`(bar . ,bk-preferred-caret-width)

The latter is the same as
(cons 'bar bk-preferred-caret-width), which you can also use if you pre= fer.

Simply quoting the cons cell
(bar . bk-preferred-caret-width)

evaluates to that cons cell itself. =A0And that cons cell has a car o= f `bar' and a
cdr that is the symbol `bk-preferred-caret-width'.


--001636c5b5ae7c1b09049ba72d8e--