[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best practices for sql-list-(table|all)?

From: Michael Mauger
Subject: Re: Best practices for sql-list-(table|all)?
Date: Tue, 2 Jul 2013 20:34:15 -0700 (PDT)

> From: Stefan Monnier <address@hidden>

>To: Trevor Murphy <address@hidden> 
>Sent: Thursday, May 30, 2013 11:50 PM
>> I don't know nearly enough about Emacs, but my current best guess is
>> that `process-send-string' just won't respect `inhibit-read-only'
>> because the former's a built-in C function.
>No, but the process-send-string just returns right away, and the
>response is inserted into the target buffer via the process-filter.
>> Any pointers?  Right now I'm just jamming a (read-only-mode -1) and
>> (read-only-mode 1) at the top and bottom of `sql-redirect-one', but it
>> feels too gross to share.  I'd love to find out that I can get away
>> with a simple `inhibit-read-only' solution.
>I don't know why turning the mode off and then back on would work while
>let-binding inhibit-read-only wouldn't.  Maybe Michael can think of
>some reason?

I apologize for the delay in my response.  

I had encountered the same issue and thought the fix had already been 

moved to trunk.  Digging in tonite, it doesn't appear it made it; so I'll get 

it installed this week.  I had a similar problem with using inhibit-read-only, 

but found that controlling buffer-read-only was actually a more accurate 

way of managing the buffer's read-only state and the buffer's contents.

Thanks for the bug report and sorry for my delay

-- Michael

reply via email to

[Prev in Thread] Current Thread [Next in Thread]