From xemacs-m  Fri Dec 20 12:15:32 1996
Received: from mailhost.lanl.gov (mailhost.lanl.gov [128.165.3.12])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id MAA14962 for <xemacs-beta@xemacs.org>; Fri, 20 Dec 1996 12:15:31 -0600 (CST)
Received: from xdiv.lanl.gov (xdiv.lanl.gov [128.165.116.106]) by mailhost.lanl.gov (8.8.4/8.8.3) with ESMTP id LAA00893 for <xemacs-beta@xemacs.org>; Fri, 20 Dec 1996 11:15:32 -0700 (MST)
Received: from branagh.lanl.gov (branagh.lanl.gov [128.165.16.72]) by xdiv.lanl.gov (8.6.12/8.6.12) with ESMTP id LAA07170; Fri, 20 Dec 1996 11:15:35 -0700
Received: by branagh.lanl.gov (SMI-8.6/SMI-SVR4)
	id LAA10114; Fri, 20 Dec 1996 11:13:14 -0700
Date: Fri, 20 Dec 1996 11:13:14 -0700
Message-Id: <199612201813.LAA10114@branagh.lanl.gov>
From: John Turner <turner@xdiv.lanl.gov>
To: xemacs-beta@xemacs.org
Subject: Save Options
Reply-To: turner@lanl.gov

Here are a few messages I traded with stig on xemacs-beta on issues
related to Save Options soon after 19.14's release.  Just thought I'd
bring them up again.

I know this stuff may be too "fluffy" for 19.15.

NOTE: Some msgs. are slightly edited.

--
John A. Turner         |"Music is the cup which holds the wine of silence;
Los Alamos Natl. Lab.  |  sound is that cup, but empty;
e-mail: turner@lanl.gov|    noise is that cup, but broken."
                       |                        - Robert Fripp

This is an RFC 1153 digest.
(4 messages)
----------------------------------------------------------------------

Date: Mon, 1 Jul 96 00:37 PDT
From: stig@hackvan.com (Stig)
To: turner@lanl.gov
Cc: xemacs-beta@xemacs.org
Subject: Re: Better way to Save Options....
Message-Id: <m0uadY2-000HE5C@hackvan.com>
Content-Length: 1198
In-Reply-To: <199606222256.QAA07481@gielgud.lanl.gov.xdiv>
References: <199606222256.QAA07481@gielgud.lanl.gov.xdiv>
X-Face: V3#TB_`^vld7L-O4+Qk1%QYVRe6B2)Ia$tWrjprU|P'pM:Y{P5Io@~qxuL:&.;*?KU5.w_J
 ^t3S-[aLM9E*t3PKQ8FJs[+U5BYh4G'6xody^[oR"fukpjVI}3m!<;f)Ptipi4lD,R70]K3$pK"#c`
 [3S!^H~;A&1oo&;)-"R2]5%unJ8QeoXlo7n+h(rLQS?]SCWnHvm3/v7*RXE`,/;8g6j)&/

John Turner wrote:

> The format for Save Options changed between 19.13 and 19.14.  If you
> wish to use both versions, to the following:
> 
> 1) First, save the portion at the end of your .emacs that was created
>    by Save Options under XEmacs 19.13 as a new file, say
>    .xemacs-options-19.13.  That is, everything between, and including,
>    the lines: 
> 
> ;; Options Menu Settings
> ;; =====================
> 
> and
> 
> ;; ============================
> ;; End of Options Menu Settings
> 
> 2) Then add this bit of code in its place:
> 
> ;; Load options for XEmacs 19.13.
> (if (= emacs-minor-version 13)
>     (load "~/.xemacs-options-19.13"))
> 
>    When you use 19.14 and use Save Options, it will create a file
>    called .xemacs-options in which settings for 19.14 will be saved,
>    and a bit of code will be written to your .emacs to load that file
>    only if you are running 19.14.

This is such an excellent idea, that I think Save Options ought to save
options to differrent files for each version of emacs.  Upon startup, if
there's no options file for the current version of xemacs, then check to see
if there's one for a previous version and load that...

    Stig


------------------------------

Date: Mon, 1 Jul 1996 09:39:17 -0600
From: John Turner <turner@gielgud.lanl.gov>
To: xemacs-beta@xemacs.org
Subject: Save Options
Message-Id: <199607011539.JAA06410@gielgud.lanl.gov.xdiv>
Content-Length: 1299
Reply-To: turner@lanl.gov

Perusing comp.emacs.xemacs, it seems that people fairly frequently are
changing things via Options, esp. Edit Faces, and forgetting to Save
Options.

How difficult would it be to give a warning prior to quitting that
Options have been modified but not saved?

Or maybe the whole idea of it being a menu should be rethought.  Maybe
it should be a new frame (or set of frames), and to quit the frame you
either confirm the changes (triggering a Save Options) or simply quit.

I could do it in Tcl/Tk, but not elisp.  :)

Actually, there is something sort of related to this already written
in Tcl/Tk.  It's called The Dotfile Generator.  Take a look at:

http://www.imada.ou.dk/~blackie/dotfile/

Something along those lines, but integrated, might be nice.

Just musing (probably should have sent this to -discuss; is it still
alive?)...

+-----------------------+--------------------------------------------------+
|John A. Turner         |"Music is the cup which holds the wine of silence;|
|Los Alamos Natl. Lab.  |  sound is that cup, but empty;                   |
|e-mail: turner@lanl.gov|    noise is that cup, but broken."               |
|                       |                        - Robert Fripp            |
+-----------------------+--------------------------------------------------+

------------------------------

Date: Mon, 1 Jul 1996 13:29:04 -0600
From: John Turner <turner@gielgud.lanl.gov>
To: stig@hackvan.com
Cc: xemacs-beta-discuss@xemacs.org
Subject: Re: Save Options
Message-Id: <199607011929.NAA06592@gielgud.lanl.gov.xdiv>
Content-Length: 1141
In-Reply-To: <m0uaoSS-000HE5C@hackvan.com>
References: <199607011539.JAA06410@gielgud.lanl.gov.xdiv>
	<m0uaoSS-000HE5C@hackvan.com>
Reply-To: turner@lanl.gov

stig@hackvan.com writes:
 > John Turner wrote:
 > > 
 > > How difficult would it be to give a warning prior to quitting that
 > > Options have been modified but not saved?
 > 
 > Not difficult at all, another winning idea!
 > 
 > > Or maybe the whole idea of it being a menu should be rethought.  Maybe
 > > it should be a new frame (or set of frames), and to quit the frame you
 > > either confirm the changes (triggering a Save Options) or simply quit.
 > 
 > I think it belongs on a menu.

Oh well... 2 out of 3 and all that... :)

My problem with toggling things on a menu is that sometimes the menu
goes away so fast that I'm not really sure if the toggle really
happened or if I clicked slightly off and the menu just went away
without doing anything.  

For example, say I *want* to toggle Options -> Syntax Highlighting ->
Automatic.  If I click slightly too low, say on the dividing line
between Automatic and Fonts, the whole menu tree just goes away.  So I
end up traversing the cascade again just to see if the button has been
toggled.  Maybe if it delayed for just a sec after a click is
registered before disappearing? 

-John

------------------------------

Date: Mon, 1 Jul 96 13:23 PDT
From: stig@hackvan.com (Stig)
To: turner@lanl.gov
Cc: xemacs-beta-discuss@xemacs.org
Subject: Re: Save Options
Message-Id: <m0uapVg-000HE5C@hackvan.com>
Content-Length: 652
In-Reply-To: <199607011929.NAA06592@gielgud.lanl.gov.xdiv>
References: <199607011539.JAA06410@gielgud.lanl.gov.xdiv>
	<m0uaoSS-000HE5C@hackvan.com>
	<199607011929.NAA06592@gielgud.lanl.gov.xdiv>
X-Face: V3#TB_`^vld7L-O4+Qk1%QYVRe6B2)Ia$tWrjprU|P'pM:Y{P5Io@~qxuL:&.;*?KU5.w_J
 ^t3S-[aLM9E*t3PKQ8FJs[+U5BYh4G'6xody^[oR"fukpjVI}3m!<;f)Ptipi4lD,R70]K3$pK"#c`
 [3S!^H~;A&1oo&;)-"R2]5%unJ8QeoXlo7n+h(rLQS?]SCWnHvm3/v7*RXE`,/;8g6j)&/

John Turner wrote:
> 
> For example, say I *want* to toggle Options -> Syntax Highlighting ->
> Automatic.  If I click slightly too low, say on the dividing line
> between Automatic and Fonts, the whole menu tree just goes away.  So I
> end up traversing the cascade again just to see if the button has been
> toggled.  Maybe if it delayed for just a sec after a click is
> registered before disappearing? 
> 

Well, that's another matter and another good idea.  It wouldn't be too hard
to do in lwlib (I think), and so far as I know the Motif menus are still
broken anyway...  So adding a pop-down delay resource to lwlib would handle
this.

    Stig

------------------------------

End of this Digest
******************

