Gnus development mailing list
 help / color / mirror / Atom feed
* Speeding up IMAP parsing
@ 2010-09-22  0:29 Lars Magne Ingebrigtsen
  2010-09-22  0:46 ` Lars Magne Ingebrigtsen
  2010-09-22 13:26 ` Ted Zlatanov
  0 siblings, 2 replies; 9+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-22  0:29 UTC (permalink / raw)
  To: ding

Using `read' to read the flags would be really fast and create very
little garbage.  The look like this:

* 140 FETCH (FLAGS (\Recent) UID 140).

So I need to change the syntax table so that backspace becomes a
word-constituent character:

    (let ((syntax-table (copy-syntax-table emacs-lisp-mode-syntax-table)))
      (modify-syntax-entry ?\\ "w" syntax-table)
      (set-syntax-table syntax-table))

But placing point before the parenthesis and calling

(read (current-buffer))

just gives me

(FLAGS (Recent) UID 141)

Doesn't `read' use the syntax table?  Or is some other magic necessary? 

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

end of thread, other threads:[~2010-09-22 22:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-22  0:29 Speeding up IMAP parsing Lars Magne Ingebrigtsen
2010-09-22  0:46 ` Lars Magne Ingebrigtsen
2010-09-22  1:05   ` Dan Christensen
2010-09-22 14:57     ` Lars Magne Ingebrigtsen
2010-09-22 21:08       ` Dan Christensen
2010-09-22 21:38         ` Lars Magne Ingebrigtsen
2010-09-22 22:44           ` Dan Christensen
2010-09-22 13:26 ` Ted Zlatanov
2010-09-22 14:58   ` Lars Magne Ingebrigtsen

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 NNTP newsgroup(s).