all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Kenichi Handa <handa@m17n.org>
Cc: Chong Yidong <cyd@stupidchicken.com>, 2435@emacsbugs.donarmstrong.com
Subject: bug#2435: Bug 2435
Date: Thu, 05 Mar 2009 11:46:39 -0500	[thread overview]
Message-ID: <jwvbpsfyl5d.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <E1LfBfd-0004kz-Bc@etlken> (Kenichi Handa's message of "Thu, 05 Mar 2009 20:23:21 +0900")

> It will fix the current problem of bufp contents being
> changed by recursive call, but we still have a danger of
> Lisp code being called in re_compile_pattern, which may lead
> to relocation of string data pointed by the arg "pattern".
> So, I think we must avoid any Lisp calls within
> re_compile_pattern.

Indeed, tho it's not clear how we could do that.  One way that occurs to
me is: if we need to `load' or do some such dangerous operation in
re_compile_pattern, signal an error so we exit re_compile_pattern.
Then catch this error in the calling code where we can do the
corresponding operation safely and call re_compile_pattern again.
Kind of ugly, but for autoload-style operations it seems acceptable.


        Stefan






  reply	other threads:[~2009-03-05 16:46 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87fxhvcmvf.fsf@cyd.mit.edu>
     [not found] ` <E1LePPk-0002zE-RW@etlken>
2009-03-03 16:40   ` bug#2435: Bug 2435 Chong Yidong
2009-03-04  2:16     ` Kenichi Handa
2009-03-04  4:41       ` Chong Yidong
2009-03-04  7:47         ` Kenichi Handa
2009-03-05  4:09           ` Chong Yidong
2009-03-05  6:39             ` Kenichi Handa
2009-03-05  4:42           ` Chong Yidong
2009-03-05 11:23             ` Kenichi Handa
2009-03-05 16:46               ` Stefan Monnier [this message]
2009-03-06  3:38                 ` Kenichi Handa
2009-03-06  4:11                   ` Chong Yidong
2009-03-06  4:48                     ` Kenichi Handa
2009-03-06  5:07                       ` Stefan Monnier
2009-03-06  5:21                         ` Kenichi Handa
2009-03-07  4:00                           ` Chong Yidong
2009-03-07 23:07                           ` Stefan Monnier
2009-03-09  1:12                             ` Kenichi Handa

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=jwvbpsfyl5d.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=2435@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    --cc=handa@m17n.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.