From: Marcin Borkowski <mbork@mbork.pl>
To: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: alist-get in Emacs 24?
Date: Fri, 02 Oct 2015 08:32:07 +0200 [thread overview]
Message-ID: <871tddvl08.fsf@mbork.pl> (raw)
Hi all,
some time ago, someone here recommended the alist-get function to me.
It works like a charm for me, but not for some other user who's running
Emacs 24.
While writing (or copying from subr.el) an alist-get "getter" version is
trivial, the "setter" version (which I need for setf, cl-incf and
cl-decf) is a bit harder for me. Looking at
(gv-define-expander alist-get ...)
in gv.el makes my head explode. 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? (Note: while I'm fairly confident that I could understand that
gv-define-expander stuff, it would probably take a lot of time. This is
the long-term plan. Now my goal is to help that user ASAP.)
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?
TIA,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
next reply other threads:[~2015-10-02 6:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-02 6:32 Marcin Borkowski [this message]
2015-10-02 6:39 ` alist-get in Emacs 24? Dmitry Gutov
2015-10-02 6:54 ` Marcin Borkowski
2015-10-02 7:34 ` Michael Heerdegen
2015-10-02 8:49 ` Marcin Borkowski
2015-10-03 3:05 ` Michael Heerdegen
2015-10-02 13:37 ` Stefan Monnier
2015-10-07 19:15 ` Marcin Borkowski
2015-10-07 20:45 ` Drew Adams
2015-10-08 8:21 ` Michael Heerdegen
2015-10-08 15:53 ` Drew Adams
2015-10-08 16:14 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871tddvl08.fsf@mbork.pl \
--to=mbork@mbork.pl \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).