From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Volker =?UTF-8?Q?Wei=C3=9Fmann?= Newsgroups: gmane.emacs.bugs Subject: bug#36617: 26.1; Indentation depends on earlier file contents Date: Fri, 12 Jul 2019 13:50:23 +0200 Message-ID: <198b5203-979e-d420-8c40-23bc7905728a@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="181437"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 To: 36617@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 16:13:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hlwIQ-000l3E-LA for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 16:13:10 +0200 Original-Received: from localhost ([::1]:49810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlwIP-0008MR-Ji for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Jul 2019 10:13:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38125) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlwIM-0008MD-Ct for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 10:13:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlwIK-0002cF-OK for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 10:13:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59853) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlwIK-0002c4-GQ for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 10:13:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlwIK-0007O2-Bd for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 10:13:04 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Volker =?UTF-8?Q?Wei=C3=9Fmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Jul 2019 14:13:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36617 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.156294075728352 (code B ref -1); Fri, 12 Jul 2019 14:13:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jul 2019 14:12:37 +0000 Original-Received: from localhost ([127.0.0.1]:40440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlwHs-0007NE-VD for submit@debbugs.gnu.org; Fri, 12 Jul 2019 10:12:37 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hlu4S-0003qC-6t for submit@debbugs.gnu.org; Fri, 12 Jul 2019 07:50:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57320) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlu4Q-0006si-Kj for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 07:50:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlu4P-00006i-AL for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 07:50:34 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:42017) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlu4O-0008U0-Ti for bug-gnu-emacs@gnu.org; Fri, 12 Jul 2019 07:50:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1562932225; bh=jYd9etlAhIVDrs8wqJlbD2QZ1kmOiykiKK2x14fKq2w=; h=X-UI-Sender-Class:To:Subject:From:Date; b=KzAx9Q/+SRuj6Vecx2AekgNfRrfX/4P24iGa8qNI0dGMMLgTdQp9wCvNhBrjXvcUg oSq+tI4dD+Yiw6Fg1t09gzUQgV2aNUFR04ke21kmcJFVn2JFuZv3o0gnA38tXTsoYP BFJ9WHIQjRQYWzFFXgUW+hfCfMLJ2DrQkxDrdZmw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [129.69.125.24] ([129.69.228.125]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Ld1CS-1iCPCK3dCq-00iCQa for ; Fri, 12 Jul 2019 13:50:24 +0200 Content-Language: en-US X-Provags-ID: V03:K1:ksU7q6TpGJCR6tgrAAFwIOGUXh2qwz9YNbv3KcwUCB03hujxSdz f8CETAMWJBCjWLjyLQ1aumLRg01s4dggM+qCmP+lGOzzP5mOHNuJi0+h8q/viDJ1MbQBEav n2P45PmxqqtneqJ2nG1pNpc4a7vFU9tt9Qzvc7+q1u8ovEX0v5ulkMlLwKRnw1BLegiFy/F jy7rsaeLrYBkAQnACuzyQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:VrsZO1NPh1w=:LUxiw2kilSQs/d6cla5xtk fSukZI7CP+CWcKbWf7Jtt6Z7w+L2JagS2sdDM17L6E6uu5JwVZSZgj4ZbgTJJwb6Fss7azD66 7qPD2jXICT4xACH7HsRD6T/EcMd+lA6DfA+vzAgeBFk/0CUTuaIzgodpQ7XNpHvaLmSOxy7sG MtkJu6TGtK+sX6syKMUkbUKwBkk78ODIMm6es6UTW8hjMm7NgsFkzMp/B5c64n5nvS70xvEev r8gqufTYD57PuRSRwLwyuKom/kqEE32NCbJIEcqy/RIDU4HGGlwPiDGbgT05jV7KRQC9KL//k 636wnz4vUWIzWLHosq90iOjpvUReVgLc/agLwFKkQyoRO1VBUaprd70vKXswVIeuuV2oKXpLn vKg+FgFf76Yc5OnkC84hIIEnC6TlTFyXUq0ksjvbXKKOpkgDFdXTFGFwsQzjCPSwWs+/2+/5v lQceBRd2dGOoGQPSTNJqiXGIcecOhZArL1B+1P3mu2iWGvaWXHKE8ZcJ8lylW5+3hdsqlDqZ8 g2LU2qyLJLXg6rXZMsUeseJv1c4aiPLBEYYQGeIhn8je8TsZTLC8hyx3tHrDhB9DW4G/SpV6O bCH+pfPLfChklrEHw2uKeRsceU5bP84j3g8Ji6STdoxAT3jdoMi1b+XYbn/9lW5xVbgj8ffv4 gqGyrQpYpxVaYK8YRdw7Bym+bu5IIm6T7I2IvH4a8GhTmVrBC8rwi4zTs7P63bnctTZqqr6eU 8r5rg213pz5eMn7Q+7jKGrvu5EWiZVYbWhMs7bCDmTlYWd2zaM536fSVToMEc31N+89fFVpe X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Mailman-Approved-At: Fri, 12 Jul 2019 10:12:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:162769 Archived-At: How to reproduce: 1. Create the emtpy file "a.tex" 2. Create the file "b.tex" with $\frac{a}{b}$ in it 3. Put (electric-pair-mode) in your emacs init. 4. Open "a.tex". Type "{" and press enter. Your result should look like this: { | } ("|" marks the cursor Position) 5. Open "b.tex". Delete the hole text, type "{" and press enter. Your result should look like this: $\frac{a}{b}$ { | } ("|" marks the cursor Position) Explanation why this is a bug and not a feature: Indentation in 4. and 5. should be the same, but they are different. If you fix this bug, please create an option to get the behavior in 5. In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.7) of 2019-04-11, modified by Debian built on lcy01-amd64-021 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Ubuntu 19.04 Recent messages: Loading /etc/emacs/site-start.d/50latex-cjk-thai.el (source)...done Loading /etc/emacs/site-start.d/50texlive-lang-english.el (source)...done Loading /home/volker/Nextcloud/DatenVolker/workenv/emacs/init...done For information about GNU Emacs and the GNU system, type C-h C-a. b.tex has auto save data; consider M-x recover-this-file user-error: Beginning of history; no preceding item Making completion list... user-error: Beginning of history; no preceding item user-error: End of history; no default available delete-backward-char: Text is read-only Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr =2D-sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib =2D-localstatedir=3D/var/lib --infodir=3D/usr/share/info =2D-mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes =2D-enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lis= p:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/sh= are/emacs/site-lisp =2D-with-sound=3Dalsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib =2D-libexecdir=3D/usr/lib --localstatedir=3D/var/lib =2D-infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystem= d =2D-with-pop=3Dyes =2D-enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.1/site-lis= p:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/sh= are/emacs/site-lisp =2D-with-sound=3Dalsa --without-gconf --with-mailutils --with-x=3Dyes =2D-with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs-cQxEw2/emacs-26.1+1=3D. -fstack-protector-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' 'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_MONETARY: de_DE.UTF-8 value of $LC_NUMERIC: de_DE.UTF-8 value of $LC_TIME: de_DE.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: TeX Minor modes in effect: shell-dirtrack-mode: t electric-pair-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: /usr/share/emacs/site-lisp/latex-cjk-thai/thai-word hides /usr/share/emacs/26.1/lisp/language/thai-word Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils tex-mode compile shell pcomplete comint ansi-color ring latexenc elec-pair finder-inf edmacro kmacro info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 136219 9467) (symbols 48 24157 1) (miscs 40 49 151) (strings 32 43902 1327) (string-bytes 1 1256756) (vectors 16 19150) (vector-slots 8 548060 6348) (floats 8 58 307) (intervals 56 296 0) (buffers 992 13))