From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] ox-html.el: add exporting of priority Date: Fri, 09 Jan 2015 09:20:49 +0100 Message-ID: <87fvbkpdpa.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9UnQ-0002sd-Jf for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 03:19:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y9UnM-00076K-J6 for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 03:19:52 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:34471) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y9UnM-00076D-D5 for emacs-orgmode@gnu.org; Fri, 09 Jan 2015 03:19:48 -0500 In-Reply-To: (Zane D. Purvis's message of "Thu, 8 Jan 2015 22:23:38 -0500") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Zane D. Purvis" Cc: emacs-orgmode@gnu.org Hello, "Zane D. Purvis" writes: Thanks for the patch. The summary line should be capitalized, i.e., ox-html: Add exporting of priority > * list/ox-html.el (org-html--priority): new function Capitalize, too. > (org-html-format-headline-default-function): call `org-html--priority' Ditto. > (org-html-style-default): add `.priority' Ditto. > +(defun org-html--priority (priority info) > + "Format a priority into HTML. > +PRIORITY is the character code of the priority or nil. > +INFO is a plist containing export options." > + (when priority > + (format "[%s]" > + (byte-to-string priority)))) Shorter: (and priority (format "[%c]" priority)) Could you fix these issues before I apply your patch? Regards, -- Nicolas Goaziou