[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/idlwave 3bc0d926ee 071/360: (idlwave-show-begin): Updat
From: |
ELPA Syncer |
Subject: |
[elpa] externals/idlwave 3bc0d926ee 071/360: (idlwave-show-begin): Update the last-abbrev-location |
Date: |
Sun, 28 Apr 2024 00:59:09 -0400 (EDT) |
branch: externals/idlwave
commit 3bc0d926ee0eb50c4e6932fd3e0f3461bdaf1a7f
Author: jdsmith <jdsmith>
Commit: jdsmith <jdsmith>
(idlwave-show-begin): Update the last-abbrev-location
using the marker to allow check-abbrev to correctly upcase the
full portion of an expanded generic END statement.
(idlwave-find-key): Added check for end or beginning
of buffer, to avoid infinite search loop for buffer ending or
beginning in quote (e.g. a comment).
---
idlwave.el | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/idlwave.el b/idlwave.el
index 77d9a50ecd..a0ba5e3b0f 100644
--- a/idlwave.el
+++ b/idlwave.el
@@ -5,7 +5,7 @@
;; Chris Chase <chase@att.com>
;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu>
;; Version: VERSIONTAG
-;; Date: $Date: 2002/10/11 23:20:21 $
+;; Date: $Date: 2002/10/30 23:40:53 $
;; Keywords: languages
;; This file is part of GNU Emacs.
@@ -1413,7 +1413,7 @@ Normally a space.")
"Character which is inserted as a last character on previous line by
\\[idlwave-split-line] to begin a continuation line. Normally $.")
-(defconst idlwave-mode-version " VERSIONTAG")
+(defconst idlwave-mode-version " 4.16")
(defmacro idlwave-keyword-abbrev (&rest args)
"Creates a function for abbrev hooks to call `idlwave-check-abbrev' with
args."
@@ -1583,9 +1583,13 @@ Capitalize system variables - action only
'idlwave-shell-save-and-run)
(define-key idlwave-mode-map
(vector (append mods-noshift (list (if shift ?B ?b))))
- 'idlwave-shell-break-here)))
+ 'idlwave-shell-break-here)
+ (define-key idlwave-mode-map
+ (vector (append mods-noshift (list (if shift ?E ?e))))
+ 'idlwave-shell-run-region)))
(define-key idlwave-mode-map "\C-c\C-d\C-c" 'idlwave-shell-save-and-run)
(define-key idlwave-mode-map "\C-c\C-d\C-b" 'idlwave-shell-break-here)
+(define-key idlwave-mode-map "\C-c\C-d\C-e" 'idlwave-shell-run-region)
(define-key idlwave-mode-map "\C-c\C-f" 'idlwave-for)
;; (define-key idlwave-mode-map "\C-c\C-f" 'idlwave-function)
;; (define-key idlwave-mode-map "\C-c\C-p" 'idlwave-procedure)
@@ -1604,6 +1608,8 @@ Capitalize system variables - action only
"Save and run buffer under the shell." t)
(autoload 'idlwave-shell-break-here "idlw-shell"
"Set breakpoint in current line." t)
+(autoload 'idlwave-shell-run-region "idlw-shell"
+ "Compile and run the region." t)
(define-key idlwave-mode-map "\C-c\C-v" 'idlwave-find-module)
(define-key idlwave-mode-map "\C-c?" 'idlwave-routine-info)
(define-key idlwave-mode-map "\M-?" 'idlwave-context-help)
@@ -1781,7 +1787,7 @@ idlwave-mode-abbrev-table unless TABLE is non-nil."
;;;###autoload
(defun idlwave-mode ()
- "Major mode for editing IDL and WAVE CL .pro files.
+ "Major mode for editing IDL source files.
The main features of this mode are
@@ -2113,7 +2119,7 @@ Also checks if the correct end statement has been used."
(eol-pos (save-excursion (end-of-line) (point)))
begin-pos end-pos end end1 )
(if idlwave-reindent-end (idlwave-indent-line))
-
+ (setq last-abbrev-location (marker-position last-abbrev-marker))
(when (and (idlwave-check-abbrev 0 t)
idlwave-show-block)
(save-excursion
@@ -3012,7 +3018,10 @@ Return value is the beginning of the match or (in case
of failure) nil."
(catch 'exit
(while (funcall search-func key-re limit t)
(if (not (idlwave-quoted))
- (throw 'exit (setq found (match-beginning 0))))))))
+ (throw 'exit (setq found (match-beginning 0)))
+ (if (or (and (> dir 0) (eobp))
+ (and (< dir 0) (bobp)))
+ (throw 'exit nil)))))))
(if found
(progn
(if (not nomark) (push-mark))
- [elpa] externals/idlwave 252d934b1e 316/360: Update version/routine count., (continued)
- [elpa] externals/idlwave 252d934b1e 316/360: Update version/routine count., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 733a5729ac 305/360: Remove vestigial XEmacs and other unnecessary code, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave e2fdf17ef9 340/360: Handle simple links for sysvar tags, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave da4475c8c0 337/360: Avoid require recursion., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 5564106516 308/360: add autoloads, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 1e87b0f4c0 322/360: Don't use additional indentation by default with parens, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 08e8603218 353/360: Fix indentation, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave ee8628e6ad 351/360: bug#69171: Moving packages out of core to ELPA, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 853872b223 357/360: Leave # unencoded in idl.htm#real/path/to/file help link style, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 1416b311ac 356/360: html-system-help-location: correct name, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 3bc0d926ee 071/360: (idlwave-show-begin): Update the last-abbrev-location,
ELPA Syncer <=
- [elpa] externals/idlwave 3db3ab7046 066/360: Patches from Stefan Monnier:, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave e4bd892bae 093/360: - Reverted last "fix". Don't trust XEmacs complaints about useless, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave fcc0d3c878 118/360: - Use idlwave-what-function instead of looking for parens: works in all, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 127405a5c7 217/360: Fontify source code by default., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 5a8c9cb8ec 213/360: find-structure-definition: Correctly indicate structure found., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave d62acf6aef 280/360: Complete struct-tags even if shell only loaded., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 74e4d168e9 326/360: Debug/comments., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 74dc6e40d5 290/360: Help location changes and HTML help inline., ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave e3628c3710 143/360: - Use insert-file-contents, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 09992879c0 150/360: - Added customized idlwave-shell-max-print-length, to limit examine, ELPA Syncer, 2024/04/28