From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Propertizing the minor-mode-alist Date: Sat, 18 Sep 2004 18:55:24 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: <1095335866.7357.83.camel@pineapple.bkk.thaiopensource.com> <1095388341.7357.93.camel@pineapple.bkk.thaiopensource.com> <1095475837.7357.125.camel@pineapple.bkk.thaiopensource.com> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1095548164 7025 80.91.229.6 (18 Sep 2004 22:56:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 18 Sep 2004 22:56:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 19 00:55:50 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C8o7R-0004ie-00 for ; Sun, 19 Sep 2004 00:55:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8oDC-000566-A3 for ged-emacs-devel@m.gmane.org; Sat, 18 Sep 2004 19:01:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C8oCy-00055m-Tg for emacs-devel@gnu.org; Sat, 18 Sep 2004 19:01:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C8oCx-00055T-M5 for emacs-devel@gnu.org; Sat, 18 Sep 2004 19:01:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C8oCx-00055Q-AA for emacs-devel@gnu.org; Sat, 18 Sep 2004 19:01:31 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C8o72-0000qG-V0 for emacs-devel@gnu.org; Sat, 18 Sep 2004 18:55:25 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1C8o72-0000jq-Gf; Sat, 18 Sep 2004 18:55:24 -0400 Original-To: James Clark In-reply-to: <1095475837.7357.125.camel@pineapple.bkk.thaiopensource.com> (message from James Clark on Sat, 18 Sep 2004 09:50:37 +0700) 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27258 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27258 How would you suggest fixing the original problem (of a minor mode wanting to make the string that it puts in the mode line clickable in a way specific to that minor mode)? I have somewhat of a bad feeling about this interface as a way of doing things. Users would not expect such an interface or look for it, so the mode ought to provide something else. What is that other interface? - another keyword (say :propertize-default) which gives the new properties priority over the existing properties :propertize gives its new priority over the existing properties in the strings. I think you mean giving the existing properties priority. Such a feature could certainly be implemented and made safe. One must not simply copy and tweak the code for :propertize, because the handling of risky needs to be thought about. However, I tend to think that the right solution is to use an interface that is more typical of Emacs features.