diff options
author | J.D. Smith <[email protected]> | 2007-04-26 17:54:40 +0000 |
---|---|---|
committer | J.D. Smith <[email protected]> | 2007-04-26 17:54:40 +0000 |
commit | cca132607ad516c2b08ada7adb29b4c9a6c01e5a (patch) | |
tree | 7e80884aa578302557c0478de10f230d2664f426 /lisp/progmodes/idlwave.el | |
parent | eaccf860457ecd7b2e1d6b85d1cf734c9f15ede9 (diff) |
Merged in trunk change 3.61.
Diffstat (limited to 'lisp/progmodes/idlwave.el')
-rw-r--r-- | lisp/progmodes/idlwave.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el index d29e56ce75..0556c87b43 100644 --- a/lisp/progmodes/idlwave.el +++ b/lisp/progmodes/idlwave.el @@ -2411,16 +2411,18 @@ non-nil." ;; Reindent new line (idlwave-indent-line))) -(defun idlwave-beginning-of-subprogram () - "Moves point to the beginning of the current program unit." +(defun idlwave-beginning-of-subprogram (&optional nomark) + "Moves point to the beginning of the current program unit. +If NOMARK is non-nil, do not push mark." (interactive) - (idlwave-find-key idlwave-begin-unit-reg -1)) + (idlwave-find-key idlwave-begin-unit-reg -1 nomark)) -(defun idlwave-end-of-subprogram () - "Moves point to the start of the next program unit." +(defun idlwave-end-of-subprogram (&optional nomark) + "Moves point to the start of the next program unit. +If NOMARK is non-nil, do not push mark." (interactive) (idlwave-end-of-statement) - (idlwave-find-key idlwave-end-unit-reg 1)) + (idlwave-find-key idlwave-end-unit-reg 1 nomark)) (defun idlwave-mark-statement () "Mark current IDL statement." @@ -2535,7 +2537,7 @@ The marks are pushed." "Return (NAME TYPE CLASS) of current routine." (idlwave-routines) (save-excursion - (idlwave-beginning-of-subprogram) + (idlwave-beginning-of-subprogram 'nomark) (if (looking-at "[ \t]*\\<\\(pro\\|function\\)\\>\\s-+\\(\\([a-zA-Z0-9$_]+\\)::\\)?\\([a-zA-Z0-9$_]+\\)") (let* ((type (if (string= (downcase (match-string 1)) "pro") 'pro 'function)) |