unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How do lisp gurus truncate?
@ 2009-07-23  6:32 Lennart Borgman
  0 siblings, 0 replies; 6+ messages in thread
From: Lennart Borgman @ 2009-07-23  6:32 UTC (permalink / raw)
  To: emacs help

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)))




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-23 20:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2009-07-23  6:32 Lennart Borgman

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).