all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joost Kremers <joostkremers@yahoo.com>
To: help-gnu-emacs@gnu.org
Subject: Re: read-from-minibuffer & match data
Date: 19 Dec 2012 12:26:47 GMT	[thread overview]
Message-ID: <slrnkd3ck6.m2k.joostkremers@j.kremers4.news.arnhem.chello.nl> (raw)
In-Reply-To: mailman.15639.1355876062.855.help-gnu-emacs@gnu.org

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)


  parent reply	other threads:[~2012-12-19 12:26 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-18 20:06 read-from-minibuffer & match data Joost Kremers
2012-12-19  0:05 ` Drew Adams
2012-12-19  0:48 ` Stefan Monnier
2012-12-19  3:07   ` Drew Adams
2012-12-19  5:05     ` Stefan Monnier
2012-12-19  5:18       ` Drew Adams
     [not found] ` <mailman.15639.1355876062.855.help-gnu-emacs@gnu.org>
2012-12-19 12:26   ` Joost Kremers [this message]
2012-12-19 15:56     ` Barry Margolin
2012-12-19 20:43       ` Joost Kremers
2012-12-20  6:01         ` Barry Margolin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=slrnkd3ck6.m2k.joostkremers@j.kremers4.news.arnhem.chello.nl \
    --to=joostkremers@yahoo.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.