Skip to content

misc/emacs: go-mode hangs when doing a ctrl-y (paste) on space delimited numbers #2767

@gopherbot

Description

@gopherbot

by patric.fors@luminum.se:

What steps will reproduce the problem?
1. Start Emacs with "go-mode", GNU Emacs 24.0.92.1 and 23.3 tested with same
result

2. Enter the following code:
package main

// [ 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 6 7 8 8 9 90 1 1 11  2 2 3 3 4 4 4  5 5 6 6 6 7 7 7
7 7 7]
func main() {
    whatever := []byte{}
}

3. Mark (select) the numbers inside the "[" and "]"

4. Copy the numbers

5. Yank (paste) them inside the "{" and "}" after "[]byte"


What is the expected output?
package main

// [ 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 6 7 8 8 9 90 1 1 11  2 2 3 3 4 4 4  5 5 6 6 6 7 7 7
7 7 7]
func main() {
    whatever := []byte{ 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 6 7 8 8 9 90 1 1 11  2 2 3 3 4 4 4  5 5 6 6 6 7 7 7 7 7 7}
}

Later on I was going to add the comma separation of the numbers, but I didn't get so
far. :-)

What do you see instead?
Nothing is pasted (sometimes it is, noticed that when recovering an auto-save file after
restarted Emacs).
Emacs stops responding, might be stuck in a eternal loop since auto-save seems to occur

Which compiler are you using (5g, 6g, 8g, gccgo)?
go version weekly.2012-01-20 11362

Which operating system are you using?
Mac OS X 10.7.2

Which revision are you using?  (hg identify)
9f2be4fbbf69 weekly/weekly.2012-01-20

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions