]> git.eshelyaron.com Git - emacs.git/commitdiff
(f90-end-of-block, f90-beginning-of-block):
authorGlenn Morris <rgm@gnu.org>
Tue, 6 Oct 2009 02:49:02 +0000 (02:49 +0000)
committerGlenn Morris <rgm@gnu.org>
Tue, 6 Oct 2009 02:49:02 +0000 (02:49 +0000)
Also push mark in the macro case.

lisp/ChangeLog
lisp/progmodes/f90.el

index 086a82bd3f0b98689e538b58ed08786e9676496a..18d49b98817ca93bd0b6ada8c9947fce1b7cdd66 100644 (file)
@@ -1,5 +1,10 @@
 2009-10-06  Glenn Morris  <rgm@gnu.org>
 
+       * progmodes/f90.el (f90-end-of-block, f90-beginning-of-block):
+       * progmodes/fortran.el (fortran-end-of-block)
+       (fortran-beginning-of-block):
+       Also push mark in the macro case.
+
        * emerge.el (emerge-show-file-name):
        * calc/calc.el (calc-quit):
        * calc/calc-misc.el (calc-big-or-small):
index 49f908c99f9b1b29c81c317f8915f6c7dc426bbc..3a0fe1dfad712594497bbf8869dedcaeb1a5d503 100644 (file)
@@ -1544,8 +1544,8 @@ for consistency of block types and labels (if present), and
 completes outermost block if `f90-smart-end' is non-nil.
 Interactively, pushes mark before moving point."
   (interactive "p")
-  (if (called-interactively-p 'interactive)
-      (push-mark (point) t)) ; can move some distance
+  ;; Can move some distance.
+  (if (called-interactively-p 'any) (push-mark (point) t))
   (and num (< num 0) (f90-beginning-of-block (- num)))
   (let ((f90-smart-end (if f90-smart-end 'no-blink)) ; for final match-end
         (case-fold-search t)
@@ -1601,7 +1601,7 @@ Checks for consistency of block types and labels (if present).
 Does not check the outermost block, because it may be incomplete.
 Interactively, pushes mark before moving point."
   (interactive "p")
-  (if (called-interactively-p 'interactive) (push-mark (point) t))
+  (if (called-interactively-p 'any) (push-mark (point) t))
   (and num (< num 0) (f90-end-of-block (- num)))
   (let ((case-fold-search t)
         (count (or num 1))