From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: Edit region in different mode Date: 23 Dec 2004 02:03:01 +0100 Organization: [posted via Easynet Spain] Message-ID: <873bxxbzcq.fsf@thalassa.informatimago.com> References: <87y8fqgv09.fsf@ghidra.localhost> <87d5x2az84.fsf@thalassa.informatimago.com> <32udffF3s8udsU1@individual.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1103763919 26876 80.91.229.6 (23 Dec 2004 01:05:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Dec 2004 01:05:19 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 23 02:05:13 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ChHPl-0001bD-00 for ; Thu, 23 Dec 2004 02:05:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ChHaL-0003Ug-0T for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Dec 2004 20:16:09 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!news.mailgate.org!newsfeed.stueberl.de!ecngs!feeder.ecngs.de!195.40.4.120.MISMATCH!easynet-quince!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 36 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=7UOiFeX<2F28R?61BLc6l9EY<>`XO4V7=>Uh 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: main.gmane.org gmane.emacs.help:22939 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22939 Kevin Rodgers writes: > Pascal Bourguignon wrote: > > Yes, I have the same problem. Here's what I have in my ~/.emacs: > > > > (global-set-key [f5] 'set-justification-left) > > > > (global-set-key [3 f5] (lambda (start end) (interactive "r") > > (let ((mode major-mode)) > > (text-mode) > > (set-justification-left start end) > > (funcall mode)))) > > These alternatives are more readable and portable than [3 f5]: > > [?\C-c f5] > [(control c) f5] > (kbd "C-c ") Thank you. I fought quite a time to find an accepted syntax... > > So F5 does the justification of the region in the current mode, which > > is wrong in lisp mode. > > > > C-c F5 does the justification in the text mode and then reverts to the > > saved major-mode. > > -- > Kevin Rodgers -- __Pascal Bourguignon__ http://www.informatimago.com/ I need a new toy. Tail of black dog keeps good time. Pounce! Good dog! Good dog!