sxemacs-devel
[Top] [All Lists]

Re: sxemacs--ckent--22.1.0--patch-1

From: Zajcev Evgeny <zevlg@xxxxxxxxx>
Subject: Re: sxemacs--ckent--22.1.0--patch-1
Date: Mon, 20 Dec 2004 02:08:12 +0300
Organization: Home
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Security Through Obscurity, berkeley-unix)
Steve Youngs <steve@xxxxxxxxxxx> writes:

> Evgeny!
>
> I'm rejecting this patch, sorry.  Following is the diff with my
> comments interspersed...
>
>   > --- orig/etc/sample.init.el
>   > +++ mod/etc/sample.init.el
>
> The sample.init.el needs a complete rewrite anyway as much of it is
> complete crap anyway.
>
>   > -(or (boundp 'running-xemacs)
>   > -    (defvar running-xemacs (string-match "XEmacs\\|Lucid" 
> emacs-version)))
>   > +(or (boundp 'running-sxemacs)
>   > +    (defvar running-sxemacs (string-match "XEmacs\\|Lucid" 
> emacs-version)))
>
> I would have just removed this sexp completely, it's useless anyway.
>  
>   > -; (cond ((and running-xemacs
>   > +; (cond ((and running-sxemacs
>
> We are completely compatible with XEmacs, so this change is wrong.  It
> should either be left as it was, or changed to 
>
>   (cond ((and (or running-xemacs running-sxemacs))
>
>   > --- orig/lisp/custom-load.el
>   > +++ mod/lisp/custom-load.el
>
> I don't know what the hell is going on with this file... practically
> every time I build SXEmacs, I get changes here.
>
> Dammit!  I want this file out of the repo!
>
>   > --- orig/lisp/loadup.el
>   > +++ mod/lisp/loadup.el
>   > @@ -37,10 +37,10 @@
>   >  (when (fboundp 'error)
>   >    (error "loadup.el already loaded!"))
>  
>   > -(defvar running-xemacs t
>   > -  "Non-nil when the current emacs is XEmacs.")
>   > +(defvar running-sxemacs t
>   > +  "Non-nil when the current emacs is SXEmacs.")
>
> No.  `running-xemacs' must stay!  But I don't mind adding the
> `running-sxemacs', that's a good idea.
>
>   >  (defvar preloaded-file-list nil
>   > -  "List of files preloaded into the XEmacs binary image.")
>   > +  "List of files preloaded into the SXEmacs binary image.")
>  
>   >  (defvar Installation-string nil
>   >    "Description of XEmacs installation.")
>   > @@ -268,20 +268,20 @@
>  
>   >  ;(loadup-profile-results nil 'external-debugging-output)
>  
>   > -;; Dump into the name `xemacs' (only)
>   > +;; Dump into the name `sxemacs' (only)
>   >  (when (member "dump" command-line-args)
>   > -  (message "Dumping under the name xemacs")
>   > +  (message "Dumping under the name sxemacs")
>   >    ;; This is handled earlier in the build process.
>   > -  ;; (condition-case () (delete-file "xemacs") (file-error nil))
>   > +  ;; (condition-case () (delete-file "sxemacs") (file-error nil))
>   >    (when (fboundp 'really-free)
>   >      (really-free))
>   >    (dump-emacs
>   >     (cond
>   >      ((featurep 'infodock) "infodock")
>   >      ;; #### BILL!!!
>   > -    ;; If we want to dump under a name other than `xemacs', do that here!
>   > -    ;; ((featurep 'gtk) "xemacs-gtk")
>   > -    (t "xemacs"))
>   > +    ;; If we want to dump under a name other than `sxemacs', do that 
> here!
>   > +    ;; ((featurep 'gtk) "sxemacs-gtk")
>   > +    (t "sxemacs"))
>   >     "temacs")
>   >    (kill-emacs))
>  
> This part is fine.  But I wonder why I haven't had any problems in the
> area with building?

Actually the only useful part of this patch is this part. :)  As i
understood you've accepted it?

Other parts was just automitally changed by hands, and in head
repeating:  "Change all xemacs to sxemacs, change all xemacs to
sxemacs, change all xemacs to sxemacs".

>
>   > --- orig/man/xemacs-faq.texi
>   > +++ mod/man/xemacs-faq.texi
>   > @@ -2681,7 +2681,7 @@
>   >  For all new code, all you really need to do is:
>  
>   >  @lisp
>   > -(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
>   > +(defvar running-sxemacs (string-match "SXEmacs" emacs-version))
>   >  @end lisp
>
> Bah!  This is bogus.  Change it to something like...
>
>   (if (or running-xemacs
>           running-sxemacs)
>       ((S)XEmacs code here)
>     (Emacs code here))
>  
>   >  @node Q3.0.2, Q3.0.3, Q3.0.1, Customization
>   > @@ -4675,12 +4675,12 @@
>   >  --- /opt/SUNWspro/lib/eserve.el.ORIG    Fri May 14 15:23:26 1999
>   >  +++ /opt/SUNWspro/lib/eserve.el Fri May 14 15:24:54 1999
>   >  @@@@ -42,7 +42,7 @@@@
>   > - (defvar running-xemacs nil "t if we're running XEmacs")
>   > + (defvar running-sxemacs nil "t if we're running SXEmacs")
>   >   (defvar running-emacs  nil "t if we're running GNU Emacs 19")
>  
>   >  -(if (string-match "^\\(19\\|20\\)\..*\\(XEmacs\\|Lucid\\)" 
> emacs-version)
>   > -+(if (string-match "\\(XEmacs\\|Lucid\\)" emacs-version)
>   > -     (setq running-xemacs t)
>   > ++(if (string-match "SXEmacs" emacs-version)
>   > +     (setq running-sxemacs t)
>   >       (setq running-emacs  t))
>   >  @end format
>  
> No.  Don't replace running-xemacs with running-sxemacs, just add 
> running-sxemacs.
>
> Evgeny, the best way to redo this would be...
>
>   $ tla replay --reverse patch-1 RET
>   $ tla commit -s "reverting patch-1" RET
>
> ...and then start hacking again.
>
> Thanks, Evgeny.  I'm looking forward to seeing a merge request for
> sxemacs--ckent--22.1.0--patch-3. :-)
>

Great!  I'll say it Clark.

-- 
lg

<Prev in Thread] Current Thread [Next in Thread>