From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: find-file-noselect needs save-match-data Date: Wed, 06 Jun 2007 18:09:58 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1181167925 15366 80.91.229.12 (6 Jun 2007 22:12:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2007 22:12:05 +0000 (UTC) Cc: rudalics@gmx.at, herberteuler@hotmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 07 00:12:03 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hw3jX-00021F-Es for ged-emacs-devel@m.gmane.org; Thu, 07 Jun 2007 00:12:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hw3jW-0003rT-UU for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2007 18:12:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hw3hY-0002Uc-F3 for emacs-devel@gnu.org; Wed, 06 Jun 2007 18:10:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hw3hX-0002UJ-Vw for emacs-devel@gnu.org; Wed, 06 Jun 2007 18:10:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hw3hX-0002UF-QO for emacs-devel@gnu.org; Wed, 06 Jun 2007 18:09:59 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hw3hX-0003KT-Fa for emacs-devel@gnu.org; Wed, 06 Jun 2007 18:09:59 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1Hw3hW-0003yn-J1; Wed, 06 Jun 2007 18:09:58 -0400 In-reply-to: (message from Stefan Monnier on Wed, 06 Jun 2007 08:14:14 -0400) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:72382 Archived-At: 99% of non-trivial functions use regexps. So you cannot assume a function doesn't use regexps just because it doesn't say that it uses regexps. It's rather the opposite: a function can only be assumed not to use regexps if it is really trivial/primitive (e.g. `car' or `expand-file-name'). I almost agree with you. There are some functions that aren't literally primitive, but seem like things that should be safe to call. file-truename is an example. It would be good to make file-truename safe regarding regexps. find-file-noselect doesn't have to be regexp-safe, but why not make it regexp-safe, since it is so slow. However, we shouldn't go around trying to make all Emacs functions regexp-safe.