emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inefficient code in ispell.el


From: Kim F. Storm
Subject: Inefficient code in ispell.el
Date: Mon, 06 Jun 2005 14:06:18 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

I noticed the following code in ispell.el

                        (progn
                          (setq key (buffer-substring-no-properties
                                     (car (match-data))
                                     (car (cdr (match-data)))))

Using match-data like that is VERY inefficient.

I suggest using match-string-no-properties instead, or
at least match-beginning/match-end.

-- 
Kim F. Storm <address@hidden> http://www.cua.dk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]