From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Documentation for "Clone Buffers" (corrected version) Date: Thu, 11 Mar 2004 23:22:54 -0600 (CST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200403120522.i2C5Ms523142@raven.dms.auburn.edu> References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1079135510 22674 80.91.224.253 (12 Mar 2004 23:51:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Mar 2004 23:51:50 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Mar 13 00:51:41 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1wRJ-0006vq-00 for ; Sat, 13 Mar 2004 00:51:41 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B1wRI-0007MU-00 for ; Sat, 13 Mar 2004 00:51:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1rhs-0006OE-4b for emacs-devel@quimby.gnus.org; Fri, 12 Mar 2004 13:48:28 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B1rgX-00069d-J1 for emacs-devel@gnu.org; Fri, 12 Mar 2004 13:47:05 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B1rfw-0005zl-Lo for emacs-devel@gnu.org; Fri, 12 Mar 2004 13:47:00 -0500 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B1f9g-0004cE-O0 for emacs-devel@gnu.org; Fri, 12 Mar 2004 00:24:20 -0500 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id i2C5OGKt002060; Thu, 11 Mar 2004 23:24:16 -0600 (CST) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id i2C5Ms523142; Thu, 11 Mar 2004 23:22:54 -0600 (CST) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: acm@muc.de In-reply-to: (message from Alan Mackenzie on Wed, 10 Mar 2004 11:29:45 +0000 (GMT)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:20361 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20361 I propose the following changes to the documentation strings of `Info-mode' and `clone-buffer'. The change to the Info-mode doc just adds a line documenting M-n. I propose to change the doc string of `clone-buffer' because right now it is incomplete and, in particular, does not properly document the, in my opinion, important, interactive use. If desired, I could install the patches below: ===File ~/info.el-diff====================================== *** info.el.~1.376.~ Mon Dec 29 13:27:09 2003 --- info.el Thu Mar 11 22:56:38 2004 *************** *** 2495,2500 **** --- 2495,2501 ---- Advanced commands: \\[Info-copy-current-node-name] Put name of current info node in the kill ring. + \\[clone-buffer] Select a new cloned Info buffer in another window. \\[Info-edit] Edit contents of selected node. 1 Pick first item in node's menu. 2, 3, 4, 5 Pick second ... fifth item in node's menu. ============================================================ ===File ~/simple.el-diff==================================== *** simple.el.~1.632.~ Thu Mar 4 15:37:21 2004 --- simple.el Thu Mar 11 22:27:38 2004 *************** *** 4313,4323 **** ;; - syntax-table ;; - overlays (defun clone-buffer (&optional newname display-flag) ! "Create a twin copy of the current buffer. ! If NEWNAME is nil, it defaults to the current buffer's name; ! NEWNAME is modified by adding or incrementing at the end as necessary. - If DISPLAY-FLAG is non-nil, the new buffer is shown with `pop-to-buffer'. This runs the normal hook `clone-buffer-hook' in the new buffer after it has been set up properly in other respects." (interactive --- 4313,4334 ---- ;; - syntax-table ;; - overlays (defun clone-buffer (&optional newname display-flag) ! "Create and return a twin copy of the current buffer. ! Unlike an indirect buffer, the new buffer can be edited ! independently of the old one (if it is not read-only). ! NEWNAME is the name of the new buffer. It may be modified by ! adding or incrementing at the end as necessary to create a ! unique buffer name. If nil, it defaults to the name of the ! current buffer, with the proper suffix. If DISPLAY-FLAG is ! non-nil, the new buffer is shown with `pop-to-buffer'. Trying to ! clone a file-visiting buffer, or a buffer whose major mode symbol ! has a non-nil `no-clone' property, results in an error. ! ! Interactively, DISPLAY-FLAG is t and NEWNAME is the name of the ! current buffer with appropriate suffix. However, if a prefix ! argument is given, then the command prompts for NEWNAME in the ! minibuffer. This runs the normal hook `clone-buffer-hook' in the new buffer after it has been set up properly in other respects." (interactive ============================================================