all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Kevin Faulkner <kondor6c@lazytree.us>
Cc: help-gnu-emacs@gnu.org
Subject: Re: TRAMP and Ruby mode, tabs not being honored
Date: Mon, 20 Nov 2017 10:15:57 +0100	[thread overview]
Message-ID: <87ine5paya.fsf@gmx.de> (raw)
In-Reply-To: <20171119235011.GA26859@rmail> (Kevin Faulkner's message of "Sun,  19 Nov 2017 23:50:11 +0000")

Kevin Faulkner <kondor6c@lazytree.us> 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 <RET> after a block, <TAB> 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.



      parent reply	other threads:[~2017-11-20  9:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20171115034048.GA24198@rmail>
2017-11-15  5:17 ` TRAMP and Ruby mode, tabs not being honored Kevin Faulkner
2017-11-19 10:40   ` Michael Albinus
     [not found]     ` <20171119235011.GA26859@rmail>
2017-11-20  9:15       ` Michael Albinus [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ine5paya.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kondor6c@lazytree.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.