From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "William Xue" Newsgroups: gmane.emacs.devel Subject: Re: ls in eshell will cause the prompt jumped to mid of buf Date: Sat, 29 Sep 2007 11:31:59 +0800 Organization: SMILING Message-ID: References: <6qabr61x6h.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191036748 23030 80.91.229.12 (29 Sep 2007 03:32:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2007 03:32:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Glenn Morris" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 29 05:32:23 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IbT42-00077n-3L for ged-emacs-devel@m.gmane.org; Sat, 29 Sep 2007 05:32:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbT3y-0002oo-5s for ged-emacs-devel@m.gmane.org; Fri, 28 Sep 2007 23:32:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbT3u-0002og-HE for emacs-devel@gnu.org; Fri, 28 Sep 2007 23:32:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbT3s-0002nf-Pr for emacs-devel@gnu.org; Fri, 28 Sep 2007 23:32:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbT3s-0002nc-Kj for emacs-devel@gnu.org; Fri, 28 Sep 2007 23:32:12 -0400 Original-Received: from nz-out-0506.google.com ([64.233.162.225]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IbT3s-0002fx-B8 for emacs-devel@gnu.org; Fri, 28 Sep 2007 23:32:12 -0400 Original-Received: by nz-out-0506.google.com with SMTP id f1so2247019nzc for ; Fri, 28 Sep 2007 20:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:date:to:subject:from:organization:cc:content-type:mime-version:references:content-transfer-encoding:message-id:in-reply-to:user-agent; bh=pYsf735XI5gHDVk6skQBPOJxuSu50xQlPEYe+Wkl1Is=; b=NfDWyMoOXtNsddA003W2/PKCq5wxC27mtVjcTdHXfYVRP1609N3HvDnkZIbgBVIOJi1gyODdm/+o+rYUsQUEt1B0M+dNbAgnCsbjgiafEH/LSSw980yMOXPJ1GhtBBt+acc7sRWml+Io2okMVUVmHW/G4xnOv/kSXz2Rp8clQbQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:to:subject:from:organization:cc:content-type:mime-version:references:content-transfer-encoding:message-id:in-reply-to:user-agent; b=MzrbhuD2XQ3autklUMK82uRYk7GhDMXoHMU+4RwULwbdRP4ZWKGhzgvw1dJiurat0LqC8hT3VuQ8x68Lpybnz78pMYMkfQ1KPrex1z5vjpKF2aapibOd3PTlTey8A2BebEtiulzzqwr6d2S2Ek38TwdQLKDxIRw8hyOB9+AVRVs= Original-Received: by 10.114.67.2 with SMTP id p2mr2423700waa.1191036730848; Fri, 28 Sep 2007 20:32:10 -0700 (PDT) Original-Received: from smiling ( [222.92.124.222]) by mx.google.com with ESMTPS id v35sm6727210wah.2007.09.28.20.32.07 (version=SSLv3 cipher=OTHER); Fri, 28 Sep 2007 20:32:09 -0700 (PDT) In-Reply-To: <6qabr61x6h.fsf@fencepost.gnu.org> User-Agent: Opera Mail/9.50 (Win32) X-Detected-Kernel: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80012 Archived-At: On Sat, 29 Sep 2007 02:07:02 +0800, Glenn Morris wrote: > "William Xue" wrote: > >> Can I set the 'scroll-margin' to 0 only for 'eshell'? I have tried >> something on load hook, but failed. > > (add-hook 'eshell-mode-hook > (lambda () (set (make-local-variable 'scroll-margin) 0))) Eh, yes, make-local-variable. Thank you very much! -- Yours, WilliamX