From unknown Sat Jun 21 10:38:42 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#32120 <32120@debbugs.gnu.org> To: bug#32120 <32120@debbugs.gnu.org> Subject: Status: 26.1; In python.el tab-width should default to 4 Reply-To: bug#32120 <32120@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:38:42 +0000 retitle 32120 26.1; In python.el tab-width should default to 4 reassign 32120 emacs submitter 32120 Carlos Pita severity 32120 wishlist tag 32120 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 10 18:05:39 2018 Received: (at submit) by debbugs.gnu.org; 10 Jul 2018 22:05:39 +0000 Received: from localhost ([127.0.0.1]:54400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd0lP-0004px-6G for submit@debbugs.gnu.org; Tue, 10 Jul 2018 18:05:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fd0lN-0004pk-Km for submit@debbugs.gnu.org; Tue, 10 Jul 2018 18:05:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fd0lH-0004MQ-43 for submit@debbugs.gnu.org; Tue, 10 Jul 2018 18:05:32 -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, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:51941) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fd0lH-0004MI-0I for submit@debbugs.gnu.org; Tue, 10 Jul 2018 18:05:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fd0lF-0000Vg-7l for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:05:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fd0lB-0004KZ-Tn for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:05:29 -0400 Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]:42294) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fd0lB-0004K3-K9 for bug-gnu-emacs@gnu.org; Tue, 10 Jul 2018 18:05:25 -0400 Received: by mail-qt0-x22b.google.com with SMTP id z8-v6so11260026qto.9 for ; Tue, 10 Jul 2018 15:05:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=2NttSigEhWpvNLJxQkDrAeLwOroC87G011yFSx42d9g=; b=Fl3sAxck6lJ6SJ7IpNFBRIs6HudhaN140ohm0+VHtnNvlnIYGbUqF4z5KnpcZLKj4Q pQ3S5XcaJUvsMsCZQzpAN6PWmLyr/HETQvFCEC734qX71B3WSNCgLlc4oP9NKXIUC3Jp LGs8M5sEis8gAw/r6KlC8b37GOWjUlnTEtgw6gS+06nx1f3Tnjh6ax6LWUzOmu6oKHxD Jh4lAh4kwWMMxwPY95efKwhMFHzAq8z5ajGXttOioj7DgTf62JeP53P/y4OUI2wRxjcD zaqgK0gZDOLUsM9XwcSIEZnXsskiVllBqtH6R2f0T13tpVgbgNAaDRsv3tgpSr+5NMj9 0gPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=2NttSigEhWpvNLJxQkDrAeLwOroC87G011yFSx42d9g=; b=fAJTFINF+WdJFg0tIh2UXUjdxF/nSlmTsEd8h/TIY+AMMeca13U4ViSD7OVbREmVnF m+ox1YS0YU0r3G9y+Ikmz2b7MH403cLVOK7Kc7/kH+aAMLxyTbpqTX6i+laUIzLlHj/p 11aYSC+VlLL+02Xlh6Xs9u7pJuByMfYmGYPuAxOublZN5DdwV8AK1/9NRdi1tO+jtpmK PZuZ1XCk4VsdbOjNdaKqgMlf0qi8dph/GRXMsdlxc2db8Iu1bN+vzDv7OCE/cyCW3TV4 lFpWBIM9HBhGlJ1YDTthMijvwbfw5eVsA5nUbjzMeVbqGB4R/uE8Z5rt8PVDoYQw5DWv OWtA== X-Gm-Message-State: APt69E3a0Ou8Hn9vc5yfOfJH7vm3W67+/ZvGQE+3E5dOZ/wmEb4Pu2Pl 4LOHmo+hU23UrJ+AoT8ojjvVtg== X-Google-Smtp-Source: AAOMgpcwD6JeTj0l3qEWssvuvx/QQM53t/BhMdL0Sj+hT4g7MOSgBu4knoOpxy6G4ym9xjAn5sQ2fg== X-Received: by 2002:ac8:95a:: with SMTP id z26-v6mr24951265qth.211.1531260324734; Tue, 10 Jul 2018 15:05:24 -0700 (PDT) Received: from carlos ([190.2.33.33]) by smtp.gmail.com with ESMTPSA id f97-v6sm1501726qtb.39.2018.07.10.15.05.23 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 10 Jul 2018 15:05:23 -0700 (PDT) From: Carlos Pita To: bug-gnu-emacs@gnu.org Subject: 26.1; In python.el tab-width should default to 4 Date: Tue, 10 Jul 2018 19:05:01 -0300 Message-ID: <87d0vu3fxu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain 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-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -5.0 (-----) Most python source code uses a tab step of 4 spaces. I think it doesn't make a lot of sense to default tab-width to 4. Maybe there is a reason I'm failing to grasp. --- In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-05-29 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Manjaro Linux Recent messages: Undo! Redo! Undo! [2 times] user-error: No further undo information [7 times] (No changes need to be saved) Undo! Mark saved where search started apply: Buffer is read-only: # funcall-interactively: Buffer is read-only: # Mark saved where search started [2 times] Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_MONETARY: es_AR.UTF-8 value of $LC_NUMERIC: es_AR.UTF-8 value of $LC_TIME: es_AR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: display-line-numbers-mode: t flymake-mode: t pyvenv-mode: t shell-dirtrack-mode: t diff-auto-refine-mode: t xclip-mode: t winner-mode: t show-paren-mode: t ido-ubiquitous-mode: t ido-everywhere: t global-company-mode: t company-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-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-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail noutline outline jka-compr cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs eieio-opt speedbar sb-image dframe pandoc-mode-utils dash semantic/format ezimage semantic/tag-ls semantic/ctxt semantic/dep semantic/find semantic/wisent/python-wy semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local find-func cedet rx misearch multi-isearch autoload lisp-mnt pp cl-print display-line-numbers checkdoc cl-extra yasnippet elec-pair highlight-indentation flymake-proc flymake warnings help-fns radix-tree help-mode elpy find-file-in-project ivy delsel colir color ivy-overlay ffap thingatpt elpy-shell pyvenv esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util elpy-profile elpy-django elpy-refactor subr-x python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time format-spec advice json map grep compile comint ansi-color files-x doom-themes-org windmove vc-git diff-mode easy-mmode company-oddmuse company-keywords company-etags etags xref project company-gtags company-dabbrev-code company-dabbrev company-files company-capf company-cmake company-xcode company-clang company-semantic company-eclim company-template company-bbdb doom-tomorrow-night-theme doom-themes doom-themes-common xclip winner ring paren ido-completing-read+ memoize s cus-edit minibuf-eldef ido gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr wid-edit company edmacro kmacro pcase cus-start cus-load finder-inf 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 server 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 842499 39143) (symbols 48 42525 1) (miscs 40 2367 341) (strings 32 94216 4085) (string-bytes 1 2809306) (vectors 16 71900) (vector-slots 8 1835729 170938) (floats 8 444 224) (intervals 56 5089 98) (buffers 992 29)) From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 05:33:34 2018 Received: (at 32120) by debbugs.gnu.org; 11 Jul 2018 09:33:34 +0000 Received: from localhost ([127.0.0.1]:54724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdBV8-0006XW-9h for submit@debbugs.gnu.org; Wed, 11 Jul 2018 05:33:34 -0400 Received: from mail-wr1-f41.google.com ([209.85.221.41]:42114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdBV6-0006XJ-Ac for 32120@debbugs.gnu.org; Wed, 11 Jul 2018 05:33:32 -0400 Received: by mail-wr1-f41.google.com with SMTP id p1-v6so17426787wrs.9 for <32120@debbugs.gnu.org>; Wed, 11 Jul 2018 02:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version; bh=bJnrudB73CTheVc1nY4Ih3lOrUPeOwVl3CbyKciReJA=; b=RILTYSJLfYshyT/2wJAuVC0KsnJWZaiozKFG7CRO18h5kkKqCDWu87tivGqdrtZqSs XcPuKrytZqjtnFzD8yjjsrB9wz0iaQdw0VsXt1pFVZZnNRicZnJCRKVqLOdivntCczlH 9ZwDwyANIZX/bTdfLi+rG/NXSWkrHQ9WrE5DcwA7eoKP3rRo9Ye9Zp9fYuHVp+3RKuJv 5bZ4xscCY9SFkwXSD8WfnLASbphB5hhr8R2S7uAet3brhcmsw6xxGCC5aOqisFor4Ai+ NNVOuzl7jT1F+G99wrvhy1j197XcvMr45vxkPyoxBMQILgFfFDtY9HCNM4Whplw+/Q7T 5hUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version; bh=bJnrudB73CTheVc1nY4Ih3lOrUPeOwVl3CbyKciReJA=; b=jF6pMbdj7GkuSARw3wNgCOrnBOwOGWHD7YRvqq5MXJhdJDeJqOqcJmQHB7SNBO9Bm7 AlQXw0RhjaivgqUhT3YXBTO4FwBHVn24AgMrmSc64NgzS96vqaC24UYnS+jMhVYXMyOa x4Mh7FpSnc4sqPuf+320XW/vR4jKvNYyWiPSRQDWaVamU3ODJFdeaqKAmNFfEqmWRfag H4lG4IQ3enb7yUnyG0b150rSZa+uW6J0yYp4pP/0G+mgLRP5qSLdGmxTrt9TJalzxyrb U0ATTgvmkCJY0S+UnR3YSd4lfT/WQvFH0jQ6V5Rj/m3ZnbXy4svNQ0fQ2l3JGMwY+B3f lo3A== X-Gm-Message-State: AOUpUlE9RZ6n9qliYzEvfGGuvttIIti9xIR3o6oglvlxlhKaCf59g2ap X8AmMLTJE32Z3eI02KsL7Iy5m7op27A= X-Google-Smtp-Source: AAOMgpeOkjTGmQW0Ev1kbQ1PZTG4eBKnhT62q5aew8kca+jIj1M+iuEi6GmlIxxhlsqxUc6Rz8RVPA== X-Received: by 2002:adf:9a55:: with SMTP id z79-v6mr679339wrb.153.1531301606101; Wed, 11 Jul 2018 02:33:26 -0700 (PDT) Received: from rpluim ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id x7-v6sm642270wre.94.2018.07.11.02.33.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Jul 2018 02:33:25 -0700 (PDT) From: Robert Pluim To: Carlos Pita Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 References: <87d0vu3fxu.fsf@gmail.com> X-Debbugs-No-Ack: yes Mail-Copies-To: never Gmane-Reply-To-List: yes Date: Wed, 11 Jul 2018 11:33:24 +0200 In-Reply-To: <87d0vu3fxu.fsf@gmail.com> (Carlos Pita's message of "Tue, 10 Jul 2018 19:05:01 -0300") Message-ID: <87sh4qjevv.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32120 Cc: 32120@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Carlos Pita writes: > Most python source code uses a tab step of 4 spaces. This: >I think it doesn't > make a lot of sense to default tab-width to 4. is in contrast with the bug title, which is tab-width should default to 4 python.el defaults tab-width to 8, but sets indent-tabs-mode to nil, and uses an indent of 4 for me from emacs -Q (by using python-indent-offset autodetection). What would you like changed? Regards Robert From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 09:50:58 2018 Received: (at 32120) by debbugs.gnu.org; 11 Jul 2018 13:50:58 +0000 Received: from localhost ([127.0.0.1]:54830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdFWE-0008By-HE for submit@debbugs.gnu.org; Wed, 11 Jul 2018 09:50:58 -0400 Received: from mail-yb0-f182.google.com ([209.85.213.182]:43378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdFWD-0008Bi-03 for 32120@debbugs.gnu.org; Wed, 11 Jul 2018 09:50:57 -0400 Received: by mail-yb0-f182.google.com with SMTP id x10-v6so10017822ybl.10 for <32120@debbugs.gnu.org>; Wed, 11 Jul 2018 06:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kwKmn+d1R+zrdWHIVUStxMIo0H9jvXketeiDWaIRVnU=; b=el+XcvnZJjnUBPPEMzvAaJ4Z/2VkSXCbu8SOtJ6H48dkPw130V3z0XuxpSWC/9A4kr X00CNW2zhUUg88+Hxkkai1/v1KbpWcUxTNB2eecrtwRbxyA72oydmv94z2721ERu28Xh k4j7UqvjK5gyVsn45yzLvYw+MrQ7SXKseEr0pEeowmDC/AoFxGD4VCh2GYmYwZYnEGNM YOM84WD4D4edqc0+9iCEOQd5ReTsneRw5Z9bXii4dH6JEyZvSqpTDhSS3u0PrByZwC02 G3oBAFydA21/5yV3RotwJ/7CZcMmLvglmQiD7u3RyMME3CP6DCmtAyTRo/QFLGbi/vQ1 LCpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kwKmn+d1R+zrdWHIVUStxMIo0H9jvXketeiDWaIRVnU=; b=gWCGHeT0ljrzAZbAYWP6oaa3MuQ27uEZ0kRdmqUauOpM2X+i617Xy+jJ/sGjL+8fnU 8v1yzlL4JcUhjDjM07fKVWgvWddsR8GDrRw6L3/Fxn4LUuRPZXK5xfHLDawH93rjI0Oz VvkIRXEFIoSncFwvfWZ1PGLEMjVGETLmLoO5FlO1ZcjyxQLCNdpteZpIAMpzrLoQKQ5L l3xGYiEbhnub8eIa7kWtOfj3zv9OO/Q5j1/GGC0dDPnpIYoMw+OQdHy2XjJxDO6DqLpz TeZ5yavjG7A5t88rXUeu2e2pDHIuS0mDwr8JkaQuqR7D7sa8wKOlGOfpmcVtMoWcsUOH WSbg== X-Gm-Message-State: APt69E2Few7SfFfsi40AK9p4m4DJ6SigI51mS8e6AmRyOD8cf2poSALB 2Tt916hnvSIRdTYa7W/iErh+d1d1saRr2Jy8HEY= X-Google-Smtp-Source: AAOMgpcHMnIxPJ05TZkfGz1zpcYriGlg49P3Tva3sZrHR7NKX+1SbDsRzXmTa1LzlORbvs6H5onY74ooRfo1XbkIi68= X-Received: by 2002:a25:80c6:: with SMTP id c6-v6mr15756175ybm.4.1531317051114; Wed, 11 Jul 2018 06:50:51 -0700 (PDT) MIME-Version: 1.0 References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> In-Reply-To: <87sh4qjevv.fsf@gmail.com> From: Carlos Pita Date: Wed, 11 Jul 2018 10:50:39 -0300 Message-ID: Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 To: Robert Pluim Content-Type: multipart/alternative; boundary="000000000000decb310570b9885c" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 32120 Cc: 32120@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) --000000000000decb310570b9885c Content-Type: text/plain; charset="UTF-8" > > > >I think it doesn't > > make a lot of sense to default tab-width to 4. > Sorry, s/4/8/ here. > > > python.el defaults tab-width to 8, but sets indent-tabs-mode to nil, > When you do rigid indentation, say C-x Tab and then S-Right, you get 8-spaces tab steps with that configuration. --000000000000decb310570b9885c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

>I think it doesn't
> make a lot of sense to default tab-width to 4.
<= /div>

Sorry, s/4/8/ here.=C2= =A0


python.el defaults tab-width to 8, but sets indent-tabs-mode to nil,

When yo= u do rigid indentation, say C-x Tab and then S-Right, you get 8-spaces tab = steps with that configuration.
--000000000000decb310570b9885c-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 13:19:38 2018 Received: (at 32120) by debbugs.gnu.org; 11 Jul 2018 17:19:38 +0000 Received: from localhost ([127.0.0.1]:55863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdImA-00059B-2p for submit@debbugs.gnu.org; Wed, 11 Jul 2018 13:19:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:32935) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdIm9-00058z-Cq for 32120@debbugs.gnu.org; Wed, 11 Jul 2018 13:19:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdIm3-0000pJ-Dt for 32120@debbugs.gnu.org; Wed, 11 Jul 2018 13:19:32 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdIm0-0000oC-9D; Wed, 11 Jul 2018 13:19:28 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fdIly-00075Y-EO; Wed, 11 Jul 2018 13:19:26 -0400 From: Glenn Morris To: Carlos Pita Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> X-Spook: Emergency Broadcast System Ft. Knox Warning Homeland X-Ran: N0r#|i! (Carlos Pita's message of "Wed, 11 Jul 2018 10:50:39 -0300") Message-ID: <0mo9fdvgf5.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32120 Cc: 32120@debbugs.gnu.org, Robert Pluim X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -6.0 (------) Carlos Pita wrote: > When you do rigid indentation, say C-x Tab and then S-Right, you get > 8-spaces tab steps with that configuration. Right. What is your justification for wanting this to be 4? Python generally discourages tabs, but when they are present, seems to follow the historical convention mapping them to 8 spaces. Eg https://docs.python.org/3/reference/lexical_analysis.html#indentation Tabs are replaced (from left to right) by one to eight spaces such that the total number of characters up to and including the replacement is a multiple of eight (this is intended to be the same rule as used by Unix). From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 13:26:26 2018 Received: (at 32120) by debbugs.gnu.org; 11 Jul 2018 17:26:26 +0000 Received: from localhost ([127.0.0.1]:55868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdIsi-0005JL-Py for submit@debbugs.gnu.org; Wed, 11 Jul 2018 13:26:26 -0400 Received: from mail-yw0-f172.google.com ([209.85.161.172]:40525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdIsh-0005J7-4x for 32120@debbugs.gnu.org; Wed, 11 Jul 2018 13:26:23 -0400 Received: by mail-yw0-f172.google.com with SMTP id p129-v6so9436246ywg.7 for <32120@debbugs.gnu.org>; Wed, 11 Jul 2018 10:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=D/3lva9nob0x0emz19vyFGu0QiRAmtjIobNr0P0IoYY=; b=WWQw289qHxOzzjzM9Tu+TsKTLK+SVcDieYgR9YRZ7FvaGXH538XZ0SIKUQzlmzkyMd 3g2OFFNLpmYHGGJWmkyZalmj35sAGDQcHL4Vx9u1JB0vxveLJZ+C79MZOau3n8VcNo3X KJtLZQ4jzzJ3N2IQf25gKXLn3GhRVjs/+BYi0nrzHSFInlpoQNcACaE9mxoETMr2FQbG hIxypFXvxqPAfynoiEByLsAmF7PNROQUeIisYvw01Gg72Q3WuQ8/ZjqaMX0JsgLVM7Dq kURaO9sJlCYbmTMM1NBB1zqt9cTrxFbGghiczBgGubTkTYsAsGgfECarwfjRuVo450q5 5Mog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=D/3lva9nob0x0emz19vyFGu0QiRAmtjIobNr0P0IoYY=; b=PvZZkwU4pfgH+1/hRSsmlKQ7/mVlgXxBOMrUmXDVmlQIjnUBeKSeSNyjzSgZqs64KV T4vAQWg6zB4Kojs0eBz4Fj/zArFeKWa6Ii9jyno3DzKcDTXt2AQZZ86U9lB3ab2rhc83 +SelkSBlAZt1vj2g/EBQx6jC+/FLwt5rCZAqtPSPQ4qb4ng/kbN7xPKviF/cNqj55YX+ ft7HPZtuDy44uOV1qgQ4uIIiAECPLZFU0g7rzrSW7bEzKuxQaQHkOeaTcBWfcIAGifl8 S1ZEX1tP+rZUo4SizVoiF164Jj7LQqzcnLvvvorWw3OSvS9o4vGFZsKhfCn4dV5kEmjs k9GA== X-Gm-Message-State: APt69E2z3t1Z1r2D/D7bV4gaDyjaW5EMTtzg7LIepjxWaAUHI70gXKYU TBXiZyI2MS0ohR10HBtdZ0nXGr0t3vkMcj8VSCA= X-Google-Smtp-Source: AAOMgpfsCKEEbt9xTsKULOlN3J/iqGqEMNO00lrljxx7afEfsa0tGHBChQHCAETc1daRUAj5v7hYKhAX8cVCG+kJGFs= X-Received: by 2002:a81:ac0b:: with SMTP id k11-v6mr15223783ywh.57.1531329977530; Wed, 11 Jul 2018 10:26:17 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:c651:0:0:0:0:0 with HTTP; Wed, 11 Jul 2018 10:25:57 -0700 (PDT) In-Reply-To: <0mo9fdvgf5.fsf@fencepost.gnu.org> References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> <0mo9fdvgf5.fsf@fencepost.gnu.org> From: Carlos Pita Date: Wed, 11 Jul 2018 14:25:57 -0300 Message-ID: Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 To: Glenn Morris Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32120 Cc: 32120@debbugs.gnu.org, Robert Pluim X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) > Right. What is your justification for wanting this to be 4? > Python generally discourages tabs, but when they are present, seems to > follow the historical convention mapping them to 8 spaces. Sure, I don't want to enter tab characters at all, I just want to rigidly indent using 4-space tab stops. And setting tab-width to 4 and indent-tabs-mode to nil makes C-x Tab S-Right do just that. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 16:15:41 2018 Received: (at 32120) by debbugs.gnu.org; 11 Jul 2018 20:15:41 +0000 Received: from localhost ([127.0.0.1]:55942 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdLWX-0000qP-LN for submit@debbugs.gnu.org; Wed, 11 Jul 2018 16:15:41 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdLWW-0000qD-1t for 32120@debbugs.gnu.org; Wed, 11 Jul 2018 16:15:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdLWP-0002Qg-SI for 32120@debbugs.gnu.org; Wed, 11 Jul 2018 16:15:34 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdLWN-0002N1-54; Wed, 11 Jul 2018 16:15:31 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1fdLWM-000084-NW; Wed, 11 Jul 2018 16:15:30 -0400 From: Glenn Morris To: Carlos Pita Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> <0mo9fdvgf5.fsf@fencepost.gnu.org> X-Spook: Ansar al-Islam Plane Pork MD4 SP4 Maritime domain X-Ran: 93|.j'hT*:@}U;nbB+LD{YnEx>*u-rYLTsLh`aHqn\t9T"z.@.*QdK5(. (Carlos Pita's message of "Wed, 11 Jul 2018 14:25:57 -0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 32120 Cc: 32120@debbugs.gnu.org, Robert Pluim X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -6.0 (------) I guess this is why python-indent-shift-left/right exist. They indent by python-indent-offset (ie 4), not tab-width. ISTM that tab-width should remain 8. From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 11 16:23:40 2018 Received: (at 32120) by debbugs.gnu.org; 11 Jul 2018 20:23:40 +0000 Received: from localhost ([127.0.0.1]:55946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdLeG-000120-EF for submit@debbugs.gnu.org; Wed, 11 Jul 2018 16:23:40 -0400 Received: from mail-yb0-f173.google.com ([209.85.213.173]:35359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fdLeE-00011o-Sm for 32120@debbugs.gnu.org; Wed, 11 Jul 2018 16:23:39 -0400 Received: by mail-yb0-f173.google.com with SMTP id x15-v6so10550539ybm.2 for <32120@debbugs.gnu.org>; Wed, 11 Jul 2018 13:23:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=P+dvONP7b6fjGC1WrJs0c7HYz2e/6hbPrxDTt6x7y7Q=; b=VKo8svTnVetArg4b7WFQlKHke9UMVl9Rd1ce5G2hOqkp9rzls/04u5ifwNZL9n7ujZ P9HC0uKBW8cC2B+MklIAT6BGapk2r1dVjKB+5gSiT7hmoM2iNkQCeG8Dqzbq3uEOmsgs jPXdxksvUIy+sSY9deLPL+Wv08dZtX0OeS3uNUeJhk9IQHqmeAqpzqYYDU4beAXgTn7I Um1lwglRvgp9EfjIZ9K5FlSLLh3dZXbCF3FT1hLkukA03psORHsieliE7AP7PVm+Z0Qo WlNJeeqPIxJRWwyRsHGbqLoMZS93bDNoEy9TiEwmIOEMGabsH775pKbAJrl3dNaEWbRm jelA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=P+dvONP7b6fjGC1WrJs0c7HYz2e/6hbPrxDTt6x7y7Q=; b=EDoccNAIkNk/U+Zmen9LkvgH05PGO3OoKfyG4e073V3JWshXxh/ftpT0JKSJsHG23B mj3bEZ2Fz0xnlZ6xpIh6TxisYXZPfnBS58m79aVfVmcYjZj6FSdDdNBFh75TeQvXran/ ERdLoz73raWR4Wm05N+/5VDiJfgkGjXv9Y2LzRI3Pa/svuwUeqR1P1m6DSyqthP8wG6K rn6X3dKDfynbpMZX6xOHlsEnPeE7gP7Esav+z6SiAwKtAL3TSCTMjk92KyrhBlWLpQ0J eNcTezmPCk9w9VEcyxbv1D9jBdfTPatvShpnumX7xpaTCp5F9to0vuxp6WUI+G7tye/v EX+Q== X-Gm-Message-State: AOUpUlFvlzQZ+2vSmftGMSJvysUa93wB23KAVmTDBkd1qdQx8r+OcIQk L+WQHpVuVUPx0QAipsM8a/hv17rRZxDcYVevakY= X-Google-Smtp-Source: AAOMgpcf4DB8aAqz6drLCIWLAPKp4cmHKJXjW9OJpd61TxMj0dzdXht2tjwEIUahntiwJnL/N4kg+W3BgboaHoDV15E= X-Received: by 2002:a25:80c6:: with SMTP id c6-v6mr82389ybm.4.1531340613270; Wed, 11 Jul 2018 13:23:33 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:c651:0:0:0:0:0 with HTTP; Wed, 11 Jul 2018 13:23:12 -0700 (PDT) In-Reply-To: References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> <0mo9fdvgf5.fsf@fencepost.gnu.org> From: Carlos Pita Date: Wed, 11 Jul 2018 17:23:12 -0300 Message-ID: Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 To: Glenn Morris Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32120 Cc: 32120@debbugs.gnu.org, Robert Pluim X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Ok, I didn't know about those python specific functions! Nevertheless I fail to see why you prefer a tab width of 8, but my immediate problem is solved. Thanks! From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 06 22:13:47 2019 Received: (at 32120) by debbugs.gnu.org; 7 Jan 2019 03:13:47 +0000 Received: from localhost ([127.0.0.1]:47511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggLMH-0001vE-Ra for submit@debbugs.gnu.org; Sun, 06 Jan 2019 22:13:47 -0500 Received: from mail-yb1-f181.google.com ([209.85.219.181]:38506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ggLMF-0001uz-VK for 32120@debbugs.gnu.org; Sun, 06 Jan 2019 22:13:44 -0500 Received: by mail-yb1-f181.google.com with SMTP id x9so7969962ybj.5 for <32120@debbugs.gnu.org>; Sun, 06 Jan 2019 19:13:43 -0800 (PST) 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=PKmD/UzhEb7eQVi3xfnBMUASnPYTD6xnqaNlPI3FIzA=; b=U5H92w208jL9DTyP7ZdL6ZPyxoRxAVIVj9dY3E2MahbNkKKpwqELuS7m0x2uONSlg0 /E+OM8WkquDdeiPmsuAIvf0ZXWRkEi7DHtHAJQ1sVvqHW3jo/qokmOM29fI3HGmVifZL lTi0TzFpmQIWZBQ0zxPf03y+EgMzV3EgZBEnhpaQNKkCwshaHEPnQCA81oOXLZrfN2RH fWy9A4qIti73nUL2UElchzpQw07chcFF6ipkqh347F3JMroVC+zbKI77kc182NUUj5wv rYHoNSAi6C1sqAx31optiJwNSdwpqEpheeX5n7sC1pYmt0Cbn8cr/M2lDCIad+LHm8FP cjhA== 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=PKmD/UzhEb7eQVi3xfnBMUASnPYTD6xnqaNlPI3FIzA=; b=aMtqSnyCsL/IP13pZ8yBn/24Oh4z4VuhxO27lAz79xJtswighPjKXPYTZCWvOmLHnC ndVGIG9jZaFAe7UC/cKjcEF24AvbwRpHjgIGh//pBJsLAY8r0URC7Dc437YGQyrrgaV9 IsO5U/AXFCL3sz675RTDZcuEHKMcLu7ryZhU0apF8DIRl4TDCb3EakoMsqvzYORfzT/3 qFt/rjgWlLbOxxCNfy43DrlxNEn7grPPqi++EcZLfiHivztpodg33pUYmZNyY/98XmPt mmYtu7lPrNWJyWq50BeWIcGnJ06Cozf51+YDPfuwYpVbn2XOz85DftIL5uC+1yksV8d6 TFMA== X-Gm-Message-State: AJcUukdBesxpKyJz/c03ddyrQkNktVEh+pfJpkKf8Qe1UTTvdcHGeO0g wzymL9Sa2h9Omae/Xf9Z9GM9rddSULrIidysFUcTV2Hf X-Google-Smtp-Source: ALg8bN7uWO50WfDtfFtl/DH55sUxSi404r7WmbIzoWGg03bBauwtUVtV0a1t/NhSGUrOWDUZxidaZwMxxsmss/LuYR4= X-Received: by 2002:a5b:ec9:: with SMTP id a9mr40512321ybs.446.1546830818021; Sun, 06 Jan 2019 19:13:38 -0800 (PST) MIME-Version: 1.0 From: Carlos Pita Date: Mon, 7 Jan 2019 00:13:26 -0300 Message-ID: Subject: To: 32120@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Some months later, I'm insisting on this. I don't see any point in setting the default to 8 when: 1. PEP 8 clearly states: use 4 spaces per indentation level. 2. Python mode specific rigid indentation mechanism defaults to 4 spaces. Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (carlosjosepita[at]gmail.com) -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.181 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.219.181 listed in list.dnswl.org] 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: 32120 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: 1.0 (+) Some months later, I'm insisting on this. I don't see any point in setting the default to 8 when: 1. PEP 8 clearly states: use 4 spaces per indentation level. 2. Python mode specific rigid indentation mechanism defaults to 4 spaces. AFAICS the only thing you get by setting tab-width to 8 is incompatibility of emacs standard rigid indentation mechanism (M-x Tab) with both 1 and 2. I think it's important to play well with standard facilities (despite python mode providing it's own variant) and, in any case, there is no good reason, no trade off, not to do it. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 29 23:17:24 2019 Received: (at 32120) by debbugs.gnu.org; 30 Mar 2019 03:17:24 +0000 Received: from localhost ([127.0.0.1]:36134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hA4Um-0007RX-07 for submit@debbugs.gnu.org; Fri, 29 Mar 2019 23:17:24 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:34040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hA4Uk-0007RI-3p for 32120@debbugs.gnu.org; Fri, 29 Mar 2019 23:17:23 -0400 Received: by mail-qt1-f171.google.com with SMTP id k2so4991163qtm.1 for <32120@debbugs.gnu.org>; Fri, 29 Mar 2019 20:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=7koWH2rZvFR7tbz21lzX1KGFki02RPbR5UhpYk1tovM=; b=ImC4Hbi0mwzBTCS9ggYBeQSsQnMxsv3YUj5S8DqH7r6oDpgDW1PX5l9oy0S9CRnBLR PN/33Cur/Fv9A4BBnBNM2oHHmXmtwP7FZkHrFrlockA+B3lEWeVItl1IE0rcgAzjgbDM 4w6wMv+MR+Zyo67cyNnYHIylRqUeUvNivTxJ3Qhvqx8WMoNDJ0PQCD+Smk1xhuxkhlIk l9I96T9S38NCQlO+AOJW6o5MCw2NohTfMj31lzuqKBwNuGmTrng/3r0g0GASrTqhOYAu 5jvQIO4W+bGIP0dunb0ZrhDEqsmlZcFRisQp46GcpXV5gFIp0wnGEMZS3Ruas1+rAU5+ qHzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=7koWH2rZvFR7tbz21lzX1KGFki02RPbR5UhpYk1tovM=; b=pU4AtzwsgIHi3SGgVnuGmav4Wx71fxMS6YP9+3ggB4f7nbz3SkOa/vpRW0DZU03yCm gFZ87iOzBUXsgC/4m+kN2Z0Y4xdXggNEu9hhtNd3EzQqw7K3qgAfDezUSvfb9cKN3tji cQdMXT7VXxa7njOvHjDZgYy98i2ZkxpqX83Y/V0xAxnoBGitFVYMYUUxJ/ZZhH21rCzh E1RCHGiaMvEjRvtTrCT3MfAsOfafavWiPraYDAdx1wz6pEtkirjR1/mGR9NvX15ICc7z 5TYjHpkT8g3mTNS98hNeKc3FrU3Ahg0AWcru12WrGLKtF5nrhiGmkEFCfXc2SkAo7rv4 dJ3g== X-Gm-Message-State: APjAAAW/tNysE+38v4pqcu8FYqZO/YeRHRDfytYrakmylK3djkGFEPUB lcbneWogNMNCeCsSondOO1s= X-Google-Smtp-Source: APXvYqycPDq27s7ld93Sm570xzL7pQ32c7gksYnGs3umV8Q4HMe82SZ0iGc1IdPSTGiIHKrYUBhgwQ== X-Received: by 2002:ac8:325c:: with SMTP id y28mr44768978qta.40.1553915836724; Fri, 29 Mar 2019 20:17:16 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id f29sm2419896qte.1.2019.03.29.20.17.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Mar 2019 20:17:15 -0700 (PDT) From: Noam Postavsky To: Carlos Pita Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> <0mo9fdvgf5.fsf@fencepost.gnu.org> Date: Fri, 29 Mar 2019 23:17:14 -0400 In-Reply-To: (Carlos Pita's message of "Wed, 11 Jul 2018 14:25:57 -0300") Message-ID: <87pnq9830l.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32120 Cc: Glenn Morris , Robert Pluim , 32120@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Carlos Pita writes: >> Right. What is your justification for wanting this to be 4? >> Python generally discourages tabs, but when they are present, seems to >> follow the historical convention mapping them to 8 spaces. >> https://docs.python.org/3/reference/lexical_analysis.html#indentation >> >> Tabs are replaced (from left to right) by one to eight spaces such >> that the total number of characters up to and including the >> replacement is a multiple of eight (this is intended to be the same >> rule as used by Unix). > Sure, I don't want to enter tab characters at all, I just want to > rigidly indent using 4-space tab stops. And setting tab-width to 4 and > indent-tabs-mode to nil makes C-x Tab S-Right do just that. > Some months later, I'm insisting on this. > > I don't see any point in setting the default to 8 when: > > 1. PEP 8 clearly states: use 4 spaces per indentation level. > 2. Python mode specific rigid indentation mechanism defaults to 4 spaces. > > AFAICS the only thing you get by setting tab-width to 8 is > incompatibility of emacs standard rigid indentation mechanism (M-x > Tab) with both 1 and 2. I think it's important to play well with > standard facilities (despite python mode providing it's own variant) > and, in any case, there is no good reason, no trade off, not to do it. Seems clear to me that the proper solution is simply to rebind C-x Tab S-left/right to use python-indent-shift-left/right. That will solve the actual problem you experience, without incorrectly showing any existing tab charaters as 4 spaces. From debbugs-submit-bounces@debbugs.gnu.org Fri Mar 29 23:26:07 2019 Received: (at 32120) by debbugs.gnu.org; 30 Mar 2019 03:26:07 +0000 Received: from localhost ([127.0.0.1]:36138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hA4dC-0007e1-V2 for submit@debbugs.gnu.org; Fri, 29 Mar 2019 23:26:07 -0400 Received: from mail-yw1-f47.google.com ([209.85.161.47]:44570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hA4dB-0007dX-3g for 32120@debbugs.gnu.org; Fri, 29 Mar 2019 23:26:05 -0400 Received: by mail-yw1-f47.google.com with SMTP id c4so1387935ywa.11 for <32120@debbugs.gnu.org>; Fri, 29 Mar 2019 20:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=u7tj402fDG33m1y3XO5WulZEo7P/1yKPJDDMVYz8xAI=; b=ibg5iDImO0yfPjQmgt/ydTwP87DjuCunrqe/itCCrdiBFKQDoQe13c766ESjwkUlzB tYXoCxDwuQJUwhpOCA9Jp4vHXMZwTm+ajkTmRBKlOc/kZMdH1sRxq3ArmPuNGCL1HObb QXUs6jZhNfeKVAdrguchsZSuaO3xzgIAyNYO8VQ5LkerlSZQf5pYhWgSKFR/0wFZ71QR 7Sn5F4UnwZvZXor6ZQQSqt5uw4hZXDOkrtYTBjGFqBB28j6Zbew74J8003e7bdhg1TIT Z2QzZEQub9p3veaUNqGPiOmoXwiHGLl+R2wePoYNBX7+buVO+E4PdnC7SjLpX4ypJ+oH kXBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=u7tj402fDG33m1y3XO5WulZEo7P/1yKPJDDMVYz8xAI=; b=hMTfDvZLmF5LHWH0LSQTeT4MdCbAv0W0f4V3QGCQ/Myc+rdXW+dBQFF5BG7eUF76mV wKchBvlcZ1RtqAmZRzbGCNUIlBpOTmH7LB17T2Dr5kfTw/+uF0cHFhqOePPcVJME3Mgl pF54qOwcmnE+fuCmo3YUaAELan2cnkjxfQQnNy8Pnj5m67vmLsvTXQqx/ZEixHnf0emB Bdq7x3x0olm07XEgoY/IieHWDOW0ipe0xgijUQuSVjk9hyqT2XWhP31VWWuyV5ggzCVy CGbgjP9psnxXn439zmV83nmy7v2nZnI0onrZPBT4NJ9svXO3vQsz5Zqc+mnhekCxTx11 /BfQ== X-Gm-Message-State: APjAAAVHR6o33d0js29UYq3mz9kgGISoUKM00QR8ahGiv5y3FaUNjOSU wOozWEFXXSSrNGGcET97YYFcva3pEVrBPT+L0Ag= X-Google-Smtp-Source: APXvYqxNffBP5BucF96QMLwA0eWU2GH8Cog5LS4gOLtcK6e1Uj5ETdiC0h3SSM413i9Kf0MquzHBjwfoRq6zAMcztI4= X-Received: by 2002:a81:6c04:: with SMTP id h4mr42041886ywc.170.1553916359244; Fri, 29 Mar 2019 20:25:59 -0700 (PDT) MIME-Version: 1.0 References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> <0mo9fdvgf5.fsf@fencepost.gnu.org> <87pnq9830l.fsf@gmail.com> In-Reply-To: <87pnq9830l.fsf@gmail.com> From: Carlos Pita Date: Sat, 30 Mar 2019 00:25:46 -0300 Message-ID: Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 To: Noam Postavsky Content-Type: multipart/alternative; boundary="0000000000009a7ea1058547586e" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32120 Cc: Glenn Morris , Robert Pluim , 32120@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) --0000000000009a7ea1058547586e Content-Type: text/plain; charset="UTF-8" Hi Noam, On Sat, Mar 30, 2019 at 12:17 AM Noam Postavsky wrote: > > Seems clear to me that the proper solution is simply to rebind C-x Tab > S-left/right to use python-indent-shift-left/right. That will solve the > actual problem you experience, without incorrectly showing any existing > tab charaters as 4 spaces. > > I would agree with you if I understood why is it incorrect to show 4 spaces for a tab. OTOH I'm not saying it is correct, just that it would be more consistent with a (suggested by a PEP) 4-space indentation step. --0000000000009a7ea1058547586e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Noam,

On Sat, Mar 30, 2019 at 12:17 AM Noam Pos= tavsky <npostavs@gmail.com>= wrote:

Seems clear to me that the proper solution is simply to rebind C-x Tab
S-left/right to use python-indent-shift-left/right.=C2=A0 That will solve t= he
actual problem you experience, without incorrectly showing any existing
tab charaters as 4 spaces.


=C2=A0I would agree with you if I unde= rstood why is it incorrect to show 4 spaces for a tab. OTOH I'm not say= ing it is correct, just that it would be more consistent with a (suggested = by a PEP) 4-space indentation step.
--0000000000009a7ea1058547586e-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 30 08:52:45 2019 Received: (at 32120) by debbugs.gnu.org; 30 Mar 2019 12:52:45 +0000 Received: from localhost ([127.0.0.1]:36319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hADTZ-0000M8-07 for submit@debbugs.gnu.org; Sat, 30 Mar 2019 08:52:45 -0400 Received: from mail-qk1-f181.google.com ([209.85.222.181]:40387) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hADTX-0000Lv-2A for 32120@debbugs.gnu.org; Sat, 30 Mar 2019 08:52:43 -0400 Received: by mail-qk1-f181.google.com with SMTP id w20so2998240qka.7 for <32120@debbugs.gnu.org>; Sat, 30 Mar 2019 05:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=CjfrOWrVYUEQn3muBr3+AVZsmiKQCNjQCniqKCNMoNM=; b=Hq5MB2s2W6mLH7uPYC0DpvZrbRc5PWI/9TwUhAeYkDGIJzyTj35MVEzOvfE/zezcoe NzZFdDM1Ur0gEOzTcvDSbcAg+mZY1xy6DgujYnososnYGrRVFiZYgxzM6mYWcUJVJBb8 p0f4xC2v7w0MlpdXS17543Fmfu2Ic9xX+idwGFL0O/TW85WT1N5+cOeZwoDSgVq4cbVF zzEwZh/v9tXh8W5bbiE3H/hHVnxkwyB+bIjROIQMdAPnnjDZPVp5B2LaMlzLOcGgiCFc OUGXyJuvnhlXg6SCpA+qxOMJybOg/FkDUUf3kqycz2/rLG0Id/+yw9Ns8Ddq2+ApZmCV +hlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=CjfrOWrVYUEQn3muBr3+AVZsmiKQCNjQCniqKCNMoNM=; b=ogwud24LgN/cL/aNirjywxhiNkfGkSaf1A0ykXFYR0gToB/RyeV4ycjmWcOc+WvbLo 727ew4GxQaaxujGApLVL7l0dcjPEHTQTdDTSSWTa2ZK6QVtFDCqRAyjsS5FpA+wDPXtm 8y/ILb2ev5q1jraLrvBGzZ+Tea89Vqc2o2OxeDNpXtDA7ST8oCFcV7Qsc6uveAN5N1NX j4WBJ1MswuGP0sboKx1LC6ufupx85eKD/cratM2aHEUgvM4Urg9JD8Ll1OotOokwFD+l AyGSrSciJ/VCyIBa1sgdUi2Fryz5YIlCrrFLu+9sF7pTTCYwpf2OgyXpUctQrOJmTOuH p+VQ== X-Gm-Message-State: APjAAAVGPmEbhfOBkz5E+8i1P0UoJ9da2b1Oy4UFhTJoSlyHjQRJCvCd AcVUQeEhdqRpNXGWMzjsfcGRvDFl X-Google-Smtp-Source: APXvYqwiOnyCXtWqxP+IQWgDPis8cg+YAqLywu1/lpHnMfyWjIh7gb8L+tVTHE2Ze/PgQBvXhLZNgQ== X-Received: by 2002:ae9:f44a:: with SMTP id z10mr36328868qkl.223.1553950356200; Sat, 30 Mar 2019 05:52:36 -0700 (PDT) Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id p46sm3021288qtc.41.2019.03.30.05.52.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Mar 2019 05:52:34 -0700 (PDT) From: Noam Postavsky To: Carlos Pita Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> <0mo9fdvgf5.fsf@fencepost.gnu.org> <87pnq9830l.fsf@gmail.com> Date: Sat, 30 Mar 2019 08:52:33 -0400 In-Reply-To: (Carlos Pita's message of "Sat, 30 Mar 2019 00:25:46 -0300") Message-ID: <87mulc8qy6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32120 Cc: Glenn Morris , Robert Pluim , 32120@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) Carlos Pita writes: > On Sat, Mar 30, 2019 at 12:17 AM Noam Postavsky wrote: > >> >> Seems clear to me that the proper solution is simply to rebind C-x Tab >> S-left/right to use python-indent-shift-left/right. That will solve the >> actual problem you experience, without incorrectly showing any existing >> tab charaters as 4 spaces. >> >> > I would agree with you if I understood why is it incorrect to show 4 > spaces for a tab. Because, as Glenn mentioned, the Python spec specifically says that tabs should be 8 spaces. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=32120#14 From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 30 09:33:23 2019 Received: (at 32120) by debbugs.gnu.org; 30 Mar 2019 13:33:23 +0000 Received: from localhost ([127.0.0.1]:36335 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAE6t-0001LJ-3h for submit@debbugs.gnu.org; Sat, 30 Mar 2019 09:33:23 -0400 Received: from mail-yw1-f46.google.com ([209.85.161.46]:40382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAE6q-0001L3-Sv for 32120@debbugs.gnu.org; Sat, 30 Mar 2019 09:33:21 -0400 Received: by mail-yw1-f46.google.com with SMTP id p64so1676490ywg.7 for <32120@debbugs.gnu.org>; Sat, 30 Mar 2019 06:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Uz0o484Y3YhAGHQr4O0nLXcvcfAKyUdUb71HOafzqhQ=; b=EcqjXsvmu8GhZgPtLOE0sj8o+OlCpFUOr2Ie+o6M/1onuEVN7+I3qi002B7tD9mTB/ pLSMd5Cfn2pqymuM9lhK2j3/s4kqfwTeQA1yXnyVgPeEwKG3zxQ6IUCvkl2RWLnQKATU x2XexUI510GGQl7AxKplGd2xL2JO8NcTWpsFJDfI46gbh59sIqbIP+eoYdnA5Z9jMIcL ri63hYbvUYfc5my/w1VyiRD4ZFsKs9tXOyGIlRuYtW2gDAvCzkaJS9rRz22MdlrNRzMe br+OXN6ugwveyatqP3/pZQqdKHfWSrSmRdaAAJSk4K/xC9dMDiCAi+iDYIWu9hSS1MRp 5TjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Uz0o484Y3YhAGHQr4O0nLXcvcfAKyUdUb71HOafzqhQ=; b=Im8rI/5M4m1qibEoJspl9rr1yX3R3lfU8ynudx2EKmdEMONZ/VTp/UQkiceZAnesxi b7Au6jnOl0fUFKUjdLycVmx1gJGLcWjp3nfSu0PoqnhYAAWJqUA+JKEIXeWGsHtTbI6M okMy/UKWSVbrxzdnUps4RWeAAc9f1LJ0sngFUAN/Duwfqv1NOpSB+RLinBZDSzdZIc3H Z2CMHijZfd8yZT2MNYp9nibQPBw7q0S6HpmvGq1eG/LRAgETYrB0PlQDviY4K4KSNOUR iXCGBdOHYEj+T14clVFFiOjlSustWUpTsz2u2WMQ+qBvq80lfznk12pohxqsxyitaB8r 2zMg== X-Gm-Message-State: APjAAAW7aT3RB4seOrLBI0WbxsxfqNOjeKlffL9g40gZKG7kGtUHrxr7 2L9QDpuAEXcpTBLYjdGrzmrWh8dk64DGkImACEF7VG/0 X-Google-Smtp-Source: APXvYqzDS0Md3RRSLXW3iupa0TAXH6nlP/dH2uAM7O3f8ksdK0rfDBgXuDmKIME5kp7b3KLRTKu8L/FyH5bK/j7jHE4= X-Received: by 2002:a0d:cc92:: with SMTP id o140mr30389906ywd.1.1553952794871; Sat, 30 Mar 2019 06:33:14 -0700 (PDT) MIME-Version: 1.0 References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> <0mo9fdvgf5.fsf@fencepost.gnu.org> <87pnq9830l.fsf@gmail.com> <87mulc8qy6.fsf@gmail.com> In-Reply-To: <87mulc8qy6.fsf@gmail.com> From: Carlos Pita Date: Sat, 30 Mar 2019 10:33:01 -0300 Message-ID: Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 To: Noam Postavsky Content-Type: multipart/alternative; boundary="000000000000560b0c05854fd44f" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32120 Cc: Glenn Morris , Robert Pluim , 32120@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) --000000000000560b0c05854fd44f Content-Type: text/plain; charset="UTF-8" Ah ok, it seems to me that when he mentioned that I was somehow confused about the role of tab-width regarding tab steps and, later, I'd probably forgotten about that part of the reference and was thinking about the PEP only. I'm closing this then. Thanks! --000000000000560b0c05854fd44f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ah ok, it seems to me that when he mentioned that I was s= omehow confused about the role of tab-width regarding tab steps and, later,= I'd probably forgotten about that part of the reference and was thinki= ng about the PEP only. I'm closing this then. Thanks!
--000000000000560b0c05854fd44f-- From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 30 09:38:12 2019 Received: (at 32120) by debbugs.gnu.org; 30 Mar 2019 13:38:12 +0000 Received: from localhost ([127.0.0.1]:36351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAEBY-0001TL-L2 for submit@debbugs.gnu.org; Sat, 30 Mar 2019 09:38:12 -0400 Received: from mail-yw1-f48.google.com ([209.85.161.48]:38047) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hAEBW-0001T7-Ku for 32120@debbugs.gnu.org; Sat, 30 Mar 2019 09:38:10 -0400 Received: by mail-yw1-f48.google.com with SMTP id m207so1683349ywd.5 for <32120@debbugs.gnu.org>; Sat, 30 Mar 2019 06:38:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AEd939TKRTpFTigTfuRRmBrWB5aW3EQJFnvFyKCn4AA=; b=pvxIT3jopdTXoD8ezzZpbYJJinDSSo4e2kKVjALiVcAwvQ6zMFOSo+VA3o93VgLWz5 3oq2RAkzymsW4IL1JG6XZokowzWn92tIjn4S8ehUfa1RhjKd39bNkpGBCj5KVtcON0fc sDy4U0rugGVK4WQ3IHC5xbOBeb7sfwyrTxfsJQD0xze8HrmGne+x59DsLAHsl10SdGgK JoO8e87kGAF6QTPQ1jbcQKohSZ3Iv8BiJKD1+/zXsx1ZanTMTeeQnTkDPG2LKR9FjxBm FwT0ZnKy9trhtJRwtBSTyevsHg9hn2IP57uniaOHBWyqrwpKIEh1bfruXpcELE1o+d4s Xgaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AEd939TKRTpFTigTfuRRmBrWB5aW3EQJFnvFyKCn4AA=; b=MpjoNhxfER+rgmXHwWH2nQqPA8zqwywR6oR4cxuvWJebodSXm7/fpWLFFY3+Yel+U0 jR/VTGwPdPuFVXaywymHL6b/iDX3+n4Lwms6Qt+59bvrF7zdyZFeaOIFnyt6DAhwPr6w 7GJepn7nWoddyJDF7JPFR3oIGJI4N1TVrLpgjd6wIHlHuo39t/ewgcQcfkESxDL/NjhW BqKH3l7K1WkhanJj+GsaFmIzFI/QH8G/ztvV1zgxwig4Ify6uTXLcgHszNsLQI1k3UkT 21DuRFkxiXjVIPdLOEL8UHfqQycrHeYjMhRD9pHJRwyZN7/fHNqJuzqkiNgRd+Zv5C8f 1I0Q== X-Gm-Message-State: APjAAAV8NEyXtoKaBQm1S/XShoyS1Mye7EhW0gw0YQ6vSyJ4QVVrb2i8 8bU/Sjpwa5o//brXsS2kjdB9bHj8XD++iCygCMQ= X-Google-Smtp-Source: APXvYqwtD5Synii0s7ssqrR1tXx7EUUZWZsemujcCYTUn72g/HAx4ZD+DRyItednylgZY6BJNkNt3MdmU70fuzrs7s0= X-Received: by 2002:a81:6c04:: with SMTP id h4mr43539724ywc.170.1553953085149; Sat, 30 Mar 2019 06:38:05 -0700 (PDT) MIME-Version: 1.0 References: <87d0vu3fxu.fsf@gmail.com> <87sh4qjevv.fsf@gmail.com> <0mo9fdvgf5.fsf@fencepost.gnu.org> <87pnq9830l.fsf@gmail.com> <87mulc8qy6.fsf@gmail.com> In-Reply-To: From: Carlos Pita Date: Sat, 30 Mar 2019 10:37:52 -0300 Message-ID: Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 To: Noam Postavsky Content-Type: multipart/alternative; boundary="000000000000a3599e05854fe5bf" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32120 Cc: Glenn Morris , Robert Pluim , 32120@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) --000000000000a3599e05854fe5bf Content-Type: text/plain; charset="UTF-8" > And setting tab-width to 4 and indent-tabs-mode to nil makes C-x Tab S-Right do just that. My suggestion at the time included disabling indent-tabs, so it was ok. Then I forgot about that. Anyway, considering that again, I'm not as convinced about my earlier proposal. --000000000000a3599e05854fe5bf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> And setting tab-width to 4 and indent-tabs-mode to n= il makes C-x Tab S-Right do just that.

My suggestion at the time included disabling indent-tabs, so it w= as ok. Then I forgot about that. Anyway, considering that again, I'm no= t as convinced about my earlier proposal.
--000000000000a3599e05854fe5bf-- From debbugs-submit-bounces@debbugs.gnu.org Fri Sep 13 07:03:25 2019 Received: (at 32120) by debbugs.gnu.org; 13 Sep 2019 11:03:25 +0000 Received: from localhost ([127.0.0.1]:44415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i8jML-0000Yc-Fp for submit@debbugs.gnu.org; Fri, 13 Sep 2019 07:03:25 -0400 Received: from mail-pf1-f181.google.com ([209.85.210.181]:35267) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i8jMJ-0000YE-6X for 32120@debbugs.gnu.org; Fri, 13 Sep 2019 07:03:23 -0400 Received: by mail-pf1-f181.google.com with SMTP id 205so17867384pfw.2 for <32120@debbugs.gnu.org>; Fri, 13 Sep 2019 04:03:23 -0700 (PDT) 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:cc; bh=EsdgDgrCbgMwiiGYRSC2ssqHcHm/wJ2dGtAMHx1LRnw=; b=B/gFiznUdhKNQUGzAOhJ5RoXi3V5nOqe4QZ0HDc7TpsBtNGRbA6SpH3R7YF481Pi40 YGSBYKvY41a0DULunFW4Gb0te7XCD9TaN4nAZTd0J0rbKcnicp22k8LoQK4z2g47QCr1 oYoGj6IjGe5ePXycMJhJJnw92pwSyZAerI0mOB9bPIu5CCsNxMfA7Ja978Wi9h9NUnxq N0tl52LSPmGprU8Vz+HjLuR8LxyXZX2/+eXFuKFdTXbcEilSXyKq6EGu4urGtdFrZDBM u6YC3cvkax1vn68UG3ytr6WtiIVub86gmlq1GGItV+/v+OtKxJEeUjC5g348bMRKm394 crbw== X-Gm-Message-State: APjAAAVws/ntbN8G0v2+u0aOywAoxuzruNpScJVSd7XWVHHJw6TJ0ycV CoYdWyx+TtZzf/IanxyWaQc57Oc6C5S4q9CRf3s= X-Google-Smtp-Source: APXvYqzSvFXeMtagvZwbrSUQGKoUAQNPWJki4y7tBP8E+a2sgW8bEyqCsDZeKLS4Eog+AhpoW5hnSlUHbWFaeUioab8= X-Received: by 2002:a63:4c5c:: with SMTP id m28mr44804791pgl.333.1568372597269; Fri, 13 Sep 2019 04:03:17 -0700 (PDT) MIME-Version: 1.0 From: Stefan Kangas Date: Fri, 13 Sep 2019 13:03:06 +0200 Message-ID: Subject: Re: bug#32120: 26.1; In python.el tab-width should default to 4 To: Carlos Pita Content-Type: multipart/alternative; boundary="000000000000892c7205926d3344" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32120 Cc: Glenn Morris , Robert Pluim , Noam Postavsky , 32120@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 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: -1.0 (-) --000000000000892c7205926d3344 Content-Type: text/plain; charset="UTF-8" tags 32120 + notabug close 32120 quit Carlos Pita writes: > Ah ok, it seems to me that when he mentioned that I was somehow > confused about the role of tab-width regarding tab steps and, later, > I'd probably forgotten about that part of the reference and was > thinking about the PEP only. I'm closing this then. Thanks! The conclusion of the discussion was that this should be closed, but it was never done at the time. I'm therefore closing this now. Best regards, Stefan Kangas --000000000000892c7205926d3344 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
tags 32120 + notabug
close 32120
quit

Carlos = Pita <carlosjosepita@gmail.c= om> writes:

> Ah ok, it seems to me that when he mentioned= that I was somehow
> confused about the role of tab-width regarding = tab steps and, later,
> I'd probably forgotten about that part of= the reference and was
> thinking about the PEP only. I'm closing= this then. Thanks!

The conclusion of the discussion was that this s= hould be closed, but it
was never done at the time.=C2=A0 I'm theref= ore closing this now.

Best regards,
Stefan Kangas
--000000000000892c7205926d3344-- From unknown Sat Jun 21 10:38:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 11 Oct 2019 11:24:10 +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