From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 07 12:25:07 2012 Received: (at submit) by debbugs.gnu.org; 7 Jun 2012 16:25:07 +0000 Received: from localhost ([127.0.0.1]:33724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1ScfVw-00045Q-Jn for submit@debbugs.gnu.org; Thu, 07 Jun 2012 12:25:07 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59902) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Scbdv-0005Bo-0L for submit@debbugs.gnu.org; Thu, 07 Jun 2012 08:16:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Scbbb-0005j8-2K for submit@debbugs.gnu.org; Thu, 07 Jun 2012 08:14:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:46776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Scbba-0005j4-Uu for submit@debbugs.gnu.org; Thu, 07 Jun 2012 08:14:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScbbV-0003jY-T0 for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 08:14:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ScbbL-0005hZ-4t for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 08:14:17 -0400 Received: from cse-971102.cse.chalmers.se ([129.16.22.136]:38116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ScbbK-0005h9-Qf for bug-gnu-emacs@gnu.org; Thu, 07 Jun 2012 08:14:07 -0400 Received: by cse-971102.cse.chalmers.se (Postfix, from userid 1000) id 2F7AC152E1D5; Thu, 7 Jun 2012 14:14:04 +0200 (CEST) From: Norman Ramsey To: bug-gnu-emacs@gnu.org Subject: 23.2; latex-close-block indenting \end{verbatim} incorrectly Date: Thu, 07 Jun 2012 14:14:04 +0200 Message-ID: <87haune2ur.fsf@cse-971102.cse.chalmers.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 07 Jun 2012 12:24:32 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) C-x C-f /tmp/foo.text Enter \begin{verbatim} RET SPC SPC SPC hello RET C-c C-e and the resulting \end{verbatim} is indented three spaces instead of in column 0 as it should be. The problem does not manifest with \begin{quote}. In GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-12-11 on brahms, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.10707000 configured using `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.2/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.2/leim' '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2' 'LDFLAGS=-g' 'CPPFLAGS='' 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: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: TeX Minor modes in effect: flyspell-mode: t shell-dirtrack-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-o b n { a r r y a y } { c } C-a C-x C-s C-n C-x 4 b i n t e r p s . t e C-g C-x 4 f p a p h o i t u l u p i n t t e C-s \ c a p t i o n C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-a C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-l C-p C-p C-SPC C-n M-w C-x o C-n C-n C-o C-o C-p C-p C-e \ \ C-y C-p M-f M-f _ 2 C-f C-f v _ 1 SPC \ o p l k u s M-d SPC C-a \ t r a n s i t i o n SPC { C-e M-b M-b M-b M-f C-a M-f M-f C-f C-f M-f M-f M-f M-e C-p C-p C-p C-p C-p C-p C-p C-p C-p C-p C-e SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC SPC { v , SPC \ s t a c k , SPC r h o \ r h o \ SPC , SPC \ s i g m a } \ \ C-c C-e C-a C-c C-e C-p C-p C-p C-a C-n C-c C-e C-p C-p C-p SPC SPC SPC C-a C-n C-c C-e C-h k C-c C-e M-x r e p o r Recent messages: Starting new Ispell process [american] ... Mark saved where search started Mark set Ispell process killed Starting new Ispell process [american] ... Mark set Auto-saving...done Auto-saving...done Type C-x 4 C-o RET to restore the other window. Making completion list... Load-path shadows: /usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-font-lock /usr/share/emacs/site-lisp/haskell-mode/haskell-indentation hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-indentation /usr/share/emacs/site-lisp/haskell-mode/inf-haskell hides /usr/share/emacs/23.2/site-lisp/haskell-mode/inf-haskell /usr/share/emacs/site-lisp/haskell-mode/haskell-mode hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-mode /usr/share/emacs/site-lisp/haskell-mode/haskell-hugs hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-hugs /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-site-file /usr/share/emacs/site-lisp/haskell-mode/haskell-cabal hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-cabal /usr/share/emacs/site-lisp/haskell-mode/ghc-core hides /usr/share/emacs/23.2/site-lisp/haskell-mode/ghc-core /usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-decl-scan /usr/share/emacs/site-lisp/haskell-mode/haskell-doc hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-doc /usr/share/emacs/site-lisp/haskell-mode/haskell-c hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-c /usr/share/emacs/site-lisp/haskell-mode/haskell-indent hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-indent /usr/share/emacs/site-lisp/haskell-mode/haskell-ghci hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-ghci /usr/share/emacs/site-lisp/haskell-mode/haskell-simple-indent hides /usr/share/emacs/23.2/site-lisp/haskell-mode/haskell-simple-indent /usr/share/emacs/23.2/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup ~nr/emacs/noweb-mode hides /usr/share/emacs/site-lisp/noweb-mode ~nr/emacs/longlines hides /usr/share/emacs/23.2/lisp/longlines ~nr/emacs/mwheel hides /usr/share/emacs/23.2/lisp/mwheel /usr/share/emacs23/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/23.2/lisp/textmodes/flyspell /usr/share/emacs23/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/23.2/lisp/textmodes/ispell Features: (shadow sort mail-extr message sendmail ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug latexenc debug help-mode view skeleton multi-isearch sml-menus sml-mode cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs haskell-font-lock haskell-decl-scan haskell-doc haskell-indentation haskell-indent haskell-mode byte-opt bytecomp byte-compile pp haskell-cabal dired sh-script executable caml vc-git vc-hg flyspell ispell tex-mode regexp-opt shell desktop darcsum easymenu add-log rect assoc scroll-in-place noweb derived easy-mmode cl cl-19 multi-mode advice help-fns advice-preload imenu compile comint ring edmacro kmacro tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 13 10:00:41 2012 Received: (at 11646-done) by debbugs.gnu.org; 13 Jun 2012 14:00:41 +0000 Received: from localhost ([127.0.0.1]:40955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Seo7k-0008TC-IK for submit@debbugs.gnu.org; Wed, 13 Jun 2012 10:00:40 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:42440) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Seo7i-0008T5-8s for 11646-done@debbugs.gnu.org; Wed, 13 Jun 2012 10:00:39 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FxIKb/2dsb2JhbABEDrA6g0mBCIIVAQEEAVYjBQsLDiYSFBgNJIgcBboJkEQDozOBWIIwVQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="191285584" Received: from 69-196-130-155.dsl.teksavvy.com (HELO pastel.home) ([69.196.130.155]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 13 Jun 2012 09:57:48 -0400 Received: by pastel.home (Postfix, from userid 20848) id 761E758B20; Wed, 13 Jun 2012 09:57:47 -0400 (EDT) From: Stefan Monnier To: Norman Ramsey Subject: Re: bug#11646: 23.2; latex-close-block indenting \end{verbatim} incorrectly Message-ID: References: <87haune2ur.fsf@cse-971102.cse.chalmers.se> Date: Wed, 13 Jun 2012 09:57:47 -0400 In-Reply-To: <87haune2ur.fsf@cse-971102.cse.chalmers.se> (Norman Ramsey's message of "Thu, 07 Jun 2012 14:14:04 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11646-done Cc: 11646-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) > C-x C-f /tmp/foo.text I presume you meant "foo.tex" ;-) > Enter > \begin{verbatim} RET SPC SPC SPC hello RET C-c C-e > and the resulting \end{verbatim} is indented three spaces instead of in > column 0 as it should be. > The problem does not manifest with \begin{quote}. Yes, verbatim is special in LaTeX, and hence so it is in latex-mode. The bug actually seems to require you be at EOB when hitting C-c C-e. I've installed the patch below which seems to fix the root cause. Stefan === modified file 'lisp/textmodes/tex-mode.el' --- lisp/textmodes/tex-mode.el 2012-04-16 23:57:09 +0000 +++ lisp/textmodes/tex-mode.el 2012-06-13 13:55:17 +0000 @@ -2686,7 +2686,9 @@ "Syntax table used while computing indentation.") (defun latex-indent (&optional arg) - (if (and (eq (get-text-property (line-beginning-position) 'face) + (if (and (eq (get-text-property (if (and (eobp) (bolp)) + (max (point-min) (1- (point))) + (line-beginning-position)) 'face) 'tex-verbatim)) 'noindent (with-syntax-table tex-latex-indent-syntax-table From unknown Sat Sep 06 21:08:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 12 Jul 2012 11:24:03 +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