From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Bug : Emacs 22+; package cursor-chg.el Date: Sat, 25 Oct 2008 08:34:01 -0700 Message-ID: <00a501c936b7$1b4a9ec0$0200a8c0@us.oracle.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224948853 5176 80.91.229.12 (25 Oct 2008 15:34:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Oct 2008 15:34:13 +0000 (UTC) To: "'Bernhard Koenig'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 25 17:35:14 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KtlAX-0004Gw-0B for ged-emacs-devel@m.gmane.org; Sat, 25 Oct 2008 17:35:13 +0200 Original-Received: from localhost ([127.0.0.1]:38293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ktl9R-00054w-0f for ged-emacs-devel@m.gmane.org; Sat, 25 Oct 2008 11:34:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ktl9M-00054a-0J for emacs-devel@gnu.org; Sat, 25 Oct 2008 11:34:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ktl9K-00054N-HT for emacs-devel@gnu.org; Sat, 25 Oct 2008 11:33:58 -0400 Original-Received: from [199.232.76.173] (port=59428 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ktl9K-00054K-B1 for emacs-devel@gnu.org; Sat, 25 Oct 2008 11:33:58 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]:29992) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ktl9K-0002BZ-0S for emacs-devel@gnu.org; Sat, 25 Oct 2008 11:33:58 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id m9PFXs8I020388; Sat, 25 Oct 2008 09:33:55 -0600 Original-Received: from acsmt706.oracle.com (acsmt706.oracle.com [141.146.40.84]) by rgmgw1.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m9PFXrEM018528; Sat, 25 Oct 2008 09:33:54 -0600 Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 25 Oct 2008 08:33:53 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ack2oZodoo9MvCViSeWCuubQHIbl3QAEBpmw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104992 Archived-At: > I was just testing the package cursor-chg.el and I think it's an > excellent idea but it seemed a bit buggy to me: > > I think it works with the standard configurations, What do you mean by that last part? Does it work for you starting with `emacs -Q'? > but it was not possible for me to change some settings, for example: > I preferred to have my standard cursor color (from my own themes) but > cursor-chg.el is programmed in such a way that it always overrides > your personal cursor color to "Red". How so? Please always provide a step-by-step recipe to reproduce the problem. And please always indicate your Emacs build (version, platform). And please always start from `emacs -Q' (or `emacs -q --no-init-file'), so that you don't load your init file, which might interfere. If the problem arises from interference with some other code (e.g. color theme), then state explicitly how and when you run that code. But first try to get it to work with `emacs -Q'. You get the idea. One thing that occurs to me is whether you are using Emacs in a console instead of with a window manager. I have not tested it in a console - I have no idea if cursor changing is even possible in a console with Emacs. Everything I say here is for use with a window manager, unless someone confirms that it also works in a console. In any case, `cursor-chg.el' is not "programmed in such a way that it always overrides" anything, AFAIK. If it does that, it's a bug. The only `Red' in the library is here: (defcustom curchg-default-cursor-color (or (cdr (assq 'cursor-color default-frame-alist)) "Red") "*Default text cursor color for non-special frames." :type (if (>= emacs-major-version 21) 'color 'string) :group 'cursor) That means that the color, by default, is picked up from your `default-frame-list' or is `Red' if you specify no `cursor-color' in `default-frame-list'. Irregardless of the default value, however, you should be able to change the value. What happens when you try to customize that user option (`M-x customize-option curchg-default-cursor-color')? Or you try to set it using `M-x set-variable curchg-default-cursor-color'? Also, are you using an input method and, if so, is option `curchg-change-cursor-on-input-method-flag' non-nil? If so, the color of `curchg-input-method-cursor-color' is used instead of `curchg-default-cursor-color'. > Similarly, I had problems > changing the active "non-idle" cursor to say "hbar", I tried to add > (setq curchg-default-cursor-type 'hbar) > but the hbar cursor wouldn't stick. I can't reproduce that problem either. Does hbar cursor normally work for you in Emacs? It might not work on some platforms (dunno). IOW, see first if it works independently of `cursor-chg.el'. And what do you mean by "wouldn't stick"? Try to be specific. > Another thing I tried was > (setq curchg-overwrite/read-only-cursor-type 'hollow) > but it wouldn't work either. All these things were overwritten by the > settings in cursor-chg.el. What do mean by overridden by the settings in the file? Do you mean that the file settings always remain and that you cannot change them? I don't see any of the problems you report, starting from `emacs -Q' on Windows - in any Emacs version. I don't use color theme, however - perhaps it somehow doesn't let you change the cursor (dunno)? You will need to break this down and analyze just what is happening. First, don't mix with color theme or anything else - try first to see if it works in `emacs -Q'. And with a window manager. > Of course you can change the file > cursor-chg.el itself but that's subtle. That would defeat a main purpose of the library. You should be able to customize all of this and to change any of it on the fly also. > Thus my suggestion: > > cursor-chg.el should be more flexible in using the standard setting > for "cursor-color" "cursor-shape" etc... and not defining its own > standards (like e.g. cursor color "red"). They are all user options, so you should be able to get the behavior you want - completely "flexible". The default values should not be very important. The problem is to figure out why you cannot change the values. If you prefer, we can take any followup off list, and you or I can report to the list at the end, if helpful.