POV-Ray : Newsgroups : povray.windows : tab size settings Server Time
23 Nov 2024 18:26:14 EST (-0500)
  tab size settings (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Rune
Subject: tab size settings
Date: 6 Aug 2004 07:18:29
Message: <41136905$1@news.povray.org>
In POV-Ray 3.6, when I go to the menu Editor > Editor preferences >
Language/Tabs and select a tab size of 3 spaces, it only applies to the
current scene I'm editing. How can I change it once and for all, for all
scenes?

I don't remember having this problem in POV-Ray 3.5.

I'm using Windows XP professional.

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Hughes, B 
Subject: Re: tab size settings
Date: 6 Aug 2004 09:11:51
Message: <41138397$1@news.povray.org>
"Rune" <run### [at] runevisioncom> wrote in message
news:41136905$1@news.povray.org...
> In POV-Ray 3.6, when I go to the menu Editor > Editor preferences >
> Language/Tabs and select a tab size of 3 spaces, it only applies to the
> current scene I'm editing. How can I change it once and for all, for all
> scenes?
>
> I don't remember having this problem in POV-Ray 3.5.
>
> I'm using Windows XP professional.

XP Home here. Seems that, for me, all new files use the tab setting I set,
old files (open or not) will retain whatever tab setting they previously
had. That's about how I always thought it worked, although I couldn't
guarantee anything.  So if you're trying to get any and all files to use a
new tab setting when opening other files, or switching among ones in the
editor, I don't recall that ever happening. Only while open and making a tab
setting change.

FYI, I don't use 'convert tabs to spaces' but I do use 'follow language
scoping' if that happens to make any difference at all. I'd look at 3.5's
editor too but I lost it recently while trying to run 3.0! ...needing a
reinstall of those...

Bob H.


Post a reply to this message

From: Rune
Subject: Re: tab size settings
Date: 6 Aug 2004 11:59:26
Message: <4113aade$1@news.povray.org>
Hughes, B. wrote:
> XP Home here. Seems that, for me, all new files use the tab setting I
> set, old files (open or not) will retain whatever tab setting they
> previously had. That's about how I always thought it worked, although
> I couldn't guarantee anything.

New files don't even seem to consistently use the changed setting after I
have closed POV-Ray and opened it again. Old files openened before with 3.5
but not before with 3.6 also have the default 8 spaces instead of 3 spaces
as I have always used.

> So if you're trying to get any and all files to use a
> new tab setting when opening other files, or switching
> among ones in the editor, I don't recall that ever
> happening.

That's a pity. I really think I got it to work that way in POV-Ray 3.5 under
Windows 98, because I don't remember having had to change the tab settings
for years.

:(

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Hughes, B 
Subject: Re: tab size settings
Date: 6 Aug 2004 13:55:36
Message: <4113c618$1@news.povray.org>
"Rune" <run### [at] runevisioncom> wrote in message
news:4113aade$1@news.povray.org...
> Hughes, B. wrote:
> > XP Home here. Seems that, for me, all new files use the tab setting I
> > set, old files (open or not) will retain whatever tab setting they
> > previously had. That's about how I always thought it worked, although
> > I couldn't guarantee anything.
>
> New files don't even seem to consistently use the changed setting after I
> have closed POV-Ray and opened it again. Old files openened before with
3.5
> but not before with 3.6 also have the default 8 spaces instead of 3 spaces
> as I have always used.
>
> > So if you're trying to get any and all files to use a
> > new tab setting when opening other files, or switching
> > among ones in the editor, I don't recall that ever
> > happening.
>
> That's a pity. I really think I got it to work that way in POV-Ray 3.5
under
> Windows 98, because I don't remember having had to change the tab settings
> for years.

Well, it uses what the currently open file was using. I just don't believe
it can, or is even supposed to, reset the tab spacing for old files. I had a
radiosity render going so I couldn't actually check on closing POV and
restarting until now, it still uses the setting I put in there (4) even when
all files were closed with only a completely new file started afterward.

Yet, what you're saying is that everything keeps going back to 8 space tabs.
I'm trying to think if that happened before, too, because it could have in a
different 3.6.  Are you using 3.6.0.icl8.win32 there?

I definitely know I found myself making a tab setting change a short while
ago to get back to what I wanted--- oh, no wait, that was probably due to
being in a 8 space tabbed file at the time and I wanted to change its
tabbing. Altogether different thing. Unless, of course, what you talk of is
about a universal change affecting any and every file automatically. Like I
say, I didn't think it ever worked that way. Only that it keeps track of
individual file properties.

Keep in mind that I'm a person who let 8 space tabbing alone 97% of the time
in the past, so there's still a good chance the editor isn't doing as
expected.

Bob H.


Post a reply to this message

From: Rune
Subject: Re: tab size settings
Date: 6 Aug 2004 14:35:42
Message: <4113cf7e@news.povray.org>
Hughes, B. wrote:
> Keep in mind that I'm a person who let 8 space tabbing alone 97% of
> the time in the past, so there's still a good chance the editor isn't
> doing as expected.

Ah, I can see how you wouldn't easily notice it going "back" to 8 spaces all
the time, if it happens.

But still, what I want most of all is to have no per-file setting at all. If
I could just have it use 3 spaces in *all* files I'd like that. Maybe there
is some registry setting I can change, but I wouldn't know where to look...

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Hughes, B 
Subject: Re: tab size settings
Date: 7 Aug 2004 02:10:58
Message: <41147272$1@news.povray.org>
Hey Rune, me again. I thought I might had found a registry entry for you to
modify, since you brought that up. It's called CurrentTab and located at
HKEY_CURRENT_USER\Software\POV-Ray\v3.6\POV-Edit

Funny thing though, it was showing as 0x00000000 (0) and I changed it to
(decimal) 1 then restarted POV 3.6 and opened a file I knew to have 8-space
tabs. It used 4-space tabs instead, as per the setting I was using.

I then went back and looked at the registry entry just to double-check,
since those things can change due to programs being run, and it was now
0x00000002 (2). I hadn't located anything that it might relate to in the
editor setup. Apparently this setting keeps changing on its own, was once
again showing as 0 and another time 1 while I restarted POV and open and
closed files. I'm not able to track what it's doing.

Anyway... I checked with a 8-spaced tab file again in version 3.5, so I
would know proof-positive it was really converting them to 4-spaced tabs
over in 3.6. Also began a new file. Same result, everything appears to use
the current setting. Not sure what that means for you. Maybe making that
registry change would be worth a try just to see if it has any affect. Last
attempt of making a registry change here left the CurrentTab = 2, like I had
done, after POV was closed and the files were all using 4-spaced tabs;
unless the tab space were actual spaces not tabs, as does seem to happen for
some files for unknown reasons (previous edits outside POV?).

Bob H.


Post a reply to this message

From: Severi Salminen
Subject: Re: tab size settings
Date: 7 Aug 2004 03:36:10
Message: <4114866a$1@news.povray.org>
Hughes, B. wrote:
> Hey Rune, me again. I thought I might had found a registry entry for you to
> modify, since you brought that up. It's called CurrentTab and located at
> HKEY_CURRENT_USER\Software\POV-Ray\v3.6\POV-Edit

Could you find the same entry at some other key? Like 
HKEY_LOCAL_MACHINE? Try to search all the instances.

I don't have POV-Ray installed so I can't check it now.

S.S.


Post a reply to this message

From: Hughes, B 
Subject: Re: tab size settings
Date: 7 Aug 2004 03:50:16
Message: <411489b8$1@news.povray.org>
"Severi Salminen" <sev### [at] NOT_THISsibafi> wrote in message
news:4114866a$1@news.povray.org...
> Hughes, B. wrote:
> > Hey Rune, me again. I thought I might had found a registry entry for you
to
> > modify, since you brought that up. It's called CurrentTab and located at
> > HKEY_CURRENT_USER\Software\POV-Ray\v3.6\POV-Edit
>
> Could you find the same entry at some other key? Like
> HKEY_LOCAL_MACHINE? Try to search all the instances.
>
> I don't have POV-Ray installed so I can't check it now.

Actually, that's where I looked first, thinking I knew where to look. Glad
you asked about that though, because I had not searched until now and found
this:

HKEY_USERS\S-1-5-21-3509260213-1847237080-4219127699-1006\Software\POV-Ray\v
3.6\POV-Edit

I'm wondering what this number says to POV. My 3.5 installation shows
CurrentTab is 2 and 3.6 is 1. 3.5 is set to 8 spaces, 3.6 set to 4 spaces,
but it has been 0 so I have no idea what it's really doing. I thought it
might be tab spacing but that's another setting called TabSize.

Bob H.


Post a reply to this message

From: Rune
Subject: Re: tab size settings
Date: 9 Aug 2004 16:17:24
Message: <4117dbd4$1@news.povray.org>
Hughes, B. wrote:
> Hey Rune, me again. I thought I might had found a registry entry for
> you to modify, since you brought that up. It's called CurrentTab and
> located at HKEY_CURRENT_USER\Software\POV-Ray\v3.6\POV-Edit

I tried changing this one but I'm not sure it had any effect, because the
behavior seemed to remain the same.

Anyway, it seems the behavior is as follow: If the tab spaces is set
specifically for a file, then that specific file will always use that amount
of spaces. For files being opened that have not previously been opened in
3.6 as well as for new files being created, the amount of spaces will equal
that of the previously active file is the editor. This is why when I created
new files and opened files they would sometimes have 3 spaces and sometimes
8 regardless of what setting I used.

Anyway, the solution for me seemed to be to simply close all files in the
editor, *then* set the tab setting to 3 spaces, and then all subsequent
files being opened or created will also have 3 spaces. The reason it looked
so confusing at first was that I had a lot of files open in the editor at
the same time...

Rune
-- 
3D images and anims, include files, tutorials and more:
rune|vision:  http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk


Post a reply to this message

From: Chris Cason
Subject: Re: tab size settings
Date: 9 Aug 2004 20:17:14
Message: <4118140a@news.povray.org>
1.2.6.8  The Tab Spacing Setting

The Tab spacing setting is a good example of a setting that applies to only
the current file and to any new files opened after that point. Like the
language setting, it applies only to the current file. That is, changing the
tab spacing for one file does not automatically change it for all the other
files that are already open. Like the language setting, a files tab setting is
stored with the MRU list, so if you re-open a file from the MRU list, the old
setting comes back. Unlike the Language setting, however, the new value you
apply to the tab value becomes the default for any file opened or created
after that point (apart from those in the MRU list). So if you change the tab
setting to, say, 3, the setting for the current file changes, but not that of
any other open file. Any new file that you create or load from that point,
however, will be created with a default tab spacing of 3.


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.