Scott Kostyshak wrote: > I remember a lot of work was done on improving pasting (e.g. LaTeX > detection) but I don't remember this change being discussed. > > Before (and now on current 2.0git), you could copy a png from the web > (coyping in Chromium on Ubuntu stores it as MIME type "image/bmp" for > me) and paste it directly into LyX. You would be asked where to save > the file. Now, nothing happens. If you go to Edit > Paste Special > > Paste as PNG, then it works. > > I liked the automatic detection. Was this removed intentionally?
No (and I don't see any difference of 2.1 vs. 2.0 here). > I remember that there was some debate about whether LaTeX should be > detected and in the end it was decided that it should not. But I think > that was because it's harder to detect because of parsing (Georg noted > that applications don't set the MIME type for text/x-tex > application/x-latex). Here that doesn't seem an issue. > > If this is unintended and it would be helpful if I did a bisect, let me > know. For me, it does not work with 2.0 either. In both cases, I get the URL as text pasted. Paste Special->png works in both versions. The reason is that my browser puts both text and graphics onto the clipboard, and in this cases LyX decides to use the text (in the handler of LFUN_PASTE). This could easily be changed to prefer graphics, but what happens if an application puts something which is basically text also as a graphic onto the clipboard? If you see differences between 2.0 and 2.1 on your machine a bisect could be helpful, but I don't understand where these differences comes from. Georg