emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: eval-when-compile vs defconst


From: Richard Stallman
Subject: Re: eval-when-compile vs defconst
Date: Mon, 13 Nov 2006 04:43:48 -0500

    (defvar ada-block-start-re
      (eval-when-compile
        (concat "\\<\\(" (regexp-opt '("begin" "declare" "else"
                                       "exception" "generic" "loop" "or"
                                       "private" "select" ))
                "\\|\\(\\(limited\\|abstract\\|tagged\\)[ 
\t\n]+\\)*record\\)\\>"))
      "Regexp for keywords starting Ada blocks.")

It would not be worth any extra complexity just to avoid one call to
concat when the file is loaded.  So even if eval-when-compile were not
a no-op here, I'd say take it out.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]