[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/gnuplot 3f0e094 154/184: Merge pull request #48 from conao
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/gnuplot 3f0e094 154/184: Merge pull request #48 from conao3/feature |
Date: |
Sun, 29 Aug 2021 11:03:35 -0400 (EDT) |
branch: elpa/gnuplot
commit 3f0e094296cd76423b11443e861f7372a78ce332
Merge: 5fdef54 402d487
Author: Naoya Yamashita <conao3@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #48 from conao3/feature
Support indent with tab in gnuplot script
---
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 d899379 123/184: Clarify comments, (continued)
- [nongnu] elpa/gnuplot d899379 123/184: Clarify comments, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 536f2c3 122/184: Put alias for missing syntax-ppss with the other workarounds, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot b6eea0b 133/184: Add :set function for customizing context-sensitive mode, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot c4d464a 125/184: Use `gnuplot-completion-at-point-function' instead of advice hackery, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot da11bfa 128/184: New customize option `gnuplot-use-context-sensitive-completion', ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot f274ad7 138/184: Recommend to use GitHub bug tracker instead of E-mail, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 54fd3eb 141/184: do toolbar-make-button-list after check the function exists, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 14584a0 143/184: clean Elisp format, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot a080f79 149/184: Merge pull request #45 from conao3/fix-trivial, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot b96c5d8 144/184: Merge pull request #43 from conao3/fix-format, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 3f0e094 154/184: Merge pull request #48 from conao3/feature,
ELPA Syncer <=
- [nongnu] elpa/gnuplot 706e810 161/184: Merge pull request #54 from vxid/delete-xemacs, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot c1e6018 158/184: Add GitHub Actions CI configure files, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 8d5b7f5 157/184: Merge pull request #51 from vxid/master, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 1dd661e 180/184: Fix testing in Github CI. Simplify compilation and testing process., ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 2c1e7cb 177/184: Rewrite README.org, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot fbb15b6 168/184: Merge pull request #60 from conao3/fix-ci, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 24dd2d0 170/184: Merge pull request #64 from mtreca/info-update, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 1f8f051 166/184: use actions/setup-python@v2 instead of v1.1.1, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot 90bfd6d 179/184: Simplify Makefile situation, ELPA Syncer, 2021/08/29
- [nongnu] elpa/gnuplot f0001c3 163/184: Merge pull request #55 from emacsorphanage/revert-54-delete-xemacs, ELPA Syncer, 2021/08/29