From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Francis Moreau" Newsgroups: gmane.emacs.help Subject: Re: How to open a file in sh-mode Date: Thu, 14 Aug 2008 15:48:57 +0200 Message-ID: <38b2ab8a0808140648s4486ba20l428b40704efc95af@mail.gmail.com> References: <38b2ab8a0808140053g6261aeafmd74692199cea07eb@mail.gmail.com> <200808141016.12117.henrikau@stud.ntnu.no> <38b2ab8a0808140203s53c339f3k70d5887d42a4de2f@mail.gmail.com> <200808141203.22315.henrikau@stud.ntnu.no> <874p5nwzri.fsf@kobe.laptop> <38b2ab8a0808140601p3f524769oe0fdb80c6db60bb@mail.gmail.com> <87myjfvi9v.fsf@kobe.laptop> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218721792 13051 80.91.229.12 (14 Aug 2008 13:49:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2008 13:49:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Giorgos Keramidas" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Aug 14 15:50:44 2008 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 1KTdDj-0006iC-WB for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 15:50:32 +0200 Original-Received: from localhost ([127.0.0.1]:56059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTdCn-00027M-Gz for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Aug 2008 09:49:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KTdCG-0001zo-T7 for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 09:49:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KTdCE-0001y0-NY for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 09:48:59 -0400 Original-Received: from [199.232.76.173] (port=48638 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KTdCE-0001xs-K6 for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 09:48:58 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.240]:33726) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KTdCE-0004kX-0g for help-gnu-emacs@gnu.org; Thu, 14 Aug 2008 09:48:58 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so437445rvb.6 for ; Thu, 14 Aug 2008 06:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=KroaKjyt90LolA42Y7DP5BnUmpzkUhQXD4qdwDEtHoE=; b=MGQsCmxZdUV3DoJGr+3C4k5bBBd1PoRHipi0XH577Y5I9YaMXsVo1qaWM5PDCKGX2Y 3+d3R3qkoKP/QbQyYrjJhP0hPTpOgYkH0gc5oPTNHNhWaD0MekGYRePILYRoxuPKN/50 vM6lPiIrhBm8GOvzsbJcpuVa8UatCPznX6GEQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KSOs+nVEf/o3EKfwYfvo/Fm3S2z9o00qqU67rNCvwtVVQvqIWn54wS/ot+g63d/XYu 43OmAjk4Gv0zXTw3wGNTKVITOfZEqTrRGT0kaRdLziGQpNTeFycTjcCfuDPGTO0JBVhX oO/kfnMDFKpTVX52ZAIlImlehTaI9OpAZCsgs= Original-Received: by 10.140.162.21 with SMTP id k21mr661621rve.261.1218721737254; Thu, 14 Aug 2008 06:48:57 -0700 (PDT) Original-Received: by 10.140.170.16 with HTTP; Thu, 14 Aug 2008 06:48:57 -0700 (PDT) In-Reply-To: <87myjfvi9v.fsf@kobe.laptop> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:56619 Archived-At: On Thu, Aug 14, 2008 at 3:27 PM, Giorgos Keramidas wrote: > On Thu, 14 Aug 2008 15:01:02 +0200, "Francis Moreau" wrote: >> On Thu, Aug 14, 2008 at 2:24 PM, Giorgos Keramidas >> wrote: >>> >>> You can probably write a short wrapper script that is used as $FCEDIT to >>> run the equivalent of: >>> >>> emacs --eval "(setq-default default-major-mode 'sh-mode)" file1 file2 ... >>> >> >> Hmm I don't why I need a wrapper script in that case, do you have an idea ? >> >> If I try without the wrapper I get: >> >> $ export FCEDIT="emacs -nw --eval \"(setq-default default-major-mode >> 'sh-mode)\"" >> $ fc >> >> >> >> ("emacs" "--eval" "\"(setq-default" "default-major-mode" "'sh-mode)\"" >> "/tmp/bash-fc-247955888988243") > > See how the command-line arguments have been split in multiple places by > the shell that evaluated $FCEDIT? > hmm not really. Could you tell me what's wrong here ? IOW how emacs have been launched ? thanks -- Francis