From: Lennart Borgman <lennart.borgman@gmail.com>
To: emacs help <help-gnu-emacs@gnu.org>
Subject: How do lisp gurus truncate?
Date: Thu, 23 Jul 2009 08:32:56 +0200 [thread overview]
Message-ID: <e01d8a50907222332m210b89ecq3adb2d88b54dfffe@mail.gmail.com> (raw)
I want to truncate an ordered list if the rest of the values are
bigger than some limit. I just wrote some code like this one to do
that, but there must be some more standard way of doing that, or?
(when nxml-where-first-change-pos
(setq nxml-where-path 'dummy nxml-where-path)
(let ((path nxml-where-path))
(while (cdr path)
(when (> (nth 1 (nth 1 path)) nxml-where-first-change-pos)
(setcdr path nil))
(setq path (cdr path))))
(setq nxml-where-path (cdr nxml-where-path)))
next reply other threads:[~2009-07-23 6:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-23 6:32 Lennart Borgman [this message]
[not found] <mailman.2999.1248330784.2239.help-gnu-emacs@gnu.org>
2009-07-23 17:05 ` How do lisp gurus truncate? Giorgos Keramidas
2009-07-23 17:31 ` Pascal J. Bourguignon
2009-07-23 20:35 ` Giorgos Keramidas
2009-07-23 18:11 ` Lennart Borgman
2009-07-23 19:44 ` Pascal J. Bourguignon
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=e01d8a50907222332m210b89ecq3adb2d88b54dfffe@mail.gmail.com \
--to=lennart.borgman@gmail.com \
--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).