From: PJ Weisberg <pj@irregularexpressions.net>
To: Andrea Crotti <andrea.crotti.0@gmail.com>,
help-gnu-emacs <Help-gnu-emacs@gnu.org>
Subject: Re: c-style-alist
Date: Wed, 29 Sep 2010 15:02:17 -0700 [thread overview]
Message-ID: <AANLkTinicj83s8x4LF5EttxGo2msk7tzZw_-fgkXgK69@mail.gmail.com> (raw)
In-Reply-To: <B10177A4-D04A-417D-944C-F21564A9C4A9@gmail.com>
On Wed, Sep 29, 2010 at 5:40 AM, Andrea Crotti
<andrea.crotti.0@gmail.com> wrote:
>
> Il giorno 28/set/2010, alle ore 18.26, PJ Weisberg ha scritto
>>
>> The or is short-circuiting, but problem is with calling
>> cpp-omnet-mode, not search-forward.
>>
>> I was thinking something like this:
>>
>> (add-hook 'c++-mode-hook 'is-omnet-cpp-file)
>> (make-variable-buffer-local 'changing-to-omnet)
>>
>> (defun is-omnet-cpp-file ()
>> (when (and (or (file-exists-p "omnetpp.ini")
>> (search-forward "<omnetpp.h>"))
>> (not changing-to-omnet))
>> (setq changing-to-omnet t)
>> (cpp-omnet-mode)
>> (setq changing-to-omnet nil)))
>
> Thanks, but I don't see it on the list I think you only sent to me...
> Unfortunately still doesn't work, the same infinite loop problem, even
> if this time I really think it was working, very weird!
Hm. With that code I don't think it can be calling cpp-omnet-mode
from is-omnet-cpp-file before it's returned from the previous call to
cpp-omnet-mode from is-omnet-cpp file. What list of function calls do
you get with the error?
next prev parent reply other threads:[~2010-09-29 22:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-16 14:42 c-style-alist Andrea Crotti
2010-09-25 11:54 ` c-style-alist Andrea Crotti
2010-09-25 14:02 ` c-style-alist Andreas Röhler
2010-09-25 22:07 ` c-style-alist PJ Weisberg
2010-09-28 9:00 ` c-style-alist Andrea Crotti
2010-09-28 10:41 ` c-style-alist Andreas Röhler
[not found] ` <AANLkTinKPzz3aNY0e-7uOvK=3nN7Gs+dgf_3xv4+pLva@mail.gmail.com>
[not found] ` <B10177A4-D04A-417D-944C-F21564A9C4A9@gmail.com>
2010-09-29 22:02 ` PJ Weisberg [this message]
2010-10-06 14:13 ` c-style-alist Andrea Crotti
2010-10-06 21:40 ` c-style-alist PJ Weisberg
2010-10-07 16:30 ` c-style-alist Andrea Crotti
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=AANLkTinicj83s8x4LF5EttxGo2msk7tzZw_-fgkXgK69@mail.gmail.com \
--to=pj@irregularexpressions.net \
--cc=Help-gnu-emacs@gnu.org \
--cc=andrea.crotti.0@gmail.com \
/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.