]> git.eshelyaron.com Git - emacs.git/commitdiff
(hif-factor): Handle unary minus.
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 12 Apr 2008 04:38:45 +0000 (04:38 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 12 Apr 2008 04:38:45 +0000 (04:38 +0000)
lisp/ChangeLog
lisp/progmodes/hideif.el

index fc04082c002c225cec6144c0f1c5dc3e7bdc6960..53b5713a1a6b2277a548b88e6c464418bf42edeb 100644 (file)
@@ -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.
index 5c9bf45e392d1df4ab8fbddc480bade1d79c4076..9f83d89532e06e07732c756b93814a165ba1a119 100644 (file)
@@ -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))