[Openmcl-devel] Alternative parens

Glen Foy lisp at clairvaux.org
Fri Apr 26 06:55:54 PDT 2013

This works once you define the character attributes:

With point at the start the form shown below, C-M f will move point to the end of the form, and then C-M b will move you back to the start:

 [foo [bar]]                                                                                               [foo [bar]]
^                                                                                                                               ^

If the attributes are not defined, C-M f will move you to the end of 'foo':

                                                                                                                  [foo [bar]]

The nested form also seems to work appropriately when the attributes are defined. The "Forward Form" command calls the basic hemlock function, hemlock::form-offset.

What functionality are you not getting?

-- Glen

On Apr 25, 2013, at 8:44 PM, Ron Garret <ron at flownet.com> wrote:

> Looking at the code in
> cocoa-ide/hemlock/src/defsyn.lisp
> it would appear that if one did, e.g.:
> (setf (hi::character-attribute :lisp-syntax #\[) :open-paren)
> (setf (hi::character-attribute :lisp-syntax #\]) :close-paren)
> that the editor should then treat square-bracketed expressions the same as paren-bracketed ones.  But it doesn't seem to work.  What is the right way to get Hemlock to recognize other kinds of balanced delimiters?
> Thanks,
> rg
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel

More information about the Openmcl-devel mailing list