From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kelly Dean Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Proposal to change cursor appearance to indicate region activation Date: Fri, 30 Jan 2015 07:20:10 +0000 Message-ID: References: <87r3udomzc.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422602503 28936 80.91.229.3 (30 Jan 2015 07:21:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 07:21:43 +0000 (UTC) Cc: emacs-devel@gnu.org To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 30 08:21:42 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YH5td-0005zx-LQ for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 08:21:41 +0100 Original-Received: from localhost ([::1]:35088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH5tc-0002Ns-Km for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 02:21:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48295) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH5tY-0002Nn-P4 for emacs-devel@gnu.org; Fri, 30 Jan 2015 02:21:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YH5tX-0001rg-SO for emacs-devel@gnu.org; Fri, 30 Jan 2015 02:21:36 -0500 Original-Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:59929) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH5tU-0001r8-6K; Fri, 30 Jan 2015 02:21:32 -0500 Original-Received: from mfilter29-d.gandi.net (mfilter29-d.gandi.net [217.70.178.160]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 35B01A80D5; Fri, 30 Jan 2015 08:21:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter29-d.gandi.net Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter29-d.gandi.net (mfilter29-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id W7sBzzP0Rnu0; Fri, 30 Jan 2015 08:21:29 +0100 (CET) X-Originating-IP: 66.220.3.179 Original-Received: from localhost (gm179.geneticmail.com [66.220.3.179]) (Authenticated sender: kelly@prtime.org) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 55C79A80AB; Fri, 30 Jan 2015 08:21:28 +0100 (CET) In-Reply-To: <87r3udomzc.fsf@fencepost.gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4b98:c:538::195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182024 Archived-At: David Kastrup wrote: > Multiple independent use cases. add-hook/remove-hook is a mechanism fo= r > organizing independent use cases for one feature, but there is no such > mechanism for organizing independent use cases for the varhook feature > in your implementation even though you actually use add-hook. But it > requires first individually allocating, naming, and using a hook for an= y > variable you might want to varhook into. IIUC, you mean independent uses of varhook might choose different symbols= for the hook. It seems that would be solved by the convention of using t= he symbol =E2=8C=9Cfoo-varhook=E2=8C=9D as the hook for =E2=8C=9Cfoo=E2=8C= =9D; all independent uses would add/remove their functions on that same h= ook. I guess another solution would be to put the car of the list of functions= directly in a dedicated varhook slot for the target symbol, rather than = indirecting through a regular hook. That would increase the size of each = symbol from 24 to 28 bytes (on 32-bit platforms). But even in my main Ema= cs session, which has been up for 54 days (with 300MB reserved memory), I= only have 10k symbols, so an extra 40kB of memory usage isn't much overh= ead.