[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gnuplot 402d487 152/184: Support indent with tab in gnuplo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gnuplot 402d487 152/184: Support indent with tab in gnuplot script |
Date: |
Sun, 29 Aug 2021 11:03:34 -0400 (EDT) |
branch: elpa/gnuplot
commit 402d487e75be8ed0deb4b86ac4b1f7de73a937b4
Author: conao3 <conao3@gmail.com>
Commit: conao3 <conao3@gmail.com>
Support indent with tab in gnuplot script
Co-authored-by: madchemiker
---
gnuplot.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/gnuplot.el b/gnuplot.el
index aef46ed..ba943c5 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -2565,7 +2565,7 @@ Add additional indentation for continuation lines."
(gnuplot-beginning-of-continuation)
(back-to-indentation)
(re-search-forward "\\S-+\\s-+" (point-at-eol) 'end-at-limit)
- (setq indent (- (point) (point-at-bol))))
+ (setq indent (current-column)))
;; Not a continuation line; indent according to block
;; nesting depth
@@ -2586,8 +2586,8 @@ Add additional indentation for continuation lines."
(indent-line-to indent))
;; Move point after indentation when at beginning of line
- (let ((point-at-indent (+ (point-at-bol) indent)))
- (when (< (point) point-at-indent) (goto-char point-at-indent)))))
+ (when (< (current-column) indent)
+ (move-to-column indent))))
(defun gnuplot-electric-insert (BRACE)
"Adjust indentation on inserting a close BRACE.
@@ -2988,7 +2988,9 @@ positions and COMPLETIONS is a list."
(if gnuplot-keywords-pending ; <HW>
(gnuplot-setup-info-look))
(let* ((end (point))
- (beg (unwind-protect (save-excursion (backward-sexp 1) (point))))
+ (beg (condition-case _err
+ (save-excursion (backward-sexp 1) (point))
+ (point)))
(patt (buffer-substring beg end))
(pattern (if (string-match "\\([^ \t]*\\)\\s-+$" patt)
(match-string 1 patt) patt))
- [nongnu] elpa/gnuplot 7f53432 132/184: Clarify `gnuplot-comint-complete` docstring, (continued)
- [nongnu] elpa/gnuplot 7f53432 132/184: Clarify `gnuplot-comint-complete` docstring, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2442835 127/184: Use completion-at-point in comint buffers in recent Emacs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot f3734b6 136/184: Add Jon as author, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 3f28986 134/184: Fix compiler warnings, comments and docstrings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 21f9046 135/184: Bind appropriate completion command in comint mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 3f569ef 137/184: Remove gnuplot-bug-report, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot a406143 140/184: Merge pull request #41 from conao3/re-pr-28, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 55e3f75 142/184: Merge pull request #42 from conao3/add-toolbar-make-button-check, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 3fc4020 147/184: solve package-lint/byte-compile/check-doc warnings, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 7830b22 156/184: Add configuration instructions in README.org. Remove dotemacs.el., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 402d487 152/184: Support indent with tab in gnuplot script,
ELPA Syncer <=
- [nongnu] elpa/gnuplot 5fdef54 151/184: Merge pull request #47 from conao3/remove-weird-char, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 9894505 153/184: Ignore backward-sexp error when get completion, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2c6137c 159/184: Merge pull request #53 from conao3/add-github-actions, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 496c6e4 145/184: Change LICENSE; GPLv2 -> GPLv3, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 290c332 162/184: Revert "[WIP] Remove Xemacs support", ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot f73abe1 165/184: Merge pull request #57 from dkogan/fix-comint-process-echoes, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot fc302fd 167/184: set fail-fast strategy as false, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot ac8ab77 173/184: Move changelog to a dedicated org file., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 1488629 174/184: Fix font-lock not loading., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 5fd785c 178/184: Fix test runner, ELPA Syncer, 2021/08/29