RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account
Forums → Community Support →

Saving user settings for Edit

Subscribe to Saving user settings for Edit 10 posts, 6 voices

 
Jul 16, 2019 8:46pm
Avatar Dave Barrass (520) 14 posts

Has anybody else noticed that recently Edit is not setting its display width to user settings correctly.

I’m running a Pi 3 booting from a FAT32 SD card to a USB attached harddrive with my preferred settings for Edit (colours, font, font size and display width) saved as an Obey file in Boot.Choices.Boot.Tasks. Yesterday I download and installed the BCM2835Dev image (dated 9 July 2019) and found that trying to load a text file into Edit produced a long, thin window, the display width showing as -16, the font, etc looked OK. Trying today’s image caused the same long thin window. I also updated the HardDisc4 to todays version. Creating a new file in Edit opened a window that looked very wide, but as soon as I tried to resize it, it transformed into a long, thin window.

I rolled back to an image dated 3 July and the same file open up correctly.

Looking through my printed RISC OS 5 User Guide I found that it described using a Desktop file saved in Boot.Choices.Boot for user preferred settings. This I did, but although it contained the correct value for the display width in the resulting file it didn’t seem to be applied. The font/font size, etc was OK.

Is it just me?
If it is, help please.

 
Jul 16, 2019 8:52pm
Avatar Rob Heaton (274) 488 posts

I have noticed here that Edit won`t save the BASIC option to not `Strip Line Numbers`

Version number here is 1.73

 
Jul 17, 2019 6:34am
Avatar David Pitt (3386) 1226 posts

Has anybody else noticed that recently Edit is not setting its display width to user settings correctly.

On a Titanium, with RISC OS 5.27 (16 Jul 2019):-

Setting Edit$Options from the command line and restarting !Edit does show the issue.

*set Edit$Options A32

The above gives a negative ‘Work Area’ value and a thin window on a resize window drag.

It is OK on RISC OS 5.27 (03 Jul 2019)

Edit is at the same version, 1.73 (03-Apr-15), on both ROMs.

 
Jul 17, 2019 2:55pm
Avatar David Pitt (3386) 1226 posts

Wrong answer. Deleted.

 
Jul 17, 2019 3:06pm
Avatar nemo (145) 2105 posts
#define txt1_MAX(a,b) ((a)>(b)?(b):(a))

I’m certain you don’t mean that.

 
Jul 17, 2019 3:49pm
Avatar David Pitt (3386) 1226 posts

I’m certain you don’t mean that.

Oops!! Previous answer deleted.

 
Jul 18, 2019 11:44am
Avatar David Pitt (3386) 1226 posts

The ‘thin window’ thing looks to be associated with RISC_OSLib 6.02. More specifically RISC_OSLib.rlib.c.txtar. A build that reverted to the version from 6.01 evaded the issue. That is as far as I get, I don’t have enough C to see what the real problem is.

HTH.

 
Jul 18, 2019 12:27pm
Avatar Jeffrey Lee (213) 5982 posts

Yeah, that looks like it would be the problem. It’s been caused by replacing the min/max functions with macros, which causes some of the parameters to be evaluated multiple times (which isn’t a good thing if your parameters have side-effects, like txtar__readoptnum).

 
Jul 28, 2019 4:54pm
Avatar Dave Barrass (520) 14 posts

I’ve just downloaded and installed today’s (28 July) Beta RPi ROM and it looks as though the long thin widow problem has been banished.

So ‘Thank You’ to David Pitt and Jeffrey Lee for their investigations, and to whoever fixed it.

 
Jul 28, 2019 4:58pm
Avatar Clive Semmens (2335) 2537 posts

Is that long thin widow one of Hoffnung’s French widows in every bedroom, who offer delightful prospects?

Reply

To post replies, please first log in.

Forums → Community Support →

Search forums

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Description

Community-provided support for all users of RISC OS.

Voices

  • Dave Barrass (520)
  • Rob Heaton (274)
  • David Pitt (3386)
  • nemo (145)
  • Jeffrey Lee (213)
  • Clive Semmens (2335)

Options

  • Forums
  • Login
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Beast theme is based on Beast's default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Beast © 2006 Josh Goebel and Rick Olson
This site runs on Rails

Hosted by Arachsys