From fb970f91df77e01d96f055d5d5f000080d7f8b88 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sat, 12 Apr 2008 04:38:45 +0000 Subject: [PATCH] (hif-factor): Handle unary minus. --- lisp/ChangeLog | 6 ++++++ lisp/progmodes/hideif.el | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fc04082c002..53b5713a1a6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -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 --git a/lisp/progmodes/hideif.el b/lisp/progmodes/hideif.el index 5c9bf45e392..9f83d89532e 100644 --- a/lisp/progmodes/hideif.el +++ b/lisp/progmodes/hideif.el @@ -496,6 +496,10 @@ that form should be displayed.") ((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)) -- 2.39.5