[Top][All Lists]

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

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

From: Stefan Monnier
Subject: Re: Best practices for sql-list-(table|all)?
Date: Thu, 30 May 2013 23:50:43 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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?


reply via email to

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