GNU bug report logs -
#16949
24.3; [PATCH] insert-pair now leaves the point where the docstring says it should
Previous Next
Reported by: Dima Kogan <gnuplot <at> dima.secretsauce.net>
Date: Thu, 6 Mar 2014 07:27:02 UTC
Severity: normal
Tags: fixed, patch
Found in version 24.3
Fixed in version 25.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16949 in the body.
You can then email your comments to 16949 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16949
; Package
emacs
.
(Thu, 06 Mar 2014 07:27:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dima Kogan <gnuplot <at> dima.secretsauce.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 06 Mar 2014 07:27:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The docstring of insert-pair states that after insertion, the point ends
up after the opening character. This was not true if the pair was
inserted to surround a region. This small patch fixes it.
[0001-insert-pair-now-behaves-like-its-docstring-says.patch (text/x-diff, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#16949
; Package
emacs
.
(Wed, 24 Feb 2016 02:56:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 16949 <at> debbugs.gnu.org (full text, mbox):
Dima Kogan <gnuplot <at> dima.secretsauce.net> writes:
> The docstring of insert-pair states that after insertion, the point ends
> up after the opening character. This was not true if the pair was
> inserted to surround a region. This small patch fixes it.
>
>>From 5ae4b68706e4a1c8daa0bb91602a62911c29a9a8 Mon Sep 17 00:00:00 2001
> From: Dima Kogan <dima <at> secretsauce.net>
> Date: Wed, 5 Mar 2014 23:10:57 -0800
> Subject: [PATCH] insert-pair now behaves like its docstring says
>
> The docstring of insert-pair states that after insertion, the point
> ends up after the opening character. This was not true if the pair was
> inserted to surround a region
> ---
> lisp/emacs-lisp/lisp.el | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lisp/emacs-lisp/lisp.el b/lisp/emacs-lisp/lisp.el
> index 0487515..420b205 100644
> --- a/lisp/emacs-lisp/lisp.el
> +++ b/lisp/emacs-lisp/lisp.el
> @@ -536,7 +536,7 @@ This command assumes point is not in a string or comment."
> (if (and transient-mark-mode mark-active)
> (progn
> (save-excursion (goto-char (region-end)) (insert close))
> - (save-excursion (goto-char (region-beginning)) (insert open)))
> + (goto-char (region-beginning)) (insert open))
> (if arg (setq arg (prefix-numeric-value arg))
> (setq arg 0))
> (cond ((> arg 0) (skip-chars-forward " \t"))
Thanks; applied to emacs-25.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 24 Feb 2016 02:56:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 25.1, send any further explanations to
16949 <at> debbugs.gnu.org and Dima Kogan <gnuplot <at> dima.secretsauce.net>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 24 Feb 2016 02:56:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 23 Mar 2016 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.