On Sun, 2010-03-28 at 19:50 +0300, Dmitry Baryshev wrote: > Nope, technically this IS a bug. Pasting text must NOT depend on such > options like "Return does autoindent", because it is not a direct > editing.
Nope, technically this is NOT a bug. When you paste some text in the terminal emulator using the terminal emulator facilities, what actually happens is that the terminal sends the buffer to the console on a character by character basis. There is no way for mc to discriminate between you typing some text with "Return does autoindent" on and expecting it to do autoindent as you type or you pasting some text via the terminal emulator "Paste" command. For this reason they introduced Shift modifier, that suppresses "Return does autoindent" for individual pastes. > All editors paste text normally - vi, nano, gvim, emacs and so on. > Mcedit is the only app having such problems, and it is completely > weird for those who use mc all the time (like me). I never actually tried emacs and nano with autoindentation on (I suspect that you are wrong), but I do know, that vim implements a dirty hack based on the keystroke timings (e.g. it assumes that a human can not type quicker than 500 characters per second and dynamically disables autoindentation in case if the typing rate exceeds a certain threshold). gvim is totally irrelevant here. There are several ways of providing work-arounds for this issue: 1) One is X clipboard integration that is currently being worked on; 2) Other is the use of this additional modifier (which should work now); 3) Last one is to implement a vim-like hack, but for many reasons this is undesirable. Hope it clears it up. -- Sincerely yours, Yury V. Zaytsev -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

