From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#4452: marked as done (23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer) Date: Sat, 19 Sep 2009 19:40:15 +0000 Message-ID: References: <87bpl6bub2.fsf@cyd.mit.edu> <87pr9qzrmx.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1253389215-30297-0" X-Trace: ger.gmane.org 1253389655 6860 80.91.229.12 (19 Sep 2009 19:47:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Sep 2009 19:47:35 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 19 21:47:28 2009 Return-path: Envelope-to: geb-bug-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 1Mp5u3-0004ZM-AU for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Sep 2009 21:47:27 +0200 Original-Received: from localhost ([127.0.0.1]:56559 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mp5u2-0004xM-On for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Sep 2009 15:47:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mp5tm-0004o3-Gq for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 15:47:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mp5th-0004jA-LA for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 15:47:10 -0400 Original-Received: from [199.232.76.173] (port=45393 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mp5th-0004iy-Bl for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 15:47:05 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:54029) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mp5tg-00021l-Lq for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 15:47:05 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8JJl2sP031305; Sat, 19 Sep 2009 12:47:02 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8JJeGOR030351; Sat, 19 Sep 2009 12:40:16 -0700 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 4452 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31292 Archived-At: This is a multi-part message in MIME format... ------------=_1253389215-30297-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 19 Sep 2009 15:36:49 -0400 with message-id <87bpl6bub2.fsf@cyd.mit.edu> and subject line Re: bug#4452: 23.1; sh-learn-buffer-indent unexpectedly di= splays *indent* buffer has caused the Emacs bug report #4452, regarding 23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 4452: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D4452 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1253389215-30297-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 16 Sep 2009 18:11:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.8 required=4.0 tests=AWL,FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8GIBmK3025399 for ; Wed, 16 Sep 2009 11:11:49 -0700 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mnyyp-000782-TH for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2009 14:11:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mnyyk-0006yD-EJ for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2009 14:11:47 -0400 Received: from [199.232.76.173] (port=58152 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mnyyk-0006yA-B2 for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2009 14:11:42 -0400 Received: from mail.uni-ulm.de ([134.60.1.11]:64892) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Mnyyj-0005c3-Qo for bug-gnu-emacs@gnu.org; Wed, 16 Sep 2009 14:11:42 -0400 Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id n8GIBdNH007946 for ; Wed, 16 Sep 2009 20:11:39 +0200 (MEST) Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 209FE13842 for ; Wed, 16 Sep 2009 20:11:39 +0200 (CEST) From: Reiner Steib To: bug-gnu-emacs@gnu.org Subject: 23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer X-Face: 'bg&jY[8V'W&:=~6w"|>}#4/T;w~36ei4NNMyKRR.a$n=$|sWFPF1y]a\>6kc\*#GN]UDM| Ywv,vbL^XF1nIp\:F=$Ei2o&mEe:%N~,:3]vtQ~s9u$9izmX$IF@VgGl7/,^dbuM<3|AO2}.%|%?kZ 2Y=@\U!~cll^=8Z9ihKq%wmUe1Ky(#kl3T'>Qk0Ia3mCBsTk?E(,X Reply-To: Reiner Steib Mail-Copies-To: nobody Date: Wed, 16 Sep 2009 20:11:34 +0200 Message-ID: <87pr9qzrmx.fsf@marauder.physik.uni-ulm.de> User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-DCC-CTc-dcc2-Metrics: poseidon 1031; Body=1 Fuz1=1 Fuz2=1 X-Virus-Scanned: by amavisd-new X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Hi, when sh-learn-buffer-indent it t, an *indent* buffer is displayed unexpectedly in certain situations. To reproduce: - Start `emacs -Q' - M-: (add-hook 'sh-set-shell-hook 'sh-learn-buffer-indent) RET - Do `M-x cvs-update RET' on a working directory with some *.sh file. - Do `=' (cvs-mode-diff) - The window layout is now: +-------------+ | *cvs* | | | +-------------+ | *cvs-diff* | | | +-------------+ - Do `C-x o' (other-window) to jump to the *cvs-diff* buffer. - Move around to the first diff hunk, hit `C-c C-c' (diff-goto-source) - Expected behavior: +-------------+ | foo.sh | | | +-------------+ | *cvs-diff* | | | +-------------+ - Actual behavior (Bug): +-------------+ | *indent* | | | +-------------+ | foo.sh | | | +-------------+ - Content of *indent* (Occur mode): | Indentation values for buffer foo.sh. | 5 indentation variables have different values: | | 61: Variable sh-indent-for-continuation was set to 0 | 60: but was previously set to 7 | 62: Variable sh-indent-for-continuation was set to 4 | 61: but was previously set to 0 | 91: Variable sh-indent-for-continuation was set to 2 | 62: but was previously set to 4 | 99: Variable sh-indent-for-continuation was set to 4 | 91: but was previously set to 2 | 100: Variable sh-indent-for-continuation was set to 2 | 99: but was previously set to 4 | | Comments follow default indentation. | | Initial value of sh-basic-offset: 4 | Suggested sh-basic-offset: 2 | | Learned variable settings: | sh-indent-for-case-label 0 | sh-indent-after-function 2 | sh-indent-after-if 2 | sh-indent-for-else 0 | sh-indent-for-fi 0 | sh-indent-after-loop-construct 2 | sh-indent-for-continuation 2 | sh-indent-for-done 0 | sh-indent-after-open 2 | sh-indent-comment t In GNU Emacs 23.1.1 (i386-mingw-nt6.0.6001) of 2009-07-30 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 6.0.6001 configured using `configure --with-gcc (4.4)' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: DEU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: diff-auto-refine-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x 5 f . e m i n i . C-s s h - C-a M-x i e M-x c v s - u C-k C-x b * c v = C-c C-c M-x C-g C-g C-x 5 b s c r * M-x r e p o r Recent messages: line 109 line 110 line 111 line 112 line 113 basic-offset is probably 2 Mark set Hunk already applied Quit [2 times] Making completion list... Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ ------------=_1253389215-30297-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4452-done) by emacsbugs.donarmstrong.com; 19 Sep 2009 19:35:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8JJZHHE029658 for <4452-done@emacsbugs.donarmstrong.com>; Sat, 19 Sep 2009 12:35:18 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 68FBE57E21C; Sat, 19 Sep 2009 15:36:49 -0400 (EDT) From: Chong Yidong To: 4452-done@emacsbugs.donarmstrong.com Subject: Re: bug#4452: 23.1; sh-learn-buffer-indent unexpectedly displays *indent* buffer References: <87iqfgoz4e.fsf@stupidchicken.com> <87eiq3m2pm.fsf@marauder.physik.uni-ulm.de> Date: Sat, 19 Sep 2009 15:36:49 -0400 In-Reply-To: <87eiq3m2pm.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Sat, 19 Sep 2009 16:25:09 +0200") Message-ID: <87bpl6bub2.fsf@cyd.mit.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reiner Steib writes: > $ cd /path/to/trunk/emacs > $ cp -p autogen.sh autogen.sh.bak > $ head -n730 config.guess >> autogen.sh > $ emacs-23-1 -Q \ > --eval "(add-hook 'sh-set-shell-hook 'sh-learn-buffer-indent)" \ > -f cvs-update > > - Hit RET (to confirm cvs directory) > - Move to the line with autogen.sh and do `=' (cvs-mode-diff) > - The window layout is *cvs* / *cvs-diff* (upper / lower window) > - Do `C-x o' (other-window) to jump to the *cvs-diff* buffer. > - Do `M->' > - Hit `C-c C-c' (diff-goto-source) > - The window layout is *indent* / autogen.sh (upper / lower window) Thanks, I've checked in a fix. ------------=_1253389215-30297-0--