You are exactly correct.

If I paste the text into the editor using the terminal emulator (⌘V), it 
appears to be keyboard input and the translation occurs.

If I yank it (⌃y), the translation does not occur, because it is not keyboard 
input.

I was pasting it.  I know yank now works, but I have not yet got my muscle 
memory working that way, when I copy text from somewhere using the system 
clipboard.

Thanks!

-- 
Marc Wilson
posgu...@gmail.com

On Mon, Dec 23, 2024, at 4:18 PM, Charlie Gordon wrote:
> Hi Marc,
> 
> The question is how to you paste the text into the buffer?
> 
> * if you use yank (C-y) with working support of the system clipboard, TABs in 
> the clipboard should be preserved.
> * if you use the terminal pasting feature, qemacs receives the TABs as 
> keyboard input and depending on the current buffer mode, they will 
> self-insert or cause qemacs to insert spaces up to the indentation.
> 
> Which if these do you perform?
> 
> Your suggestion to make `.patch`files use TAB as a regular self-insert 
> character makes sense.  This cannot be achieved with conditionals in the 
> config file, I will look into that.  Makefiles obviously need a similar mode.
> 
> Chqrlie.
> 
>> On 23 Dec 2024, at 22:50, Marc Wilson <posgu...@gmail.com> wrote:
>> 
>> Is there a way to do conditionals in the config file based on filename or 
>> extension?
>> 
>> Example... I have tab expansion turned on and set to four spaces.  I touched 
>> in a shell a new file with a .patch extension, then opened it in qemacs and 
>> pasted a patch into it and saved it.
>> 
>> But it wouldn't apply.  The code base was tabs, and qemacs had replaced the 
>> tabs.  Perhaps there's an option to git apply that would correct for that, 
>> but I don't know what it is.
>> 
>> So it would be useful to be able to condition things like that based on the 
>> filename or extension (or filetype, I could do it the other way and only 
>> force the expansion on python files ^_^ ). 
>> 
>> -- 
>> Marc Wilson
>> posgu...@gmail.com

Reply via email to