Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs inserting tabs for autos and verilog-pretty-declarations. How to disable? #1138

Closed
veripoolbot opened this issue Mar 14, 2017 · 4 comments

Comments

@veripoolbot
Copy link
Collaborator


Author Name: Shareef Jalloq
Original Redmine Issue: 1138 from https://www.veripool.org


Hi there,

I've just switched to Emacs 24.5 from an old XEmacs version I've been using since the dawn of time. The one issue I can't figure out is how to prevent Emacs using tabs to indent when using some of the Verilog-Mode functionality. So far I've seen this when using (C-c C-i) for lining up declarations and also for AUTOINST when lining up the port list.

I also updated the Verilog-Mode version to the latest when I moved so I've just gone back to an old version and tried XEmacs to make sure the problem lies with Emacs.

Any idea what switch I need to throw to prevent tabs being used? I thought I could get round it using (untabify (point-min) (point-max)) but this seems to hang in some of my files.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Shareef Jalloq
Original Date: 2017-03-14T18:14:42Z


In typical fashion, as soon as I ask the question, I find the answer: (setq-default indent-tabs-mode nil).

Please close this. Thanks.

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Yoram Stern
Original Date: 2017-10-13T05:25:40Z


Hi.
For AUTO this works fine for me too.
But it does not work form me for indent.

I use batch:
alias autover '/usr/bin/emacs --load verilog-mode.el --batch !* -f verilog-batch-auto'
Works ok.
But
alias autoind '/usr/bin/emacs --load verilog-mode.el --batch !* -f verilog-batch-indent'
Stays with tabs.

Any idea?

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Shareef Jalloq
Original Date: 2017-10-13T09:07:21Z


Wilson will be along shortly...

@veripoolbot
Copy link
Collaborator Author


Original Redmine Comment
Author Name: Wilson Snyder (@wsnyder)
Original Date: 2017-10-13T12:39:12Z


I use batch: alias autover '/usr/bin/emacs --load verilog-mode.el --batch !* -f verilog-batch-auto' Works ok. But alias autoind '/usr/bin/emacs --load verilog-mode.el --batch !* -f verilog-batch-indent' Stays with tabs.

indent-tabs-mode nil means that any new indentation will use spaces. If the reindentation inserts new whitespace it will use spaces, if there's already a tab it won't change it. If you want to remove existing tabs, untabify is the way to do that (outside verilog-mode). I can't explain why that would ever hang, it's a pretty simple function, sorry but you'll need to debug it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant