From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou 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 Message-ID: <87bmil20eo.fsf@nicolasgoaziou.fr> References: <20171226.175404.1225205316275881747.chenpoyang@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTnPm-0000So-4k for emacs-orgmode@gnu.org; Tue, 26 Dec 2017 06:28:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTnPj-0003px-1h for emacs-orgmode@gnu.org; Tue, 26 Dec 2017 06:28:58 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:54529) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eTnPi-0003oU-SU for emacs-orgmode@gnu.org; Tue, 26 Dec 2017 06:28:54 -0500 In-Reply-To: <20171226.175404.1225205316275881747.chenpoyang@163.com> (=?utf-8?B?IumZiOazvOadqA==?= "'s message of "Tue, 26 Dec 2017 17:54:04 +0800 (CST)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: =?utf-8?B?6ZmI5rO85p2o?= Cc: emacs-orgmode@gnu.org Hello, =E9=99=88=E6=B3=BC=E6=9D=A8 writes: > .h file use c/c++ mode or objc-mode base on it's content, so there is ema= cswiki 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 fi= le > (add-to-list 'magic-mode-alist > `(,(lambda () > (and (string=3D (file-name-extension buffer-file-name) "h") > (re-search-forward "@\\" > magic-mode-regexp-match-limit t))) > . objc-mode)) Try to use `equal' instead of `string=3D'. Regards, --=20 Nicolas Goaziou