From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: Re: Two questions about generalized variables Date: Wed, 24 Feb 2016 10:03:25 +0800 Message-ID: <87wppuj24y.fsf@ericabrahamsen.net> References: <87ziuu4p8k.fsf@ericabrahamsen.net> <877fhydw6q.fsf@web.de> <877fhyayzn.fsf@ericabrahamsen.net> <878u2e9bsn.fsf@web.de> <87si0kktax.fsf@ericabrahamsen.net> <87egc37dz4.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1456279442 2951 80.91.229.3 (24 Feb 2016 02:04:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2016 02:04:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 03:03:53 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1aYOnw-000382-8H for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2016 03:03:52 +0100 Original-Received: from localhost ([::1]:32836 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYOnv-00057q-Km for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2016 21:03:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYOnk-00057d-Kt for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 21:03:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYOnh-0004xu-FI for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 21:03:40 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:37086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYOnh-0004xi-8Q for help-gnu-emacs@gnu.org; Tue, 23 Feb 2016 21:03:37 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aYOnd-0002t8-PR for help-gnu-emacs@gnu.org; Wed, 24 Feb 2016 03:03:34 +0100 Original-Received: from 123.122.44.213 ([123.122.44.213]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Feb 2016 03:03:33 +0100 Original-Received: from eric by 123.122.44.213 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Feb 2016 03:03:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.122.44.213 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cancel-Lock: sha1:W4pbOpDxcGNpnhbtbhB0++3tols= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109280 Archived-At: Michael Heerdegen writes: > Eric Abrahamsen writes: > >> > Oh, I see. Hmm, one could define a place expander quite similarly to >> > the one of `alist-get', I think, but it doesn't seem one to be >> > predefined, indeed. >> >> Right, that was my question, I guess -- I would do this with >> `gv-define-setter', right? Its docstring is a bit impenetrable, but if >> that's the right place to start I can figure it out. > > I think even `gv-define-simple-setter' should be sufficient. > > >> Last question: How do I actually see the gv-expander of `alist-get'? >> Where is that? > > Look into gv.el and search for `alist-get'. > > That expander definition produces more efficient code than a separate > setter definition would - but one has to learn a bit about the concept > behind the library to understand how that works. Learning about the concepts was the whole idea! Thanks again for your help, Eric