swift-emacs / swift-mode

Emacs support for Apple's Swift programming language.
GNU General Public License v3.0
372 stars 47 forks source link

Update `swift-mode:mark-defun` for Emacs 26 #149

Closed taku0 closed 6 years ago

taku0 commented 6 years ago

Emacs 26 changes the signature of mark-defun:

(mark-defun &optional ARG)

Put mark at end of this defun, point at beginning.
The defun marked is the one that contains point or follows point.
With positive ARG, mark this and that many next defuns; with negative
ARG, change the direction of marking.

If the mark is active, it marks the next or previous defun(s) after
the one(s) already marked.
taku0 commented 6 years ago

7f89b8cd41ee93fd81512003b1f18a9eab4d8ce0