[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/smalltalk-mode 320dcae 15/34: fix indent and smalltalk-
From: |
Stefan Monnier |
Subject: |
[elpa] externals/smalltalk-mode 320dcae 15/34: fix indent and smalltalk-at-begin-of-{defun|scope} |
Date: |
Tue, 9 Apr 2019 22:30:43 -0400 (EDT) |
branch: externals/smalltalk-mode
commit 320dcae79a4178bed38507419152b99176e85a9b
Author: Mathieu Suen <address@hidden>
Commit: Paolo Bonzini <address@hidden>
fix indent and smalltalk-at-begin-of-{defun|scope}
---
smalltalk-mode.el | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
diff --git a/smalltalk-mode.el b/smalltalk-mode.el
index 2e84435..3581e6d 100644
--- a/smalltalk-mode.el
+++ b/smalltalk-mode.el
@@ -267,10 +267,10 @@
(progn
(forward-sexp 1)
(if (and (< (point) here)
- (= (char-before) ?]))
- (progn
- (skip-syntax-forward " \t")
- (setq prev (point)))))
+ (= (char-before) ?\]))
+ (progn
+ (skip-syntax-forward " \t")
+ (setq prev (point)))))
(error t))
(goto-char prev)
(beginning-of-line)
@@ -753,9 +753,9 @@ following on the same line."
(and (bolp)
(progn (smalltalk-backward-whitespace)
(= (preceding-char) ?!))))
- (= (line-number-at-pos)
- (progn (smalltalk-begin-of-scope)
- (line-number-at-pos))))))
+ (let ((curr-line-pos (line-number-at-pos)))
+ (if (smalltalk-begin-of-scope)
+ (= curr-line-pos (line-number-at-pos)))))))
(defun smalltalk-at-begin-of-defun ()
"Returns T if at the beginning of a method definition, otherwise nil"
@@ -766,10 +766,9 @@ following on the same line."
(and (bolp)
(progn (smalltalk-backward-whitespace)
(= (preceding-char) ?!))))
- (= (line-number-at-pos)
- (progn (smalltalk-begin-of-defun)
- (line-number-at-pos))))))
-
+ (let ((curr-line-pos (line-number-at-pos)))
+ (if (smalltalk-begin-of-defun)
+ (= curr-line-pos (line-number-at-pos)))))))
(defun smalltalk-indent-for-colon ()
(let (indent-amount c start-line state done default-amount
- [elpa] branch externals/smalltalk-mode created (now 453b7f5), Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 381d6ed 02/34: update FSF address, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode c39c42b 07/34: set comint-use-prompt-regexp, patch from Nick Gasson, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 71cd97f 11/34: update copyright years, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 6a18dea 23/34: change defun* to defun, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 2633e7a 18/34: recognize class declaration with explicit namespace in the superclass, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode a7e8c36 14/34: fix smalltalk-scope-begin-of-defun, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 0448eaa 08/34: merge from stephen, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 320dcae 15/34: fix indent and smalltalk-at-begin-of-{defun|scope},
Stefan Monnier <=
- [elpa] externals/smalltalk-mode fb9072e 04/34: add gst-prog-name, patch from Stephen Compall, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode c8ce0e0 16/34: disable generational GC on sparc, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 4a29da5 31/34: Highlight ^ as a keyword, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 27c9a1a 09/34: update copyright from 2.3.6 release, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode c95682c 24/34: correct defun* -> defun patch, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 57c7cfa 20/34: fix smalltalk-mode.el to work in emacs 22, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 4160554 12/34: simplify installation of Emacs modes, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 90f07e6 32/34: Move smalltalk-mode autoloads to smalltalk-mode, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 453b7f5 34/34: smalltalk-mode: Fix version and author in header, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode d7f4421 28/34: emacs: Fix the smalltalk-mode mode for emacs 24.2 and later, Stefan Monnier, 2019/04/09