[ rss / options / help ]
post ]
[ b / iq / g / zoo ] [ e / news / lab ] [ v / nom / pol / eco / emo / 101 / shed ]
[ art / A / beat / boo / com / fat / job / lit / map / mph / poof / £$€¥ / spo / uhu / uni / x / y ] [ * | sfw | o ]
logo
technology

Return ]

Posting mode: Reply
Reply ]
Subject   (reply to 24682)
Message
File  []
close
450px-AMI_-_Oktopusvase.jpg
246822468224682
>> No. 24682 Anonymous
9th September 2015
Wednesday 8:44 pm
24682 Pasting shit into Emacs
I have a little problem here ladchaps. Whenever I try to paste something into Emacs with Shift+Insert, it works but in a weird way, gradually increasing indentation with each line pasted.

On Vim I'd hit :set paste and everything would go smooth. I don't know what to do with Emacs though. Lend a hand please. I've performed a casual scroll through C-h a but haven't found anything that would help me.
Expand all images.
>> No. 24683 Anonymous
9th September 2015
Wednesday 8:47 pm
24683 spacer
>>24682
>I don't know what to do with Emacs though.
I guess the answer is obvious. Go back to vim.
>> No. 24684 Anonymous
9th September 2015
Wednesday 9:59 pm
24684 spacer
>>24683
That will definitely fly but I'm interested how to solve this little problem in Emacs.
>> No. 24685 Anonymous
9th September 2015
Wednesday 10:29 pm
24685 spacer
Could you give some more details on which mode you're in and what terminal you're using (and perhaps the version of emacs)? I've not had that problem in a long while, so I'd be interested in digging around why someone would still see it in this day and age.

>>24683
viper-mode
>> No. 24686 Anonymous
10th September 2015
Thursday 2:31 am
24686 spacer
Dunno, I just use nano.
>> No. 24687 Anonymous
10th September 2015
Thursday 3:48 pm
24687 spacer
>>24685
Sure lad.
I'm trying to paste some settings into the fonts.conf file. The major mode seems to be nXML-mode. Emacs's version is 24.5. The terminal is XTerm both for Emacs and for Lynx from which I had copied those settings.

Just in case, the distro I'm using is Debian Unstable.
>> No. 24692 Anonymous
10th September 2015
Thursday 8:16 pm
24692 spacer
>>24682

> gradually increasing indentation with each line pasted

Either the handling of windows vs unix newlines (\n vs \r\n) or tabs. Or both. cat the data into a file directly via bash and see if the same thing happens.
>> No. 24718 Anonymous
11th September 2015
Friday 4:50 pm
24718 spacer
>>24692
All right, I have just `cat << HERE > fonts.conf' that shite and opened the resulting file in Emacs. The structure is unaltered, there are no excess indents.
>> No. 24724 Anonymous
20th September 2015
Sunday 9:55 pm
24724 spacer
>>24718>>24692
Tested this in another VM under pretty much the same conditions. Everything works just fine.

Now the M-x has broken too in that Debian VM. It just prints 'ø' instead of giving a prompt. Fun times.

Return ]
whiteline

Delete Post []
Password