From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: pjb@informatimago.com (Pascal J. Bourguignon) Newsgroups: gmane.emacs.help Subject: Re: Quote Selection Do What I Mean (DWIM) Date: Fri, 23 Oct 2009 18:38:10 +0200 Organization: Informatimago Message-ID: <87tyxq2hhp.fsf@galatea.local> References: <873a5a42gz.fsf@galatea.local> <7db53591-5a33-4a15-8569-5b1727e70a2a@e18g2000vbe.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1256316128 8374 80.91.229.12 (23 Oct 2009 16:42:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2009 16:42:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 18:42:01 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N1NDC-0004ZQ-Rk for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 18:41:59 +0200 Original-Received: from localhost ([127.0.0.1]:46124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1NDC-0003UU-9E for geh-help-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 12:41:58 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-X-Trace: individual.net XbAgfL5q04Bn2EhooPrhNg4RLuD9iWC6sWFHPFOW/EILLv/OBY Cancel-Lock: sha1:YjBiNzcwMTRkMThmYjk2YTc5MzJlMGFkODVjZjQ0NDAwMDE3NGNiNA== sha1:Z1/MqfNQPb9s81Nk/MQlkv4/BoY= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en X-Disabled: X-No-Archive: no User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.3 (darwin) Original-Xref: news.stanford.edu gnu.emacs.help:174105 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69187 Archived-At: Nordlöw writes: > On Oct 23, 4:19 pm, p...@informatimago.com (Pascal J. Bourguignon) > wrote: >> Nordlöw writes: >> > If transient-mark-mode is activate it would be nice to have some >> > clever major-mode-sensitive auto-insertion of single quotes and >> > backquotes. >> >> > in emacs-lisp-mode we want the following mappings >> > - ' => `symbol' in comment-syntax >> > - ' => 'symbol in code-syntax (no change >> > - " => "string" everywhere >> >> > Does emacs have a suitable before/after/replace hook related to self- >> > insert-command that can be used to realize this behaviour? >> >> > Suitable function name could be quote-dwim(). >> >> > Has anybody already done this? Reflections... >> >> In paredit, " behaves differently in code-syntax than in comment-syntax. >> ' behave the same everywhere. >> >> You could easily propose a patch to paredit to add the wanted behavior for '. > > I can't find the email related to the author paredit.el. Where should > I file the request for inclusion in paredit.el? $ wget http://mumble.net/~campbell/riastradh.pgp $ gpg ~/riastradh.pgp pub 1024D/BD2D02B0 2007-06-19 Taylor R Campbell uid Taylor R Campbell sub 4096g/C38F1908 2007-06-19 -- __Pascal Bourguignon__