# HG changeset patch # User Stefan Monnier # Date 1207975125 0 # Node ID d669760bc2f065714779ad19df85a196d1b4f86d # Parent a278a40360a9e6e396d759ae03afa0617659f0d8 (hif-factor): Handle unary minus. diff -r a278a40360a9 -r d669760bc2f0 lisp/ChangeLog --- a/lisp/ChangeLog Sat Apr 12 03:18:33 2008 +0000 +++ b/lisp/ChangeLog Sat Apr 12 04:38:45 2008 +0000 @@ -1,3 +1,7 @@ +2008-04-12 Stefan Monnier + + * progmodes/hideif.el (hif-factor): Handle unary minus. + 2008-04-12 Glenn Morris * calendar/cal-china.el (chinese-calendar-time-zone): @@ -41,6 +45,8 @@ 2008-04-11 Stefan Monnier + * progmodes/python.el (python-mode): Don't mess with hippie-expand. + * Makefile.in (bootstrap-prepare): Make tpu-edt.el writable as well. * textmodes/fill.el (fill-forward-paragraph-function): New var. diff -r a278a40360a9 -r d669760bc2f0 lisp/progmodes/hideif.el --- a/lisp/progmodes/hideif.el Sat Apr 12 03:18:33 2008 +0000 +++ b/lisp/progmodes/hideif.el Sat Apr 12 04:38:45 2008 +0000 @@ -496,6 +496,10 @@ ((numberp hif-token) (prog1 hif-token (hif-nexttoken))) + ;; Unary plus/minus. + ((memq hif-token '(hif-minus hif-plus)) + (list (prog1 hif-token (hif-nexttoken)) 0 (hif-factor))) + (t ; identifier (let ((ident hif-token)) (if (memq ident '(or and))