From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Best practices for sql-list-(table|all)? Date: Thu, 30 May 2013 23:50:43 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369972255 2620 80.91.229.3 (31 May 2013 03:50:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 May 2013 03:50:55 +0000 (UTC) Cc: Michael Mauger , emacs-devel@gnu.org To: Trevor Murphy Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 31 05:50:54 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UiGMf-0006Ku-VL for ged-emacs-devel@m.gmane.org; Fri, 31 May 2013 05:50:54 +0200 Original-Received: from localhost ([::1]:59250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiGMf-0002nO-M2 for ged-emacs-devel@m.gmane.org; Thu, 30 May 2013 23:50:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiGMb-0002n8-Ay for emacs-devel@gnu.org; Thu, 30 May 2013 23:50:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiGMZ-0003UA-Ob for emacs-devel@gnu.org; Thu, 30 May 2013 23:50:49 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:22086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiGMZ-0003U4-KW for emacs-devel@gnu.org; Thu, 30 May 2013 23:50:47 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFFpYtM/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kLodwBsEtkQoDpHqBXoMT X-IPAS-Result: Av4EABK/CFFFpYtM/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kLodwBsEtkQoDpHqBXoMT X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="15249101" Original-Received: from 69-165-139-76.dsl.teksavvy.com (HELO pastel.home) ([69.165.139.76]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 30 May 2013 23:50:38 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1FFC767579; Thu, 30 May 2013 23:50:43 -0400 (EDT) In-Reply-To: (Trevor Murphy's message of "Thu, 30 May 2013 22:42:24 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:159944 Archived-At: > 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