all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Java tab indentation breaks
@ 2013-04-18 20:12 Andrew Pennebaker
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Pennebaker @ 2013-04-18 20:12 UTC (permalink / raw)
  To: Emacs Help

[-- Attachment #1: Type: text/plain, Size: 827 bytes --]

When I try to indent in java-mode, Emacs throws an error.

Trace:

$ emacs -nw
C-x h DEL
M-x java-mode
public class Test { RET
TAB
Minibuffer: Error evaluating offset + for inclass: Got invalid value
tab-width

C-h v tab-width
8

System:

$ specs emacs os
Specs:

specs 0.4
https://github.com/mcandre/specs#readme

emacs --version
GNU Emacs 24.2.1
Copyright (C) 2012 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
OS Name:                   Microsoft Windows XP Professional
OS Version:                5.1.2600 Service Pack 3 Build 2600

-- 
Cheers,

Andrew Pennebaker
www.yellosoft.us

[-- Attachment #2: Type: text/html, Size: 1490 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Java tab indentation breaks
       [not found] <mailman.24312.1366315936.855.help-gnu-emacs@gnu.org>
@ 2013-04-18 21:43 ` Alan Mackenzie
  2013-04-18 22:19   ` Andrew Pennebaker
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Mackenzie @ 2013-04-18 21:43 UTC (permalink / raw)
  To: help-gnu-emacs


Hi, Andrew.

Andrew Pennebaker <andrew.pennebaker@gmail.com> wrote:
> [-- text/plain, encoding 7bit, charset: ISO-8859-1, 41 lines --]

> When I try to indent in java-mode, Emacs throws an error.

> Trace:

> $ emacs -nw
> C-x h DEL
> M-x java-mode
> public class Test { RET
> TAB
> Minibuffer: Error evaluating offset + for inclass: Got invalid value
> tab-width

> C-h v tab-width
> 8

Does the problem occur when you start '$ emacs -nw -Q'?  It doesn't with
me.

Might there possibly be something in your .emacs contributing towards
the problem?

[ .... ]

> -- 
> Cheers,

> Andrew Pennebaker
> www.yellosoft.us

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Java tab indentation breaks
  2013-04-18 21:43 ` Java tab indentation breaks Alan Mackenzie
@ 2013-04-18 22:19   ` Andrew Pennebaker
  2013-04-19  0:19     ` Andrew Pennebaker
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Pennebaker @ 2013-04-18 22:19 UTC (permalink / raw)
  To: Emacs Help

[-- Attachment #1: Type: text/plain, Size: 951 bytes --]

Thank you. I meant to type -Q, honest, but typed -nw by mistake. :P Yes,
something in my .emacs is to blame.

https://github.com/mcandre/dotfiles/blob/master/.emacs
On Apr 18, 2013 5:59 PM, "Alan Mackenzie" <acm@muc.de> wrote:

>
> Hi, Andrew.
>
> Andrew Pennebaker <andrew.pennebaker@gmail.com> wrote:
> > [-- text/plain, encoding 7bit, charset: ISO-8859-1, 41 lines --]
>
> > When I try to indent in java-mode, Emacs throws an error.
>
> > Trace:
>
> > $ emacs -nw
> > C-x h DEL
> > M-x java-mode
> > public class Test { RET
> > TAB
> > Minibuffer: Error evaluating offset + for inclass: Got invalid value
> > tab-width
>
> > C-h v tab-width
> > 8
>
> Does the problem occur when you start '$ emacs -nw -Q'?  It doesn't with
> me.
>
> Might there possibly be something in your .emacs contributing towards
> the problem?
>
> [ .... ]
>
> > --
> > Cheers,
>
> > Andrew Pennebaker
> > www.yellosoft.us
>
> --
> Alan Mackenzie (Nuremberg, Germany).
>
>

[-- Attachment #2: Type: text/html, Size: 1568 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Java tab indentation breaks
  2013-04-18 22:19   ` Andrew Pennebaker
@ 2013-04-19  0:19     ` Andrew Pennebaker
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Pennebaker @ 2013-04-19  0:19 UTC (permalink / raw)
  To: Emacs Help

[-- Attachment #1: Type: text/plain, Size: 1367 bytes --]

I seem to have fixed the indentation errors (including TAB sometimes
indenting to the absolute start of the line) with setq-default:

https://github.com/mcandre/dotfiles/commit/ce37a07f7fb7df3c15c6fde436150cb6b9cf5e96#L0R232


On Thu, Apr 18, 2013 at 6:19 PM, Andrew Pennebaker <
andrew.pennebaker@gmail.com> wrote:

> Thank you. I meant to type -Q, honest, but typed -nw by mistake. :P Yes,
> something in my .emacs is to blame.
>
> https://github.com/mcandre/dotfiles/blob/master/.emacs
> On Apr 18, 2013 5:59 PM, "Alan Mackenzie" <acm@muc.de> wrote:
>
>>
>> Hi, Andrew.
>>
>> Andrew Pennebaker <andrew.pennebaker@gmail.com> wrote:
>> > [-- text/plain, encoding 7bit, charset: ISO-8859-1, 41 lines --]
>>
>> > When I try to indent in java-mode, Emacs throws an error.
>>
>> > Trace:
>>
>> > $ emacs -nw
>> > C-x h DEL
>> > M-x java-mode
>> > public class Test { RET
>> > TAB
>> > Minibuffer: Error evaluating offset + for inclass: Got invalid value
>> > tab-width
>>
>> > C-h v tab-width
>> > 8
>>
>> Does the problem occur when you start '$ emacs -nw -Q'?  It doesn't with
>> me.
>>
>> Might there possibly be something in your .emacs contributing towards
>> the problem?
>>
>> [ .... ]
>>
>> > --
>> > Cheers,
>>
>> > Andrew Pennebaker
>> > www.yellosoft.us
>>
>> --
>> Alan Mackenzie (Nuremberg, Germany).
>>
>>


-- 
Cheers,

Andrew Pennebaker
www.yellosoft.us

[-- Attachment #2: Type: text/html, Size: 2608 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-04-19  0:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.24312.1366315936.855.help-gnu-emacs@gnu.org>
2013-04-18 21:43 ` Java tab indentation breaks Alan Mackenzie
2013-04-18 22:19   ` Andrew Pennebaker
2013-04-19  0:19     ` Andrew Pennebaker
2013-04-18 20:12 Andrew Pennebaker

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.