comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » idl-pvwave-mode on Emacs: prompt is locked text
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
idl-pvwave-mode on Emacs: prompt is locked text [message #92627] Tue, 26 January 2016 10:37 Go to next message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
Hi IDL Wizards,

I'm going to post this question to Stack Overflow too as it's maybe an emacs question, but this is making me crazy.

The symptom is this: when you copy text out of the *idl* buffer into a file buffer, and include the 'IDL> ' prompt (as you must if you want to copy multiple lines), the lines are set to read-only in the file buffer. The 'IDL> ' cannot be deleted, nothing can be changed.

This is new behavior from emacs, and since it's emacs, I'm sure there's a lisp command to turn it off, but I don't know what it is.

Am I the only one still using the idl-mode in emacs? Has anyone seen this?

--Edward H.
Re: idl-pvwave-mode on Emacs: prompt is locked text [message #92628 is a reply to message #92627] Tue, 26 January 2016 10:48 Go to previous messageGo to next message
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
On Tuesday, January 26, 2016 at 10:37:59 AM UTC-8, Edward Hyer wrote:
> Hi IDL Wizards,
>
> I'm going to post this question to Stack Overflow too as it's maybe an emacs question, but this is making me crazy.
>
> The symptom is this: when you copy text out of the *idl* buffer into a file buffer, and include the 'IDL> ' prompt (as you must if you want to copy multiple lines), the lines are set to read-only in the file buffer. The 'IDL> ' cannot be deleted, nothing can be changed.
>
> This is new behavior from emacs, and since it's emacs, I'm sure there's a lisp command to turn it off, but I don't know what it is.
>
> Am I the only one still using the idl-mode in emacs? Has anyone seen this?
>
> --Edward H.

OK, lots of discussion on this. If anyone cares, I found a potential solution, and a cheap workaround.
The potential solution is to add to .emacs:

(add-to-list 'yank-excluded-properties 'read-only)

The cheap workaround is save+revert, which will replace the text in the buffer with what can be saved in the file (text properties cannot be saved in the file, and so are stripped out).

--Edward H.
Re: idl-pvwave-mode on Emacs: prompt is locked text [message #92671 is a reply to message #92628] Thu, 04 February 2016 10:06 Go to previous message
JDS is currently offline  JDS
Messages: 94
Registered: March 2009
Member
Do you have idlw-roprompt required in your .emacs? This was an old workaround to the prompt management of comint (the shell mode IDLWAVE uses underneath). I don't use roprompt anymore but modern comint versions seem to do the right thing. I already had read-only on yank-exclude-properties btw.

JD

PS: There are many users of IDLWAVE still hanging on, but I must admit that my inability to make any serious updates in recent times has probably caused interest to wane. A couple years back I did refactor all the code and get it in decent shape. I've invited anyone interested in taking over maintainership to get in touch, and had some interest but never converged. So I'll make that invitation again in a separate post.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: 4D Interpolation
Next Topic: IDLWAVE Maintainer Wanted

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:34:09 PDT 2025

Total time taken to generate the page: 0.00460 seconds