From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: 陈泼杨 <chenpoyang@163.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: the code(convert the file to objc-mode) cause orgmode export to html file error
Date: Tue, 26 Dec 2017 12:28:47 +0100 [thread overview]
Message-ID: <87bmil20eo.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <20171226.175404.1225205316275881747.chenpoyang@163.com> ("陈泼杨 "'s message of "Tue, 26 Dec 2017 17:54:04 +0800 (CST)")
Hello,
陈泼杨 <chenpoyang@163.com> writes:
> .h file use c/c++ mode or objc-mode base on it's content, so there is emacswiki solution there:
> https://www.emacswiki.org/emacs/ObjectiveCMode, so i put the the code in my configuration:
>
> ;; header .h add to objc-mode, this cause org unable to export to html file
> (add-to-list 'magic-mode-alist
> `(,(lambda ()
> (and (string= (file-name-extension buffer-file-name) "h")
> (re-search-forward "@\\<interface\\>"
> magic-mode-regexp-match-limit t)))
> . objc-mode))
Try to use `equal' instead of `string='.
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2017-12-26 11:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-26 9:54 Bug: the code(convert the file to objc-mode) cause orgmode export to html file error 陈泼杨
2017-12-26 11:28 ` Nicolas Goaziou [this message]
2017-12-26 13:13 ` 陈泼杨
2017-12-26 13:35 ` Nicolas Goaziou
2017-12-26 14:05 ` 陈泼杨
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=87bmil20eo.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=chenpoyang@163.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).