[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Pkg-octave-devel] Bug#515962: marked as done (octave3.0-emacsen: octave mode does not respect tab-width)



Your message dated Wed, 18 Feb 2009 22:31:50 +0100
with message-id <20090218213150.GA5211@pc049-u864.lyon.inserm.fr>
and subject line Re: [Pkg-octave-devel] Bug#515962: Bug#515962: [Fwd: Re: Bug#515962: octave3.0-emacsen: octave mode does not respect tab-width]
has caused the Debian Bug report #515962,
regarding octave3.0-emacsen: octave mode does not respect tab-width
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
515962: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515962
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: octave3.0-emacsen
Version: 1:3.0.1-6lenny3
Severity: normal

The octave mode does respect user's tab-width variable. 
in octave-mode.el:

(defcustom octave-block-offset 2
  "Extra indentation applied to statements in Octave block structures."
  :type 'integer
  :group 'octave)

"2" should be "tab-width", I believe. 

regards,
Vladimir 

-- System Information:
Debian Release: 5.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26.7 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages octave3.0-emacsen depends on:
ii  debianutils              2.31            Miscellaneous utilities specific t
ii  emacs-snapshot [emacsen] 1:20090207-1    The GNU Emacs editor (development 
ii  emacs22-gtk [emacsen]    22.2+2-5        The GNU Emacs editor (with GTK use
ii  octave3.0                1:3.0.1-6lenny3 GNU Octave language for numerical 

octave3.0-emacsen recommends no packages.

octave3.0-emacsen suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
* John W. Eaton <jwe@octave.org> [2009-02-18 11:39]:

> On 18-Feb-2009, Vladimir Zhuravlev wrote:
> 
> | I set tab-width to 8, but Octave mode does not care about this.
> | Then I tell it to indent (say, M-C-q), it uses tabs of two
> | spaces,
> | which is _not_ nice.
> 
> It's not that unfriendly, and it seems to be the same way other modes
> define indents.  They don't seem to be doing it with tab-width
> either.  So maybe you should ask the Emacs developers why?  I don't
> know, I think Kurt just followed the lead of the other modes when he
> first wrote the Octave mode.

I think that setting tab-width and setting the amount of offset in
indentation are two orthogonal concepts, at least for a normal usage of
Emacs.  The tab-width variable is used for specifying the amount of columns
a tab (0x08 character) would be represented visually in the frame.  On the
other hand, the indentation offset is the amount of columns a block should
be shifted to the left in respect to its parent statement.  There is nothing
incoherent in having tab-stop = 8 and octave-block-offset = 2, for instance.

I think that this is the reason why no other Emacs mode author would have
this strange idea of tying the value of the indentation offset to the value
of tab-width.

At any rate, octave-block-offset is a custom variable.  If you are not happy
with the default value of 2, nothing prevents you from setting it to another
value using custom-set-variables in your ~/.emacs.  Try the following:

    (custom-set-variables '(octave-block-offset 8))

I am hereby closing this bug report.  If you disagree, feel free to reopen
this bug report but, please, only do it if you have strong arguments against
what we wrote above.

-- 
Rafael


--- End Message ---

Reply to: