changeset 94036:d669760bc2f0

(hif-factor): Handle unary minus.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sat, 12 Apr 2008 04:38:45 +0000
parents a278a40360a9
children d864a5e618e0
files lisp/ChangeLog lisp/progmodes/hideif.el
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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  <monnier@iro.umontreal.ca>
+
+	* progmodes/hideif.el (hif-factor): Handle unary minus.
+
 2008-04-12  Glenn Morris  <rgm@gnu.org>
 
 	* calendar/cal-china.el (chinese-calendar-time-zone):
@@ -41,6 +45,8 @@
 
 2008-04-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
+	* 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.
--- 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))