Re: using GNATS with xemacs

"Mark D. Baushke" <[email protected]>
Newsgroups gmane.comp.bug-tracking.gnats.general
Message-ID <[email protected]>
Mel Hatzis <[email protected]> writes:

> Please review the attached patch which fixes a bug
> in the gnats.el file, allowing it to be used with
> xemacs.

Yes, XEmacs has a character type that is separate from an integer type
such that

     (eq 10 (char-to-int ?\n))

is t. 

As GNU Emacs does not have a char-to-int function, Mel's patch seems
reasonable to me to allow both GNU Emacs and XEmacs to use the same
gnats.el file.

I urge adoption of this patch.

	Thanks,
	-- Mark
     
> 
> Currently, if you attempt to use the gnats.el
> functionality with xemacs nothing works because
> every attempt to read the server response is
> failing.
> 
> --
> Mel Hatzis
> --- gnats.el~	6 Dec 2002 10:32:58 -0000	1.1.1.1
> +++ gnats.el	11 Oct 2003 01:09:57 -0000
> @@ -1197,7 +1197,7 @@ gnats-server-conn's `parsed-output' prop
>  parsed, the `output-complete' property is set."
>    (put gnats-server-conn 'curr-output
>         (concat (get gnats-server-conn 'curr-output) output))
> -  (if (eq 10 (string-to-char (substring output -1)))
> +  (if (eq ?\n (string-to-char (substring output -1)))
>        (progn
>  	(gnats-debug-string (get gnats-server-conn 'curr-output))
>  	(let ((our-output (get gnats-server-conn 'curr-output)))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.