From: Didier Verna <didier@lrde.epita.fr>
Subject: [PATCH] fix Emacs / XEmacs incompatibility
Date: Wed, 04 Jul 2001 15:57:38 +0200 [thread overview]
Message-ID: <muxhews6bl9.fsf@uzeb.lrde.epita.fr> (raw)
NOTE: This patch has been committed.
Dear folks,
this fixes a bug in my previous patch. The `point' function doesn't
accept an argument in Emacs (only XEmacs does). Sorry for the inconvenience.
lisp/ChangeLog addition:
2001-07-04 Didier Verna <didier@lrde.epita.fr>
* nntp.el (nntp-send-command): don't pass a buffer argument to
`point'. Only XEmacs accepts this.
* nntp.el (nntp-send-command-nodelete): ditto.
* nntp.el (nntp-send-command-and-decode): ditto.
Gnus Patch (runsocks cvs -q diff -u -t -b -B -w lisp/nntp.el):
Index: lisp/nntp.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/nntp.el,v
retrieving revision 6.9
diff -u -u -t -b -B -w -r6.9 nntp.el
--- lisp/nntp.el 2001/07/04 10:04:40 6.9
+++ lisp/nntp.el 2001/07/04 13:49:05
@@ -382,7 +382,7 @@
(erase-buffer)))
(let* ((command (mapconcat 'identity strings " "))
(buffer (process-buffer (nntp-find-connection nntp-server-buffer)))
- (pos (point buffer)))
+ (pos (with-current-buffer buffer (point))))
(prog1
(nntp-retrieve-data command
nntp-address nntp-port-number nntp-server-buffer
@@ -402,7 +402,7 @@
"Send STRINGS to server and wait until WAIT-FOR returns."
(let* ((command (mapconcat 'identity strings " "))
(buffer (process-buffer (nntp-find-connection nntp-server-buffer)))
- (pos (point buffer)))
+ (pos (with-current-buffer buffer (point))))
(prog1
(nntp-retrieve-data command
nntp-address nntp-port-number nntp-server-buffer
@@ -427,7 +427,7 @@
(erase-buffer)))
(let* ((command (mapconcat 'identity strings " "))
(buffer (process-buffer (nntp-find-connection nntp-server-buffer)))
- (pos (point buffer)))
+ (pos (with-current-buffer buffer (point))))
(prog1
(nntp-retrieve-data command
nntp-address nntp-port-number nntp-server-buffer
--
Didier Verna, didier@lrde.epita.fr, http://www.lrde.epita.fr/~didier
EPITA / LRDE, 14-16 rue Voltaire Tel.+33 (1) 53 14 59 47
94276 Le Kremlin-Bicêtre, France Fax.+33 (1) 44 08 01 99 didier@xemacs.org
reply other threads:[~2001-07-04 13:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=muxhews6bl9.fsf@uzeb.lrde.epita.fr \
--to=didier@lrde.epita.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).