From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: TRAMP and Ruby mode, tabs not being honored Date: Mon, 20 Nov 2017 10:15:57 +0100 Message-ID: <87ine5paya.fsf@gmx.de> References: <20171115034048.GA24198@rmail> <87po8emtz9.fsf@gmx.de> <20171119235011.GA26859@rmail> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1511169410 26164 195.159.176.226 (20 Nov 2017 09:16:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 20 Nov 2017 09:16:50 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Kevin Faulkner Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 20 10:16:45 2017 Return-path: Envelope-to: geh-help-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 1eGiC3-0006Ox-UW for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 10:16:44 +0100 Original-Received: from localhost ([::1]:56200 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGiCA-0004X0-W6 for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Nov 2017 04:16:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57791) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eGiBT-0004Vh-2w for help-gnu-emacs@gnu.org; Mon, 20 Nov 2017 04:16:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eGiBM-0003Np-VZ for help-gnu-emacs@gnu.org; Mon, 20 Nov 2017 04:16:07 -0500 Original-Received: from mout.gmx.net ([212.227.17.20]:57478) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eGiBM-0003MQ-J3 for help-gnu-emacs@gnu.org; Mon, 20 Nov 2017 04:16:00 -0500 Original-Received: from detlef.gmx.de ([212.86.61.51]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lqyi7-1el57l0BUZ-00eeXc; Mon, 20 Nov 2017 10:15:58 +0100 In-Reply-To: <20171119235011.GA26859@rmail> (Kevin Faulkner's message of "Sun, 19 Nov 2017 23:50:11 +0000") X-Provags-ID: V03:K0:4rjeHaHQCfl1y89jj7f5AhSUIJvC1n0xgwJ61HEcuy2TaVXi+wo Mn4R2BdQj++3pgfZxBoYqEKr6wFshjGMlb1cLimsNkBq3WVwLezAOSS05UugiqrQpRztTnl 2xI06zvNnJQjyTYLy+FoYnkEQJ3maiXwhS0JcDJHcIukba+XFkhH19CCY5R8BA3UNh+Tm4z 9mtv9OUWe7mRqr6Bgg5MA== X-UI-Out-Filterresults: notjunk:1;V01:K0:pGZ1sQoyeds=:LE0mBBbv6f+MTVY0EOrq+x 6DYGBdDpaK5LwnWmkpChvl3dqnBm6AD/A+uQKDMIdowqZQmcu8nRrbQA46B2+N0wy32Z5Gr3i j+HbWS4AVqR5gupmQ0YoMRLm9ZGJHD3lf9vSM9D8lzOzk2ujyhfKiNRznkOAFuZZnILQkbjvV VOwl911rCNCXr2pB6gkbO+bjW5hk7ks767YMh8ddzFC5D8ODem9cwtwLJX9OznIVNQq+2qxtl GzcapmaJKalI3PZT/BUHXZ3i1V41nV0i/C0Buj6bVPs+ndQmRbNprBMXBYy2HjkSQZNOCRzvr TDaCJkL2Y4usY+CEUlCo0iNJCLG9jqgUBb/Enk77qcRJjT10miXSAlxzjtK1IyjOiNqntnXx2 SyFxx8+fJ2PjV7nTihzpM/A6HS1LcRfp5E+2v4VeIm9HMp+abOGwoQYh+L6rddw7zo0UiSodg tCiv2dawmNNCBN3vUjH0wRNGQ/dFqsbtmVd38WhpEp6sGd98CF1E8SJxmwv5+k77kLIe41bFF InLfmuLuovRUFL75tuFeIbW2IjV1OuEn8XFRTGA6Gqw6Y9SDmXoQB9WVfq7PuIuKRlOvxlL8A FYh8zkveqPUqCGNzN+6VCdqoEp4JS5+TxJEC/eyIxe9SYPVHmxFz2qL/QWd6uVxQgU5EEmAAh oJBvmyF+oS9hwKMXsiNHHfqvIim7/QXfKhcfbMFNRGeOA9Z46e/epwYDpj0GzrZqewH5DBgzx wbiFfTODmG8aoU7/zbPu9ZgW8EmMXSMrNNYfNUqv+JS9KrfiQNLn4I8NrA5jTz15ZE/VYs7z X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.17.20 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115003 Archived-At: Kevin Faulkner writes: Hi Kevin, [pls keep help-gnu-emacs@gnu.org in Cc, for the archives] >> I have tried to reproduce the problem with the most simple >> configuration. I have written a file ~/tmp/foo.el: >> >> --8<---------------cut here---------------start------------->8--- >> (setq indent-tabs-mode t >> tab-width 3) >> (add-hook 'ruby-mode-hook >> (lambda () >> (setq indent-tabs-mode t >> tab-width 2))) >> --8<---------------cut here---------------end--------------->8--- >> >> Then I have opened Emacs 27 with a test ruby file, simulating the sshx >> method: >> >> $ ~/src/emacs/src/emacs -Q -l ~/tmp/foo.el -l tramp /sshx::~/tmp/estcall.rb >> >> When I edit estcall.rb, and press after a block, is inserted. >> >> Could you, pls, check this recipe in your environment? > > Michael, thank you for looking into this, I believe you have fixed my issue > I tried to load this as you specified, should I keep this loaded in my > .dirs-local.el or my local .emacs (init)? It depends. If you want ruby-mode always use these settings, you could put the code into your .emacs. Directory local settings are useful for a kind of "project specific" settings, i.e. if the settings shall be applied only to files at a given location. > What was I doing incorrectly? > I have tried to remove the "-Q", and I still load the file in using -l, > and I don't think it works, does that mean it could be one of my > packages that I have installed? I have a few, as i think you can see in > the configuration post above, but I don't think they are too out of the > ordinary. Should I consider upgrading? Using recent package versions might help. If it doesn't, you must bisect your config. Comment out all loaded packages and half of your .emacs, start Emacs again. If the problem still exist, it is in the active part of your .emacs, otherwise it is in the commented part. Continue to bisect with the non-working part, and so on. If it isn't your .emacs, then load one package after the other, and retest. This way you shall be able to identify the culprit. > Again, thank you for your time Michael (and others reading this) > > -Kevin Best regards, Michael.