[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make define-builtin-markup{, -list}-command #:category #:properties

From: David Kastrup
Subject: Re: Make define-builtin-markup{, -list}-command #:category #:properties keywords (issue160048)
Date: Tue, 24 Nov 2009 12:41:55 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

address@hidden writes:

> David,
> Thank you for posting this on Rietveld.  It was much easier for me to
> review it.
> I have one documentation question (see below).
> I also have one patch philosophy question: should define-markup also
> have (at least) a :properties keyword added to it?

Goal #1 was to be able to move user-level markup to system markup

This goal actually is not achieved with the current state of the patch
series since it fails for markup definitions without DOC string.

> I think that if it did, then we'd have the possibility of using the
> exact same code and just changing from define-markup to
> define-builtin-markup by only changing the macro name.

After fixing the DOC string issue and exporting
define-builtin-markup-command as define-markup-command, the regression
test seems to work fine (namely, it runs until it crashes on "Unable to
load the map file" which it always does here) and the scoping would
appear to be correct as well.

Which suggests that the apparent main reason for *-builtin-* commands,
the changed toplevel scoping, is not valid, and the scoping works out
well enough without extra complications.

Renaming define-builtin-markup-command to define-markup-command, making
it public and adapting all callers would appear to finish the job,
obviously unifying the syntax.

I have to check that this is indeed the case.

> File scm/markup.scm (right):
> scm/markup.scm:74: [ :category category ]
> Does this need to be [ #:category category ] ?

Yes.  Sorry.

David Kastrup

reply via email to

[Prev in Thread] Current Thread [Next in Thread]