diff options
| author | J.D. Smith | 2007-04-25 20:44:54 +0000 |
|---|---|---|
| committer | J.D. Smith | 2007-04-25 20:44:54 +0000 |
| commit | 77ae614b7687bfc7998216258be0571023f7f2f8 (patch) | |
| tree | dbfd6b90b8037c5ce0bcf22cd81dcce04bdc2079 | |
| parent | e28f9ad3c609d67a29649bea5e29da0432e502a2 (diff) | |
| download | emacs-77ae614b7687bfc7998216258be0571023f7f2f8.tar.gz emacs-77ae614b7687bfc7998216258be0571023f7f2f8.zip | |
(idlwave-beginning-of-subprogram, idlwave-end-of-subprogram): Take
optional NOMARK arg to prevent pushing mark.
(idlwave-current-routine): Don't push mark.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/idlwave.el | 16 |
2 files changed, 16 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1b3245e90f1..2016d242ab5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2007-04-25 J.D. Smith <jdsmith@as.arizona.edu> | ||
| 2 | |||
| 3 | * progmodes/idlwave.el (idlwave-beginning-of-subprogram, | ||
| 4 | idlwave-end-of-subprogram): Take optional NOMARK arg to prevent | ||
| 5 | pushing mark. | ||
| 6 | (idlwave-current-routine): Don't push mark. | ||
| 7 | |||
| 1 | 2007-04-25 Mathias Dahl <mathias.dahl@gmail.com> | 8 | 2007-04-25 Mathias Dahl <mathias.dahl@gmail.com> |
| 2 | 9 | ||
| 3 | * image-dired.el (image-dired-display-image): Derive image-type | 10 | * image-dired.el (image-dired-display-image): Derive image-type |
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el index d29e56ce75d..0556c87b43d 100644 --- a/lisp/progmodes/idlwave.el +++ b/lisp/progmodes/idlwave.el | |||
| @@ -2411,16 +2411,18 @@ non-nil." | |||
| 2411 | ;; Reindent new line | 2411 | ;; Reindent new line |
| 2412 | (idlwave-indent-line))) | 2412 | (idlwave-indent-line))) |
| 2413 | 2413 | ||
| 2414 | (defun idlwave-beginning-of-subprogram () | 2414 | (defun idlwave-beginning-of-subprogram (&optional nomark) |
| 2415 | "Moves point to the beginning of the current program unit." | 2415 | "Moves point to the beginning of the current program unit. |
| 2416 | If NOMARK is non-nil, do not push mark." | ||
| 2416 | (interactive) | 2417 | (interactive) |
| 2417 | (idlwave-find-key idlwave-begin-unit-reg -1)) | 2418 | (idlwave-find-key idlwave-begin-unit-reg -1 nomark)) |
| 2418 | 2419 | ||
| 2419 | (defun idlwave-end-of-subprogram () | 2420 | (defun idlwave-end-of-subprogram (&optional nomark) |
| 2420 | "Moves point to the start of the next program unit." | 2421 | "Moves point to the start of the next program unit. |
| 2422 | If NOMARK is non-nil, do not push mark." | ||
| 2421 | (interactive) | 2423 | (interactive) |
| 2422 | (idlwave-end-of-statement) | 2424 | (idlwave-end-of-statement) |
| 2423 | (idlwave-find-key idlwave-end-unit-reg 1)) | 2425 | (idlwave-find-key idlwave-end-unit-reg 1 nomark)) |
| 2424 | 2426 | ||
| 2425 | (defun idlwave-mark-statement () | 2427 | (defun idlwave-mark-statement () |
| 2426 | "Mark current IDL statement." | 2428 | "Mark current IDL statement." |
| @@ -2535,7 +2537,7 @@ The marks are pushed." | |||
| 2535 | "Return (NAME TYPE CLASS) of current routine." | 2537 | "Return (NAME TYPE CLASS) of current routine." |
| 2536 | (idlwave-routines) | 2538 | (idlwave-routines) |
| 2537 | (save-excursion | 2539 | (save-excursion |
| 2538 | (idlwave-beginning-of-subprogram) | 2540 | (idlwave-beginning-of-subprogram 'nomark) |
| 2539 | (if (looking-at "[ \t]*\\<\\(pro\\|function\\)\\>\\s-+\\(\\([a-zA-Z0-9$_]+\\)::\\)?\\([a-zA-Z0-9$_]+\\)") | 2541 | (if (looking-at "[ \t]*\\<\\(pro\\|function\\)\\>\\s-+\\(\\([a-zA-Z0-9$_]+\\)::\\)?\\([a-zA-Z0-9$_]+\\)") |
| 2540 | (let* ((type (if (string= (downcase (match-string 1)) "pro") | 2542 | (let* ((type (if (string= (downcase (match-string 1)) "pro") |
| 2541 | 'pro 'function)) | 2543 | 'pro 'function)) |