unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Trevor Murphy <trevor.m.murphy@gmail.com>
Cc: Michael Mauger <michael@mauger.com>, emacs-devel@gnu.org
Subject: Re: Best practices for sql-list-(table|all)?
Date: Thu, 30 May 2013 23:50:43 -0400	[thread overview]
Message-ID: <jwv4ndj3j5c.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CA+MaCJftOhZHfka9cD0VWd5FR=CJZAngMLviJPMzg2CC6-YsuQ@mail.gmail.com> (Trevor Murphy's message of "Thu, 30 May 2013 22:42:24 -0400")

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


        Stefan



  reply	other threads:[~2013-05-31  3:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-30  3:41 Best practices for sql-list-(table|all)? Trevor Murphy
2013-05-30 13:35 ` Stefan Monnier
2013-05-31  2:42   ` Trevor Murphy
2013-05-31  3:50     ` Stefan Monnier [this message]
2013-07-03  3:34       ` Michael Mauger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv4ndj3j5c.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=michael@mauger.com \
    --cc=trevor.m.murphy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).