emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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 14:35:18 +0100	[thread overview]
Message-ID: <87vagtzk6h.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <20171226.211326.1380080767711170814.chenpoyang@163.com> ("陈泼杨 "'s message of "Tue, 26 Dec 2017 21:13:26 +0800 (CST)")

陈泼杨 <chenpoyang@163.com> writes:

> --------------------------------------------------------------------------------
> (add-to-list 'magic-mode-alist
>                 `(,(lambda ()
>                      (and (equal (file-name-extension buffer-file-name) "h")
>                           (re-search-forward "@\\<interface\\>" 
> 					     magic-mode-regexp-match-limit t)))
>                   . objc-mode))
> --------------------------------------------------------------------------------
>
> still unable to export org file to html:

Your function doesn't handle buffers not associated to a file. You may
want to try

  (and (stringp buffer-file-name)
       (equal "h" (file-name-extension buffer-file-name))
       ...)

Regards,

  reply	other threads:[~2017-12-26 13:35 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
2017-12-26 13:13   ` 陈泼杨
2017-12-26 13:35     ` Nicolas Goaziou [this message]
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=87vagtzk6h.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).