[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/idlwave fcc0d3c878 118/360: - Use idlwave-what-function
From: |
ELPA Syncer |
Subject: |
[elpa] externals/idlwave fcc0d3c878 118/360: - Use idlwave-what-function instead of looking for parens: works in all |
Date: |
Sun, 28 Apr 2024 00:59:15 -0400 (EDT) |
branch: externals/idlwave
commit fcc0d3c878f35d107129a52696c9632a89e89861
Author: jdsmith <jdsmith>
Commit: jdsmith <jdsmith>
- Use idlwave-what-function instead of looking for parens: works in all
cases.
- Don't include last line of min search if we're already past the end
region.
---
idlwave.el | 38 ++++++++++++++++++++++----------------
1 file changed, 22 insertions(+), 16 deletions(-)
diff --git a/idlwave.el b/idlwave.el
index 824ddf4e5b..7227255d8e 100644
--- a/idlwave.el
+++ b/idlwave.el
@@ -6,7 +6,7 @@
;; Chris Chase <chase@att.com>
;; Maintainer: J.D. Smith <jdsmith@as.arizona.edu>
;; Version: VERSIONTAG
-;; Date: $Date: 2004/10/13 20:26:26 $
+;; Date: $Date: 2004/10/15 23:16:33 $
;; Keywords: languages
;; This file is part of GNU Emacs.
@@ -1783,8 +1783,7 @@ The main features of this mode are
relative to the first will be retained. Use
\\[idlwave-auto-fill-mode] to toggle auto-fill mode for these
comments. When the variable `idlwave-fill-comment-line-only' is
- nil, code can also be auto-filled and auto-indented (not
- recommended).
+ nil, code can also be auto-filled and auto-indented.
To convert pre-existing IDL code to your formatting style, mark the
entire buffer with \\[mark-whole-buffer] and execute
@@ -3036,12 +3035,10 @@ groupings, are treated separately."
((catch 'assign ;
(while (looking-at "[^=\n\r]*\\(=\\)[ \t]*")
(goto-char (match-end 0))
- (if (eq (car (parse-partial-sexp (match-end 0) end-reg))
- 0)
- (throw 'assign t))))
+ (if (null (idlwave-what-function)) (throw 'assign t))))
(unless (or
(idlwave-in-quote)
- (looking-at "[ \t$]*\\(;.*\\)?$")
+ (looking-at "[ \t$]*\\(;.*\\)?$") ; use basic
(save-excursion
(goto-char beg-last-statement)
(eq (caar (idlwave-statement-type)) 'for)))
@@ -3134,7 +3131,8 @@ possibility of unbalanced blocks."
(idlwave-is-continuation-line))
(or (null end-reg) (< (point) end-reg)))
(unless comm-or-empty (setq min (min min (idlwave-current-indent)))))
- (if comm-or-empty min
+ (if (or comm-or-empty (and end-reg (>= (point) end-reg)))
+ min
(min min (idlwave-current-indent))))))
(defun idlwave-current-statement-indent (&optional last-line)
@@ -3406,11 +3404,11 @@ If not found returns nil."
(current-column)))))
(defun idlwave-auto-fill ()
- "Called to break lines in auto fill mode.
-Only fills comment lines if `idlwave-fill-comment-line-only' is non-nil.
-Places a continuation character at the end of the line
-if not in a comment. Splits strings with IDL concatenation operator
-`+' if `idlwave-auto-fill-split-string is non-nil."
+ "Called to break lines in auto fill mode.
+Only fills non-comment lines if `idlwave-fill-comment-line-only' is
+non-nil. Places a continuation character at the end of the line if
+not in a comment. Splits strings with IDL concatenation operator `+'
+if `idlwave-auto-fill-split-string' is non-nil."
(if (<= (current-column) fill-column)
nil ; do not to fill
(if (or (not idlwave-fill-comment-line-only)
@@ -3464,7 +3462,7 @@ if not in a comment. Splits strings with IDL
concatenation operator
(if (save-excursion
(end-of-line 0)
(idlwave-in-comment))
- ;; Splitting a non-line comment.
+ ;; Splitting a non-full-line comment.
;; Insert the comment delimiter from split line
(progn
(save-excursion
@@ -3521,6 +3519,11 @@ automatically breaks the line at a previous space."
;; update mode-line
(set-buffer-modified-p (buffer-modified-p))))
+;(defun idlwave-fill-routine-call ()
+; "Fill a routine definition or statement, indenting appropriately."
+; (let ((where (idlwave-where)))))
+
+
(defun idlwave-doc-header (&optional nomark )
"Insert a documentation header at the beginning of the unit.
Inserts the value of the variable idlwave-file-header. Sets mark before
@@ -3986,8 +3989,11 @@ you specify /."
(message (concat "Tagging " item "..."))
(setq errbuf (get-buffer-create "*idltags-error*"))
(setq status (+ status
- (call-process "sh" nil errbuf nil "-c"
- (concat cmd append item))))
+ (if (eq 0 (call-process
+ "sh" nil errbuf nil "-c"
+ (concat cmd append item)))
+ 0
+ 1)))
;;
;; Append additional tags
(setq append " --append ")
- [elpa] externals/idlwave da4475c8c0 337/360: Avoid require recursion., (continued)
- [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, 2024/04/28
- [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 <=
- [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
- [elpa] externals/idlwave ded2f00ea7 175/360: Don't set mark when gathering routine name, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 3a07aca242 162/360: - Use custom face for pending EDB mode lines, rather than, ELPA Syncer, 2024/04/28
- [elpa] externals/idlwave 16b08e2132 167/360: - Added space to allowed filename characters., ELPA Syncer, 2024/04/28