unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: 17752@debbugs.gnu.org
Subject: bug#17752: [Matthias Meulien] Re: bug#17752: 24.4.50; Scrolling other window while skeleton reads input inserts garbage
Date: Sun, 06 Dec 2020 20:40:27 +0100	[thread overview]
Message-ID: <87o8j6pvtg.fsf@gnus.org> (raw)
In-Reply-To: <87oay0bgf5.fsf@gmail.com>


[-- Attachment #0: Type: message/rfc822, Size: 6000 bytes --]

[-- Attachment #1.1.1: Type: text/plain, Size: 2035 bytes --]

Well, let's move to GMail web app...

> Could you provide a step-by-step recipe, starting from "emacs -Q"?

Steps to reproduce (I am now using GNU Emacs 28.0.50 (build 29,
x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0) of
2020-11-21), commit 789ee3e1d5 from master:

1. M-x find-file /usr/lib/python3.7/copy.py RET

2. C-x C-w ~/test.py RET

3. C-v C-v C-u 15 C-n <= scroll two pages and reach an blank line where
inserting a new class definition makes sense

4. M-x python-skeleton-class

5. C-M-S-v

6. C-M-S-v

7. Test <= I wrote this in the minibuffer where I was prompted since step 4
for a class name as required by python-skeleton-class

8. Press RET

The diff of the resulting file attached. As you can see it's not the
expected result of python-skeleton-class.

Le dim. 6 déc. 2020 à 18:14, Matthias Meulien <orontee@gmail.com> a écrit :

> Here is the recipe again. Previous mail was sent using Gnus
> through GMail. I usually have no troubles. I suppose the problem
> came from inserted diff output; Thus this time I attached the diff
> as a MIME part.
>
> > Could you provide a step-by-step recipe, starting from "emacs
> > -Q"?
>
> Steps to reproduce (I am now using GNU Emacs 28.0.50 (build 29,
> x86_64-pc-linux-gnu, GTK+ Version 3.24.5, cairo version 1.16.0) of
> 2020-11-21), commit 789ee3e1d5 from master:
>
> 1. M-x find-file /usr/lib/python3.7/copy.py RET  2. C-x C-w
> ~/test.py RET  3. C-v C-v C-u 15 C-n <= scroll two pages and reach
> an blank line where inserting a new class definition makes sense
> 4. M-x python-skeleton-class  6. C-M-S-v  7. C-M-S-v  8. Test <= I
> wrote this in the minibuffer where I was prompted since step 4 for
> a class name as required by python-skeleton-class  7. Press RET
>
> Now the diff of the resulting file is the following. As you can
> see it's not the expected result of python-skeleton-class.
>
>
>
> Feel free to ask if it's still unclear.   Regards,
>
> --
> Matthias
>


-- 
Matthias

[-- Attachment #1.1.2: Type: text/html, Size: 2634 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: temp.diff --]
[-- Type: text/x-patch; name=temp.diff, Size: 516 bytes --]

--- /usr/lib/python3.7/copy.py 2020-07-25
15:03:44.000000000 +0200 +++ /home/matthias/test.py     2020-12-05
17:53:35.503140351 +0100 @@ -46,6 +46,10 @@
 to control pickling: they can define methods called
 __getinitargs__(), __getstate__() and __setstate__().  See the
 documentation for module "pickle" for information on these
 methods.
+Test: +"""""" + +
 """  import types
@@ -105,5 +109,4 @@
         return x
     return _reconstruct(x, None, *rv)

- +class 
 _copy_dispatch = d = {}  def _copy_immutable(x):

  parent reply	other threads:[~2020-12-06 19:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-10 21:31 bug#17752: 24.4.50; Scrolling other window while skeleton reads input inserts garbage Matthias
2020-12-04 11:53 ` Lars Ingebrigtsen
2020-12-05 16:58   ` Matthias Meulien
2020-12-06 13:41     ` Lars Ingebrigtsen
2020-12-06 19:40 ` Lars Ingebrigtsen [this message]
2020-12-07 15:37   ` bug#17752: [Matthias Meulien] " Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o8j6pvtg.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=17752@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).