[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/smalltalk-mode c95682c 24/34: correct defun* -> defun p
From: |
Stefan Monnier |
Subject: |
[elpa] externals/smalltalk-mode c95682c 24/34: correct defun* -> defun patch |
Date: |
Tue, 9 Apr 2019 22:30:45 -0400 (EDT) |
branch: externals/smalltalk-mode
commit c95682c28455bc8e69f6f087969d46298d80e180
Author: Paolo Bonzini <address@hidden>
Commit: Paolo Bonzini <address@hidden>
correct defun* -> defun patch
---
smalltalk-mode.el | 28 +++++++++++++++++-----------
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/smalltalk-mode.el b/smalltalk-mode.el
index a209db2..d9a4fee 100644
--- a/smalltalk-mode.el
+++ b/smalltalk-mode.el
@@ -1125,7 +1125,7 @@ Whitespace is defined as spaces, tabs, and comments."
(defun smalltalk-find-end-of-keyword-send ()
(save-excursion
(smalltalk-forward-whitespace)
- (if (or (looking-at "[.;]")(= (smalltalk-next-keyword) (point)))
+ (if (or (looking-at "[.;]") (= (smalltalk-next-keyword) (point)))
""
(progn
(smalltalk-goto-next-keyword)
@@ -1135,7 +1135,7 @@ Whitespace is defined as spaces, tabs, and comments."
(defun smalltalk-find-beginning-of-keyword-send ()
(save-excursion
(smalltalk-backward-whitespace)
- (if (or (looking-back "[.;]")(= (smalltalk-previous-keyword) (point)))
+ (if (or (looking-back "[.;]") (= (smalltalk-previous-keyword) (point)))
""
(progn
(smalltalk-goto-previous-keyword)
@@ -1148,25 +1148,31 @@ Whitespace is defined as spaces, tabs, and comments."
(defun smalltalk-goto-next-keyword ()
(goto-char (smalltalk-next-keyword)))
-(defun smalltalk-previous-keyword (&key (original-point (point)))
+(defun smalltalk-previous-keyword-1 ()
(smalltalk-backward-whitespace)
- (if (looking-back "[>[({.^]")
- (progn (goto-char original-point) (point))
+ (if (looking-back "[>[({.^]") ;; not really ok when > is sent in a keyword
arg
+ nil
(progn
(smalltalk-safe-backward-sexp)
(if (smalltalk-looking-at-keyword-send)
- (prog1 (point) (goto-char original-point))
- (smalltalk-previous-keyword :original-point original-point)))))
+ (point)
+ (smalltalk-previous-keyword-1)))))
-(defun smalltalk-next-keyword (&key (original-point (point)))
+(defun smalltalk-next-keyword-1 ()
(smalltalk-forward-whitespace)
(if (looking-at "[])}.]")
- (progn (goto-char original-point) (point))
+ nil
(progn
(smalltalk-safe-forward-sexp)
(skip-chars-forward ":")
(if (smalltalk-looking-back-keyword-send)
- (prog1 (point) (goto-char original-point))
- (smalltalk-next-keyword :original-point original-point)))))
+ (point)
+ (smalltalk-next-keyword-1)))))
+
+(defun smalltalk-previous-keyword ()
+ (or (save-excursion (smalltalk-previous-keyword-1)) (point)))
+
+(defun smalltalk-next-keyword ()
+ (or (save-excursion (smalltalk-next-keyword-1)) (point)))
(provide 'smalltalk-mode)
- [elpa] externals/smalltalk-mode 71cd97f 11/34: update copyright years, (continued)
- [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, 2019/04/09
- [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 <=
- [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
- [elpa] externals/smalltalk-mode 7706ca9 22/34: merge smalltalk-mode bugfixes and tags support, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 83e5fa6 03/34: more updates to the FSF address, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 81dda06 10/34: fix Emacs mode glitches reported by Jeronimo Pellegrini, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode f5a8ddb 13/34: update copyright notices for 2009, Stefan Monnier, 2019/04/09
- [elpa] externals/smalltalk-mode 12cf1d9 19/34: more smalltalk mode improvements from Mathieu, Stefan Monnier, 2019/04/09