emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Christopher Schmidt <christopher@ch.ristopher.com>
Cc: "emacs-orgmode@gnu.org Mailing List" <emacs-orgmode@gnu.org>
Subject: Re: ...
Date: Thu, 31 Jan 2013 11:37:39 +0100	[thread overview]
Message-ID: <6C559BF7-BACF-48AF-AB06-383D6AC14BDE@gmail.com> (raw)
In-Reply-To: <871ud13dkp@ch.ristopher.com>

Hi Christopher,

I mant to copy the list, I am doing this again now.

Wow, I was not aware that Emacs caches by content, this is an important piece of information.  I guess this removed the main concern I had.  Thanks for looking it up in the code and showing it to me.  I am not sure if I understand that code completely, but i trust your judgment.

-Carsten

On 31 jan. 2013, at 10:29, Christopher Schmidt <christopher@ch.ristopher.com> wrote:

> Christopher Schmidt <christopher@ch.ristopher.com> writes:
>> I was not aware of Emacs caching the regexp on a per-object rather
>> than per-content basis.  If that is true, the regexp should be made a
>> buffer local variable, of course!
> 
> I do not think that's true.
> 
> In compile_pattern:
> 
>      for (cpp = &searchbuf_head; ; cpp = &cp->next)
>        {
>          cp = *cpp;
>          ...
>          if (SCHARS (cp->regexp) == SCHARS (pattern)
>              && STRING_MULTIBYTE (cp->regexp) == STRING_MULTIBYTE (pattern)
>              && !NILP (Fstring_equal (cp->regexp, pattern))
>                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>              && EQ (cp->buf.translate, (! NILP (translate) ? translate : make_number (0)))
>              && cp->posix == posix
>              && (EQ (cp->syntax_table, Qt)
>                  || EQ (cp->syntax_table, BVAR (current_buffer, syntax_table)))
>              && !NILP (Fequal (cp->whitespace_regexp, Vsearch_spaces_regexp))
>              && cp->buf.charset_unibyte == charset_unibyte)
>            break;
> 
>          /* If we're at the end of the cache, compile into the nil cell
>             we found, or the last (least recently used) cell with a
>             string value.  */
>          if (cp->next == 0)
>            {
>            compile_it:
>              compile_pattern_1 (cp, pattern, translate, posix);
>              break;
>            }
>        }
>      ...
> 
>        Christopher


-- 
They can't eat you. -- Merlin Mann in his "Scared Shitless" talk

       reply	other threads:[~2013-01-31 10:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <877gmt3dzq@ch.ristopher.com>
     [not found] ` <871ud13dkp@ch.ristopher.com>
2013-01-31 10:37   ` Carsten Dominik [this message]
2013-01-31 10:53     ` Christopher Schmidt
2013-01-31 13:40       ` Bastien
2013-01-31 11:22     ` Bastien
2013-01-31 11:46       ` roundtrip integration with Asana? Meng Weng Wong
2013-01-31 13:49         ` Bastien
2013-02-01  2:53           ` Meng Weng Wong
2013-01-31 11:59       ` Carsten Dominik
2013-01-31 13:32         ` Bastien
2013-01-31 14:32           ` Carsten Dominik
2013-01-31 16:02             ` orgstruct-mode with custom headline prefix (was: ...) Christopher Schmidt

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=6C559BF7-BACF-48AF-AB06-383D6AC14BDE@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=christopher@ch.ristopher.com \
    --cc=emacs-orgmode@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).