From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#27815: 26.0.50; Misindentation in cl-labels Date: Tue, 25 Jul 2017 03:56:28 +0000 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a1140541894714f05551c51d9" X-Trace: blaine.gmane.org 1500955037 23263 195.159.176.226 (25 Jul 2017 03:57:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Jul 2017 03:57:17 +0000 (UTC) To: 27815@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 25 05:57:12 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZqy2-0005Ym-0a for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Jul 2017 05:57:06 +0200 Original-Received: from localhost ([::1]:58286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZqy7-0000Ua-Q4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Jul 2017 23:57:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38925) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZqy0-0000UH-Kk for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2017 23:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZqxy-00010r-TQ for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2017 23:57:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52251) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZqxy-00010a-PY for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2017 23:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dZqxy-0004aa-3t for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2017 23:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jul 2017 03:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27815 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.150095501417623 (code B ref -1); Tue, 25 Jul 2017 03:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jul 2017 03:56:54 +0000 Original-Received: from localhost ([127.0.0.1]:54928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZqxq-0004aA-9V for submit@debbugs.gnu.org; Mon, 24 Jul 2017 23:56:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZqxo-0004Zx-NM for submit@debbugs.gnu.org; Mon, 24 Jul 2017 23:56:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZqxh-0000mN-Jm for submit@debbugs.gnu.org; Mon, 24 Jul 2017 23:56:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:45513) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dZqxh-0000m8-Ft for submit@debbugs.gnu.org; Mon, 24 Jul 2017 23:56:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZqxf-0000Tt-I3 for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2017 23:56:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZqxe-0000kx-0Y for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2017 23:56:43 -0400 Original-Received: from mail-lf0-x22a.google.com ([2a00:1450:4010:c07::22a]:35738) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZqxd-0000kT-Ky for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2017 23:56:41 -0400 Original-Received: by mail-lf0-x22a.google.com with SMTP id t128so21387738lff.2 for ; Mon, 24 Jul 2017 20:56:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=nzYT7YvR/NtydXBLbPMGDa812e6ASBLVAFoJKBHO0SY=; b=Xl9/cZ3nOd3kwikJ9YFhZh3LqCcs0LtTtNpnkyYOo/UOxxlR//Ty+C1cA8/5mEd4tk D05FlomJZF51/KhQVQlTEMnNR58vvoLTESPO1+1Yus/rTTj5GKjnr6aV/gyo2velYye9 SZoYpKeofGEcpR5SFehmrizfEAGmHkGTDBx/5uREKwTuOok695CzJ/YFDaZTbkehfgna ZNkAIAXt+93UERvWo/E9BURFSGbO1kQEiAWwZDE5tfo6zLyZrcwqwRz39QnXUi++pWdB vDvIpkPTjUqZRGjomfxiw6zK4oXN6Ejdqjuow0TrzA62ADdKwAKOaaGXmlIV6LW2fzdq aMPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=nzYT7YvR/NtydXBLbPMGDa812e6ASBLVAFoJKBHO0SY=; b=eFsCtEzNrudvz8aByx3EYclkxlDDL+tgxjOpyA8WrxfzJy2jqX8FAFRM4zQtbZnTCL 7ZPPFXVuKy23jWiPNkcll1pOe0U+PWNEqpJWa+1pM8PrGB6bGm/4YJhv6DlAyp9yDEOd Dbn/t1ttxW1l6VZMqFE9ZG928YStJHUJBlHXzRXPNtlUk6pUdurfqmu3YPFARZTsVjHr wxw12Sp+Y3s5U/lc3W9A1xwiUuk1bvcgQgv30ywwrwTJQ0jo1dViLgZ2M9fwSxaP8eFA LlU9QXsfzuyh4mcOcbe0Yfuz7GPGp9LruVXlOoKWtxFKJyYj5wkNmMfn1uT+0cHJx6Pp IgGA== X-Gm-Message-State: AIVw11244VzmdH+TzST0R+jLp8T2THLmrE1PYIsWc4L7O/6FejAGr0Nj tuuvzGN8rW1FOmMUv62k02/5GkOu+g== X-Received: by 10.25.77.83 with SMTP id a80mr5494625lfb.121.1500954999679; Mon, 24 Jul 2017 20:56:39 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:134954 Archived-At: --001a1140541894714f05551c51d9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, I am able to reproduce with mis-indentation on emacs -Q: Here is an example code: (require 'cl-lib) (cl-labels ((categoryp (tag) (string-match-p "\\`@" tag))) (categoryp "@a")) Above is the result of selecting the whole code and C-M-\ (indent-region). Notice that the body of `categoryp' gets indented by the name of that fn. In GNU Emacs 26.0.50 (build 15, x86_64-pc-linux-gnu, GTK+ Version 2.24.23) of 2017-07-24 Repository revision: 6dc5d45c542a6f9cfbcf3e37d597c9e0efb3070d Windowing system distributor 'The X.Org Foundation', version 11.0.60900000 System Description: Red Hat Enterprise Linux Workstation release 6.6 (Santiago) Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [3 times] Indenting region...done Mark set [2 times] Indenting region...done Entering debugger... custom-initialize-reset: Symbol=E2=80=99s function definition is void: cl-l= abels Quit cl-lib 0 (#o0, #x0, ?\C-@) Configured using: 'configure --with-modules --prefix=3D/home/kmodi/usr_local/apps/6/emacs/master '--program-transform-name=3Ds/^ctags$/ctags_emacs/' 'CPPFLAGS=3D-I/home/kmodi/usr_local/6/include -I/usr/include/freetype2 -I/usr/include' 'CFLAGS=3D-ggdb3 -O0' 'CXXFLAGS=3D-ggdb3 -O0' 'LDFLAGS=3D-L/home/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64 -ggdb3' PKG_CONFIG_PATH=3D/home/kmodi/usr_local/6/lib/pkgconfig:/home/kmodi/usr_lo= cal/6/lib64/pkgconfig:/cad/adi/apps/gnu/linux/x86_64/6/lib/pkgconfig:/cad/a= di/apps/gnu/linux/x86_64/6/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib64/pk= gconfig:/usr/share/pkgconfig:/lib/pkgconfig:/lib64/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 MODULES Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dnone locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t 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: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config 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 cl-macs help-mode easymenu cl-print byte-opt gv bytecomp byte-compile cl-loaddefs cl-lib cconv debug 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 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 100309 6762) (symbols 48 20992 1) (miscs 40 55 130) (strings 32 29883 1489) (string-bytes 1 810929) (vectors 16 15235) (vector-slots 8 511039 7728) (floats 8 51 320) (intervals 56 294 4) (buffers 992 12) (heap 1024 40368 949)) --=20 Kaushal Modi --001a1140541894714f05551c51d9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I am able to reproduc= e with mis-indentation on emacs -Q:

Here is an exa= mple code:

(require 'cl-lib)
(c= l-labels ((categoryp (tag)=C2=A0
= =C2=A0 =C2=A0 =C2=A0 (string-match-p "\\`@" tag)))
=C2=A0 (categoryp "@a&q= uot;))

Above is the result of selecting the = whole code and C-M-\ (indent-region).=C2=A0 Notice that the body of `catego= ryp' gets indented by the name of that fn.

In = GNU Emacs 26.0.50 (build 15, x86_64-pc-linux-gnu, GTK+ Version 2.24.23)
=C2=A0of 2017-07-24=C2=A0
Repository revision: 6dc5d45c542= a6f9cfbcf3e37d597c9e0efb3070d
Windowing system distributor 'T= he X.Org Foundation', version 11.0.60900000
System Descriptio= n: Red Hat Enterprise Linux Workstat= ion release 6.6 (Santiago)

Recent messages:
<= div>For information about GNU Emacs and the GNU system, type C-h C-a.
=
Mark set [3 times]
Indenting region...done
Mark se= t [2 times]
Indenting region...done
Entering debugger..= .
custom-initialize-reset: Symbol=E2=80=99s function definition i= s void: cl-labels
Quit
cl-lib
0 (#o0, #x0, ?\= C-@)
Configured using:
=C2=A0'configure --with-modu= les
=C2=A0--prefix=3D/home/kmodi/usr_local/apps/6/emacs/master
=C2=A0'--program-transform-name=3Ds/^ctags$/ctags_emacs/'
=C2=A0'CPPFLAGS=3D-I/home/kmodi/usr_local/6/include -I/usr/inc= lude/freetype2
=C2=A0-I/usr/include' 'CFLAGS=3D-ggdb3 -O0= ' 'CXXFLAGS=3D-ggdb3 -O0'
=C2=A0'LDFLAGS=3D-L/hom= e/kmodi/usr_local/6/lib -L/home/kmodi/usr_local/6/lib64
=C2=A0-gg= db3'
=C2=A0PKG_CONFIG_PATH=3D/home/kmodi/usr_local/6/lib/pkgc= onfig:/home/kmodi/usr_local/6/lib64/pkgconfig:/cad/adi/apps/gnu/linux/x86_6= 4/6/lib/pkgconfig:/cad/adi/apps/gnu/linux/x86_64/6/lib64/pkgconfig:/usr/lib= /pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:/lib/pkgconfig:/lib64/= pkgconfig'

Configured features:
XPM = JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE LIBOTF XFT ZLIB
TOOLKIT_= SCROLL_BARS GTK2 X11 MODULES

Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMOD= IFIERS: @im=3Dnone
=C2=A0 locale-coding-system: utf-8-unix
<= div>
Major mode: Lisp Interaction

Mi= nor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 glob= al-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-i= ndent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-ba= r-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shad= ow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-= lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-co= mposition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0= auto-compression-mode: t
=C2=A0 line-number-mode: t
= =C2=A0 transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow s= ort mail-extr emacsbug message subr-x puny seq dired
dired-loadde= fs format-spec rfc822 mml mml-sec password-cache epa derived
epg = epg-config 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 cl-macs
help-mode easymenu cl-print byte-opt gv bytecomp byte-compile
c= l-loaddefs cl-lib cconv debug time-date mule-util tooltip eldoc
e= lectric 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 fri= nge
tabulated-list replace newcomment text-mode elisp-mode lisp-m= ode
prog-mode register page menu-bar rfn-eshadow isearch timer se= lect
scroll-bar mouse jit-lock font-lock syntax facemenu font-cor= e
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-= lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-m= s cp51932
hebrew greek romanian slovak czech european ethiopic in= dian cyrillic
chinese composite charscript charprop case-table ep= a-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-pre= loaded nadvice loaddefs
button faces cus-face macroexp files text= -properties overlay sha1 md5
base64 format env code-pages mule cu= stom widget hashtable-print-readable
backquote dbusbind inotify d= ynamic-setting system-font-setting
font-render-setting move-toolb= ar gtk x-toolkit x multi-tty
make-network-process emacs)

Memory information:
((conses 16 100309 6762)
=C2=A0(symbols 48 20992 1)
=C2=A0(miscs 40 55 130)
=C2=A0(strings 32 29883 1489)
=C2=A0(string-bytes 1 810929)
=C2=A0(vectors 16 15235)
=C2=A0(vector-slots 8 511039 772= 8)
=C2=A0(floats 8 51 320)
=C2=A0(intervals 56 294 4)
=C2=A0(buffers 992 12)
=C2=A0(heap 1024 40368 949))

--

Kaushal Modi

--001a1140541894714f05551c51d9--