emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master a5e39bf: python.el: Fix mark-defun behavior (Bu


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master a5e39bf: python.el: Fix mark-defun behavior (Bug#19665)
Date: Mon, 06 Jul 2015 09:45:34 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> +(defun python-mark-defun (&optional allow-extend)
> +  "Put mark at end of this defun, point at beginning.
> +The defun marked is the one that contains point or follows point.
> +
> +Interactively (or with ALLOW-EXTEND non-nil), if this command is
> +repeated or (in Transient Mark mode) if the mark is active, it
> +marks the next defun after the ones already marked."
> +  (interactive "p")
> +  (when (python-info-looking-at-beginning-of-defun)
> +    (end-of-line 1))
> +  (mark-defun allow-extend))

Could you suggest a way to improve the code of mark-defun so that this
remapping is not needed?


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]