From unknown Tue Jun 24 22:34:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#17818 <17818@debbugs.gnu.org> To: bug#17818 <17818@debbugs.gnu.org> Subject: Status: 24.3.91; sh-learn-buffer-indent doesn't learn current indent anymore Reply-To: bug#17818 <17818@debbugs.gnu.org> Date: Wed, 25 Jun 2025 05:34:15 +0000 retitle 17818 24.3.91; sh-learn-buffer-indent doesn't learn current indent = anymore reassign 17818 emacs submitter 17818 Reiner Steib severity 17818 important thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 20 10:56:43 2014 Received: (at submit) by debbugs.gnu.org; 20 Jun 2014 14:56:43 +0000 Received: from localhost ([127.0.0.1]:54869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy0F5-00039r-QV for submit@debbugs.gnu.org; Fri, 20 Jun 2014 10:56:43 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55111) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy0F0-00039b-As for submit@debbugs.gnu.org; Fri, 20 Jun 2014 10:56:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wy0Eo-0006rD-Sr for submit@debbugs.gnu.org; Fri, 20 Jun 2014 10:56:29 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:35293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy0Eo-0006r9-QP for submit@debbugs.gnu.org; Fri, 20 Jun 2014 10:56:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56795) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy0Ei-00059M-HH for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:56:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wy0EW-0006oO-HF for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:56:16 -0400 Received: from mout.gmx.net ([212.227.15.15]:62355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy0EW-0006nu-7i for bug-gnu-emacs@gnu.org; Fri, 20 Jun 2014 10:56:04 -0400 Received: from rqn17961lx ([84.168.145.201]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0Metpl-1XMPlS46p7-00OYvx; Fri, 20 Jun 2014 16:55:56 +0200 From: Reiner Steib To: bug-gnu-emacs@gnu.org Subject: 24.3.91; sh-learn-buffer-indent doesn't learn current indent anymore User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) Date: Fri, 20 Jun 2014 16:54:04 +0200 Message-ID: <87ha3fy6lv.fsf@marauder.physik.uni-ulm.de> MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K0:/J5rCI4pd+njQ//HalvOvjvZzToOZcx35sO1Tu3ynKG6HlwS6Qn N8JQ9hqlhIiD5qUNmZtIH0OtbL/NyW7pjAOhn7D/Y6h/Np7jqfXhb+qng9UoMT4++yC1Vpl M5QNLHxSHe8mnVs3nqG4IkCeP2CtMcHXfFWJr2cZ4cnYYg+LNq4dAhuIEE1ebXTmmQLs38n Hk/MQCDCYqX0HwF6QMpPA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) Hi, in Emacs 24.3.91, `sh-learn-buffer-indent' doesn't seem to learn the current indent rules of the buffer anymore. It worked correctly in 23.3 and better in 24.1, see below. (I use `sh-learn-buffer-indent' in `sh-set-shell-hook'.) Consider this shell script: ### $ cat shell-script-test.sh #!/bin/sh if true; do echo "My sh-basic-offset offset should be 2." fi for a in 1; do echo "My sh-basic-offset offset should be 2." done ### * In Emacs 23.3 (==> *expected behavior*): - emacs -title emacs-23.3 shell-script-test.sh - M-x sh-learn-buffer-indent RET - C-x b *indent* RET Switching to buffer *indent* shows: Indentation values for buffer shell-script-test.sh. 0 indentation variables have different values. Comments follow default indentation. Initial value of sh-basic-offset: 4 Suggested sh-basic-offset: 2 Learned variable settings: sh-indent-after-if 2 sh-indent-for-fi 0 sh-indent-after-loop-construct 2 sh-indent-for-done 0 sh-indent-comment t - Put point after first "then", hit RET and TAB (or C-j) - the new line is indented by 2 spaces (==> *expected behavior*) - Put point after first "echo" line, hit RET and TAB (or C-j) - the new line is indented by 2 spaces (==> *expected behavior*) * Emacs 24.1: - emacs -title emacs-24.1 -Q shell-script-test.sh - M-x sh-learn-buffer-indent RET Result: Message: Buffer is read-only: # Buffer *indent* exists but it is empty. Something is wrong, but indentation works as expected. - Put point after first "then", hit RET and TAB (or C-j) - the new line is indented by 2 spaces (==> *expected behavior*) - Put point after first "echo" line, hit RET and TAB (or C-j) - the new line is indented by 2 spaces (==> *expected behavior*) * Emacs 24.3.91: - emacs -title emacs-24.1 -Q shell-script-test.sh - M-x sh-learn-buffer-indent RET Message: Local rules set - Put point after first "then", hit RET (or C-j and TAB) [1] - the new line is indented by 4 spaces (==> *wrong behavior*) - Put point after first "echo" line, hitRET (or C-j and TAB) - the new line is indented by 4 spaces (==> *wrong behavior*) and the "echo" line is indented by 4 spaces (==> *wrong behavior*) In GNU Emacs 24.3.91.1 (i686-pc-mingw32) of 2014-05-12 on LEG570 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --enable-checking 'CFLAGS=-O0 -g3' CPPFLAGS=-DGLYPH_DEBUG=1' Important settings: value of $LANG: C.ISO-8859-1 locale-coding-system: cp1252 Bye, Reiner. [1] NEWS says: *** `electric-indent-mode' is now enabled by default. Typing RET reindents the current line and indents the new line. `C-j' inserts a newline but does not indent. In some programming modes, additional characters are electric (eg `{'). -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 20 11:48:35 2014 Received: (at 17818) by debbugs.gnu.org; 20 Jun 2014 15:48:35 +0000 Received: from localhost ([127.0.0.1]:54894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy13G-0004Pg-9R for submit@debbugs.gnu.org; Fri, 20 Jun 2014 11:48:34 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:5025) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy139-0004PK-QM for 17818@debbugs.gnu.org; Fri, 20 Jun 2014 11:48:28 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWFwwFCws0EhQYDSSIBAiuCaQQF456B4Q4BKkZgWqBcYFbIQ X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWFwwFCws0EhQYDSSIBAiuCaQQF456B4Q4BKkZgWqBcYFbIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="68784170" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 Jun 2014 11:48:18 -0400 Received: by pastel.home (Postfix, from userid 20848) id DE4F061711; Fri, 20 Jun 2014 11:48:17 -0400 (EDT) From: Stefan Monnier To: Reiner Steib Subject: Re: bug#17818: 24.3.91; sh-learn-buffer-indent doesn't learn current indent anymore Message-ID: References: <87ha3fy6lv.fsf@marauder.physik.uni-ulm.de> Date: Fri, 20 Jun 2014 11:48:17 -0400 In-Reply-To: <87ha3fy6lv.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Fri, 20 Jun 2014 16:54:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17818 Cc: 17818@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > in Emacs 24.3.91, `sh-learn-buffer-indent' doesn't seem to learn the > current indent rules of the buffer anymore. It worked correctly in > 23.3 and better in 24.1, see below. 24.4 uses SMIE, so the indentation rules are quite different and they don't obey all the sh-indent-* variables. Also the "learning" code uses SMIE's generic learning code which is brand new and hasn't seen much testing yet. So, there might be bugs at several levels: 1- setting sh-use-smie to nil should revert to the 24.3 behavior. This is just a stop-gap setting that will disappear in some future release (depending on how many bug reports we get about the SMIE code ;-). 2- If you set the sh-indent-* vars learned by the non-SMIE code, the SMIE code should indent as desired. 3- the generic SMIE learning code should behave about as well as the old sh-learn-buffer-indent (i.e. "poorly" in my opinion ;-). Stefan From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 20 12:27:36 2014 Received: (at control) by debbugs.gnu.org; 20 Jun 2014 16:27:36 +0000 Received: from localhost ([127.0.0.1]:54919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy1f1-0005NI-25 for submit@debbugs.gnu.org; Fri, 20 Jun 2014 12:27:35 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:55199) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy1eu-0005N0-EZ for control@debbugs.gnu.org; Fri, 20 Jun 2014 12:27:29 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giYBAQRWMws0EhQYDYgw0hkXjwEWhCIEqRmBaoFxgVsh X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giYBAQRWMws0EhQYDYgw0hkXjwEWhCIEqRmBaoFxgVsh X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="68799819" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 Jun 2014 12:27:18 -0400 Received: by pastel.home (Postfix, from userid 20848) id C944961711; Fri, 20 Jun 2014 12:27:18 -0400 (EDT) From: Stefan Monnier To: control@debbugs.gnu.org Subject: Re: bug#17818: 24.3.91; sh-learn-buffer-indent doesn't learn current indent anymore Message-ID: References: <87ha3fy6lv.fsf@marauder.physik.uni-ulm.de> Date: Fri, 20 Jun 2014 12:27:18 -0400 In-Reply-To: (Stefan Monnier's message of "Fri, 20 Jun 2014 11:48:17 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) severity 17818 important thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 20 17:10:52 2014 Received: (at 17818) by debbugs.gnu.org; 20 Jun 2014 21:10:52 +0000 Received: from localhost ([127.0.0.1]:55211 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy65E-0000Qu-AL for submit@debbugs.gnu.org; Fri, 20 Jun 2014 17:10:52 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:59937) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wy65C-0000Qh-OW for 17818@debbugs.gnu.org; Fri, 20 Jun 2014 17:10:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="68899959" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 Jun 2014 17:10:45 -0400 Received: by pastel.home (Postfix, from userid 20848) id D2F5661711; Fri, 20 Jun 2014 17:10:44 -0400 (EDT) From: Stefan Monnier To: Reiner Steib Subject: Re: bug#17818: 24.3.91; sh-learn-buffer-indent doesn't learn current indent anymore Message-ID: References: <87ha3fy6lv.fsf@marauder.physik.uni-ulm.de> Date: Fri, 20 Jun 2014 17:10:44 -0400 In-Reply-To: <87ha3fy6lv.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Fri, 20 Jun 2014 16:54:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17818 Cc: 17818@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > if true; do > echo "My sh-basic-offset offset should be 2." > fi The above "do" should be "then", right? I installed the patch below which fixes some of the problem (the first hunk fixes an incorrect guess and the second fixes the code so the guess is actually activated). Please confirm that the result is OK for your use case. Stefan === modified file 'lisp/emacs-lisp/smie.el' --- lisp/emacs-lisp/smie.el 2014-06-20 01:05:40 +0000 +++ lisp/emacs-lisp/smie.el 2014-06-20 21:07:06 +0000 @@ -2138,7 +2138,7 @@ nil (push (cons (+ offset (nth 2 sig)) sig) rules) ;; Adjust the rest of the data. - (pcase-dolist ((and cotrace `(,count ,toffset ,trace)) + (pcase-dolist ((and cotrace `(,count ,toffset . ,trace)) cotraces) (setf (nth 1 cotrace) (- toffset offset)) (dolist (sig trace) @@ -2167,15 +2167,14 @@ (cond ((null config) (message "Nothing to change")) ((null smie-config--buffer-local) - (message "Local rules set") - (setq smie-config--buffer-local config)) + (smie-config-local config) + (message "Local rules set")) ((y-or-n-p "Replace existing local config? ") (message "Local rules replaced") - (setq smie-config--buffer-local config)) + (smie-config-local config)) ((y-or-n-p "Merge with existing local config? ") (message "Local rules adjusted") - (setq smie-config--buffer-local - (append config smie-config--buffer-local))) + (smie-config-local (append config smie-config--buffer-local))) (t (message "Rules guessed: %S" config))))) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 23 12:05:05 2014 Received: (at 17818) by debbugs.gnu.org; 23 Jun 2014 16:05:05 +0000 Received: from localhost ([127.0.0.1]:58404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wz6jr-00024k-Hl for submit@debbugs.gnu.org; Mon, 23 Jun 2014 12:05:05 -0400 Received: from mail.uni-ulm.de ([134.60.1.11]:44753) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wz6jk-00024S-A8 for 17818@debbugs.gnu.org; Mon, 23 Jun 2014 12:04:58 -0400 Received: from localhost (localhost [127.0.0.1]) (authenticated bits=0) by mail.uni-ulm.de (8.14.9/8.14.7) with ESMTP id s5NG4oVL025382; Mon, 23 Jun 2014 18:04:50 +0200 (CEST) Received: from 10.196.208.71 (10.196.208.71 [10.196.208.71]) by imap.uni-ulm.de (Horde MIME library) with HTTP; Mon, 23 Jun 2014 18:04:50 +0200 Message-ID: <20140623180450.pgyd1ksywokgcs8s@imap.uni-ulm.de> Date: Mon, 23 Jun 2014 18:04:50 +0200 From: Reiner Steib To: Stefan Monnier Subject: Re: bug#17818: 24.3.91; sh-learn-buffer-indent doesn't learn current indent anymore References: <87ha3fy6lv.fsf@marauder.physik.uni-ulm.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.5) X-DCC-sonic.net-Metrics: poseidon; whitelist X-Virus-Scanned: by amavisd-new X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: 17818 Cc: 17818@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.9 (/) On Fri, 20 Jun 2014, Stefan Monnier wrote: >> if true; do >> echo "My sh-basic-offset offset should be 2." >> fi > > The above "do" should be "then", right? Sure, sorry. (I corrected it in my test-script, but not in the mail). > I installed the patch below which fixes some of the problem (the first > hunk fixes an incorrect guess and the second fixes the code so the guess > is actually activated). > > Please confirm that the result is OK for your use case. Works much better, thanks. However, I tested[1] the new code with the following script and found some incorrect indents (see diff below, hope the whitespace doesn't get changed). Bye, Reiner. [1] M-x sh-learn-buffer-indent RET, M-x mark-whole-buffer RET, M-x indent-region RET, M-x diff-buffer-with-file RET #!/bin/bash if true; then echo "My sh-basic-offset offset should be 2." fi for a in 1 2; do echo "My sh-basic-offset offset should be 2." done filter_1 () { tr -d '"' | awk -F\; '{ if ($7 =3D=3D 0 || $7 =3D=3D 1) { print $7 } ; \ print $5 "," $1 }' | grep -v "^," } filter_3 () { tr -d '"`' | tr '=09' ' ' | \ awk -F\; -f filter.awk | \ grep -v "^," | sort -t, -k2,2 } tail -q -n+2 assets-ws.csv | awk -F \; -f merge.awk \ <( cat file1.csv file2.csv ) - | \ filter_2 | $conv | \ sed -f a.sed | sort -t\; -k3,3 -k1,1 > w.csv # end --- shell-script-test.sh +++ # @@ -12,21 +12,21 @@ filter_1 () { tr -d '"' | - awk -F\; '{ if ($7 =3D=3D 0 || $7 =3D=3D 1) { print $7 } ; \ +awk -F\; '{ if ($7 =3D=3D 0 || $7 =3D=3D 1) { print $7 } ; \ print $5 "," $1 }' | - grep -v "^," +grep -v "^," } filter_3 () { tr -d '"`' | tr '=09' ' ' | \ - awk -F\; -f filter.awk | \ - grep -v "^," | sort -t, -k2,2 + awk -F\; -f filter.awk | \ +grep -v "^," | sort -t, -k2,2 } tail -q -n+2 assets-ws.csv | awk -F \; -f merge.awk \ - <( cat file1.csv file2.csv ) - | \ - filter_2 | $conv | \ - sed -f a.sed | sort -t\; -k3,3 -k1,1 > w.csv +=09=09=09=09=09 <( cat file1.csv file2.csv ) - | \ +=09=09=09=09=09 filter_2 | $conv | \ +=09=09=09=09=09 sed -f a.sed | sort -t\; -k3,3 -k1,1 > w.csv # end Diff finished. Mon Jun 23 17:56:00 2014 From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 24 09:50:07 2014 Received: (at 17818-done) by debbugs.gnu.org; 24 Jun 2014 13:50:07 +0000 Received: from localhost ([127.0.0.1]:59103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzR6s-0000iS-Ml for submit@debbugs.gnu.org; Tue, 24 Jun 2014 09:50:06 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:24239) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzR6q-0000hV-Un for 17818-done@debbugs.gnu.org; Tue, 24 Jun 2014 09:50:05 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ X-IPAS-Result: ArYGAIDvNVNLd+D9/2dsb2JhbABZgwaDSr0vgw6BFxd0giUBAQEBAgFWIwULCzQSFBgNJIgECNIZF456B4Q4BKkZgWqBcYFbIQ X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="69381108" Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 24 Jun 2014 09:49:58 -0400 Received: by pastel.home (Postfix, from userid 20848) id C07FF6036C; Tue, 24 Jun 2014 09:49:58 -0400 (EDT) From: Stefan Monnier To: Reiner Steib Subject: Re: bug#17818: 24.3.91; sh-learn-buffer-indent doesn't learn current indent anymore Message-ID: References: <87ha3fy6lv.fsf@marauder.physik.uni-ulm.de> <20140623180450.pgyd1ksywokgcs8s@imap.uni-ulm.de> Date: Tue, 24 Jun 2014 09:49:58 -0400 In-Reply-To: <20140623180450.pgyd1ksywokgcs8s@imap.uni-ulm.de> (Reiner Steib's message of "Mon, 23 Jun 2014 18:04:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 17818-done Cc: 17818-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) > However, I tested[1] the new code with the following script and found > some incorrect indents (see diff below, hope the whitespace doesn't > get changed). These aren't due to the guessing part, but the indentation code, so I'll deal with them in a separate report. Stefan From unknown Tue Jun 24 22:34:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 23 Jul 2014 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator