all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.