From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: docs for insert-file-contents use 'bytes' Date: Tue, 30 Sep 2008 10:19:26 +0300 Message-ID: References: <86ljxa67xi.fsf@lifelogs.com> <86hc7y64vm.fsf@lifelogs.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1222759186 29543 80.91.229.12 (30 Sep 2008 07:19:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Sep 2008 07:19:46 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ted Zlatanov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 30 09:20:43 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KkZXF-0003gB-Hr for ged-emacs-devel@m.gmane.org; Tue, 30 Sep 2008 09:20:41 +0200 Original-Received: from localhost ([127.0.0.1]:53749 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkZW8-0005DM-5g for ged-emacs-devel@m.gmane.org; Tue, 30 Sep 2008 03:19:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KkZW3-0005Ci-Hr for emacs-devel@gnu.org; Tue, 30 Sep 2008 03:19:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KkZW2-0005C3-Oe for emacs-devel@gnu.org; Tue, 30 Sep 2008 03:19:27 -0400 Original-Received: from [199.232.76.173] (port=59863 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KkZW2-0005Bx-IU for emacs-devel@gnu.org; Tue, 30 Sep 2008 03:19:26 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:55137) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KkZW2-0000en-OR for emacs-devel@gnu.org; Tue, 30 Sep 2008 03:19:26 -0400 Original-Received: from mtaout3.012.net.il ([84.95.2.7]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KkZW1-0004XS-Je for emacs-devel@gnu.org; Tue, 30 Sep 2008 03:19:25 -0400 Original-Received: from HOME-C4E4A596F7 ([77.127.170.116]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K7Z00H8MZ25EUB0@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Tue, 30 Sep 2008 10:20:30 +0300 (IDT) In-reply-to: <86hc7y64vm.fsf@lifelogs.com> X-012-Sender: halo1@inter.net.il X-detected-kernel: by mx20.gnu.org: Solaris 9.1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104252 Archived-At: > From: Ted Zlatanov > Date: Mon, 29 Sep 2008 16:04:13 -0500 > > This is not a safe operation mode with multibyte sequences; is there a > way to DTRT? I'm specifically thinking about a paged buffer mode where > you only see a small portion of the file (for editing large files, as we > discussed in another newsgroup a while ago). How about this idea: read a bit more than you want, then find safe place to end this page-full? > I don't know if this is the right wording, but it's a pretty essential > operation so it should give some warning about this common (nowadays) > case. Is it really a common case that insert-file-contents is used to read a portion of a file? Where is this used?