From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/4571 Path: main.gmane.org!not-for-mail From: Hallvard B Furuseth Newsgroups: gmane.emacs.gnus.general Subject: Re: [nntp.el] patch for the unofficial version of mule based on 19.30 Date: Fri, 29 Dec 1995 15:13:28 +0100 Message-ID: <199512291413.PAA20542@durin.uio.no> References: <10696.819717489@deneb.is.s.u-tokyo.ac.jp> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035145300 30119 80.91.224.250 (20 Oct 2002 20:21:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 20:21:40 +0000 (UTC) Cc: ding@ifi.uio.no Return-Path: ding-request@ifi.uio.no Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by miranova.com (8.6.11/8.6.9) with ESMTP id GAA16748 for ; Fri, 29 Dec 1995 06:55:14 -0800 Original-Received: from goggins.uio.no (6089@goggins.uio.no [129.240.201.2]) by ifi.uio.no with SMTP (8.6.11/ifi2.4) id for ; Fri, 29 Dec 1995 15:13:31 +0100 Original-Received: from ulrik.uio.no by goggins.uio.no with local-SMTP (PP) id <21182-0@goggins.uio.no>; Fri, 29 Dec 1995 15:13:29 +0100 Original-Received: by durin.uio.no ; Fri, 29 Dec 1995 15:13:28 +0100 Original-To: SAKIYAMA Nobuo In-reply-to: <10696.819717489@deneb.is.s.u-tokyo.ac.jp> Xref: main.gmane.org gmane.emacs.gnus.general:4571 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:4571 > If you are using the current version of September Gnus on the > unofficial version of mule based on 19.29 or 19.30 and not using tm > package, your posting messages to the news would be damaged. > (...) > Of course, this code will be slower than the original. > (...) > ! (setq last (save-excursion > ! (goto-char (min (+ last size) (point-max))) > ! (or (eobp) (forward-char 1)) > ! (point)))) How is this different from: (setq last (save-excursion (goto-char (+ last size 1)) (point)))) (since goto-char always stays between point-min and point-max), or just (setq last (min (+ last size 1) (point-max)))) ? Except if the result can somehow become smaller than (point-min). Then you need (setq last (max (min (+ last size 1) (point-max)) (point-min)))) Regards, Hallvard