[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PSPP-BUG: [bug #33234] PSPPIRE opens empty output screen on start
From: |
Ben Pfaff |
Subject: |
Re: PSPP-BUG: [bug #33234] PSPPIRE opens empty output screen on start |
Date: |
Mon, 09 May 2011 21:36:54 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
John Darrington <address@hidden> writes:
> On Sat, May 07, 2011 at 09:52:30PM +0000, Ben Pfaff wrote:
>
> The reason that PSPPIRE opens an empty output window on startup is that
> psppire.c's "initialize" function does, as its last step, the following:
>
>
> execute_const_syntax_string (data_window, "");
>
>
> and running any syntax (even empty syntax) causes that syntax to be
> written to
> the output window as a side effect.
>
> John, you introduced that call (in slightly different form) without
> further
> explanation in commit fe76b9c2c "Rewrote the command line parser using
> argp."
> Removing it seems to have no ill effects. Do you know of a reason to
> keep
> it?
>
>
> As I recall, it was necessary to ensure that any syntax from, say,
> /etc/pspp/rc
> got executed. Maybe it is no longer required. If all the startup options
> continue to work properly, please feel free to remove it.
PSPPIRE doesn't run an rc file or other syntax at startup. The
code to do that is in src/ui/terminal. So I've removed the
execute_const_syntax_string() call now.
Did some earlier version of PSPPIRE run an rc syntax file at
startup time? Do you think that it should? If so, we can add
code to do that.
--
Ben Pfaff
http://benpfaff.org