From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: read-from-minibuffer & match data Date: 19 Dec 2012 12:26:47 GMT Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1355920220 31102 80.91.229.3 (19 Dec 2012 12:30:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2012 12:30:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 19 13:30:27 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TlIn5-00083h-Av for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 13:30:27 +0100 Original-Received: from localhost ([::1]:56271 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TlImr-0002Mv-DN for geh-help-gnu-emacs@m.gmane.org; Wed, 19 Dec 2012 07:30:13 -0500 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-X-Trace: individual.net Bv222nPtXbVSqNfy9JIycwtvHFHJFH3sETNBhC01biZhPcSnk4OsSUnQ1/9gOa51T6 Cancel-Lock: sha1:HqNqBTvJsfxkeQhPFa9wl+cKj6k= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:195898 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88217 Archived-At: Drew Adams wrote: >> I've put a save-match-data into the function to solve the >> issue, but I'd just like to make sure this isn't a bug in emacs. > > The way to make sure is to file a bug report, preferably with a recipe starting > from `emacs -Q'. Sorry, I should have tested with `emacs -Q' before posting of course... Turns out that it is not Emacs itself but a package I started using recently, autopair. With `emacs -Q' read-from-minibuffer does not affect the match data. If I then load autopair.el and activate it globally (autopair-global-mode), read-from-minibuffer suddenly does chang the match data. However, given that there is apparently no good reason to assume that read-from-minibuffer never changes the match data, I have to consider this a bug in my code, so I'll keep the fix I added. Still, I'll notify the developer of autopair, so he can decide for himself if he should do something about it. Thanks to all who replied in this thread. :-) -- Joost Kremers joostkremers@yahoo.com Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)