aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2008-04-12 04:38:45 +0000
committerStefan Monnier <[email protected]>2008-04-12 04:38:45 +0000
commitfb970f91df77e01d96f055d5d5f000080d7f8b88 (patch)
tree2ce84fefd467c2a4b6ddc060fa334bb490f55744
parentc3de239774f0b1f17219a456be0dd7f52f9be9ec (diff)
(hif-factor): Handle unary minus.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/hideif.el4
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fc04082c00..53b5713a1a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2008-04-12 Stefan Monnier <[email protected]>
+
+ * progmodes/hideif.el (hif-factor): Handle unary minus.
+
2008-04-12 Glenn Morris <[email protected]>
* calendar/cal-china.el (chinese-calendar-time-zone):
@@ -41,6 +45,8 @@
2008-04-11 Stefan Monnier <[email protected]>
+ * 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 5c9bf45e39..9f83d89532 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))