From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Hill Newsgroups: gmane.emacs.help Subject: Re: why cannot set cursor-type with setq but only with setq-default?????? Date: Wed, 15 Jan 2003 13:28:26 -0800 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Trace: main.gmane.org 1042666267 2359 80.91.224.249 (15 Jan 2003 21:31:07 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 15 Jan 2003 21:31:07 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Yv7q-0000bn-00 for ; Wed, 15 Jan 2003 22:31:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Yv7W-0004hm-00 for gnu-help-gnu-emacs@m.gmane.org; Wed, 15 Jan 2003 16:30:46 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Yv6o-0004H1-00 for help-gnu-emacs@gnu.org; Wed, 15 Jan 2003 16:30:02 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Yv6j-00047p-00 for help-gnu-emacs@gnu.org; Wed, 15 Jan 2003 16:29:57 -0500 Original-Received: from renfield.synergymicro.com ([153.105.4.30] helo=synergymicro.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Yv5e-0002Xv-00 for help-gnu-emacs@gnu.org; Wed, 15 Jan 2003 16:28:50 -0500 Original-Received: from synergy.synergy.encinitas.ca.us ([153.105.4.29]) by synergymicro.com (8.9.3/8.9.3) with ESMTP id NAA15819 for ; Wed, 15 Jan 2003 13:29:47 -0800 Original-Received: from [198.17.100.22] (G-Hill-Mac [198.17.100.22])NAA25774 for ; Wed, 15 Jan 2003 13:34:31 -0800 In-Reply-To: Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5522 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5522 At 9:34 AM -0800 1/15/03, Christian Seberino wrote: >setq-default is used to set cursor to be a bar rather than a box... > >(setq-default cursor-type 'bar) > >How come (setq cursor-type 'bar) doesn't work???? Chris, Apparently cursor-type is automatically buffer-local, so setq changes its value only for the current buffer. setq-default changes its value for all buffers that don't have their own buffer-local version. cursor-type as a variable seems to be new to emacs-21. I didn't even know it existed until you asked this question. Before 21 you had to use modify-frame-parameters to change it. I have not been able to find any documentation on cursor-type as a variable other than in emacs-21's interactive help. Can you point us to some? Thanks. --Greg