Home Download Buy Blog Forum Support

Bug report: Copy-and-paste copies document type.

Bug report: Copy-and-paste copies document type.

Postby Dan Phillips on Mon Nov 23, 2009 5:12 am

Copy-and-paste copies the document type from one document to another. Is it meant to do that?

Steps to reproduce the problem in 20091118:

1. Make a new page with ctrl-n.
2. Note that the document type in the status bar is Plain Text.
3. Change that document type to Python.
4. Type this Python text: "#hello".
5. ctrl-a, ctrl-c
6. Make another page with crtl-n.
7. Note that the document type of the new page is Plain Text.
8. ctrl-v
9. Note that the document type has changed to Python and that the "#hello" has Python syntax highlighting applied to it.
10. Click on the document type in the status bar.
11. Note that there is a check mark next to Plain Text -- which disagrees with what is displayed in #9.

An additional weird thing is that this new page uses my Plain Text tab-to-spaces setting instead of my Python one.
Dan Phillips
 
Posts: 11
Joined: Wed Oct 21, 2009 2:37 am

Re: Bug report: Copy-and-paste copies document type.

Postby jps on Tue Nov 24, 2009 12:46 am

Dan Phillips wrote:Is it meant to do that?


Yes, it is. Copying text from an existing buffer into a new buffer will set the syntax highlighting of the new buffer, this is almost always what you want.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Bug report: Copy-and-paste copies document type.

Postby Dan Phillips on Tue Nov 24, 2009 2:29 am

Fair enough, but it seems to be doing an incomplete job of applying the new document type.

Note the inconsistencies (circled) in the following screen shot.

Image

Note the tab character that appears when I press the tab key. That shouldn't be there because my Python mode uses spaces instead of tabs.

Image
Dan Phillips
 
Posts: 11
Joined: Wed Oct 21, 2009 2:37 am

Re: Bug report: Copy-and-paste copies document type.

Postby jps on Tue Nov 24, 2009 11:35 am

Thanks for the report - I'll try to get this fixed for the next beta
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 12 guests