From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: alist-get in Emacs 24? Date: Fri, 02 Oct 2015 09:34:15 +0200 Message-ID: <877fn5hgg8.fsf@web.de> References: <871tddvl08.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443773940 5160 80.91.229.3 (2 Oct 2015 08:19:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Oct 2015 08:19:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 02 10:18:51 2015 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 1ZhvYG-0001Ve-FN for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Oct 2015 10:18:48 +0200 Original-Received: from localhost ([::1]:58019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhvYF-0000w3-O4 for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Oct 2015 04:18:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35742) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhurX-00019k-0d for help-gnu-emacs@gnu.org; Fri, 02 Oct 2015 03:34:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZhurS-0004c5-W9 for help-gnu-emacs@gnu.org; Fri, 02 Oct 2015 03:34:38 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:36362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZhurS-0004by-PM for help-gnu-emacs@gnu.org; Fri, 02 Oct 2015 03:34:34 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZhurP-0007fh-Nr for help-gnu-emacs@gnu.org; Fri, 02 Oct 2015 09:34:31 +0200 Original-Received: from ip-90-186-2-171.web.vodafone.de ([90.186.2.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Oct 2015 09:34:31 +0200 Original-Received: from michael_heerdegen by ip-90-186-2-171.web.vodafone.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Oct 2015 09:34:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 27 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip-90-186-2-171.web.vodafone.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:iB7XxCctvhOjYjFM5MskzbNGa8g= 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:107461 Archived-At: Marcin Borkowski writes: > I will probably just write functions like set-alist-element and > inc-alist-element (or maybe I'll name them better) so that the library > works in Emacs 24, but is there a better way? There was assoc.el in prior Emacsen (and it's still lying around in lisp/obsolete). `aput' is its setter for alists. Works great, but is obsolete. A different approach is to use `assoc', `delq' and `push', i.e., do it by hand. > Also, what would be the recommended policy for supporting older Emacsen? > Is it enough to test my packages against 24.1 (which didn't compile on > my machine anyway, btw)? Should I care for Emacs 23 at all? That's your choice. There are lots of third party packages that only support the current minor release and maybe some before that. Others support much older releases. Support of old releases is nice for people that have to use the Emacs version they find at their computer at work. In your case, if you don't even know those older releases much, I would not care too much about it. Michael.