From unknown Sun Aug 10 07:36:14 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6797: documentation: `insert-for-yank-1' needs refilled Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Aug 2010 20:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6797 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6797@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.128095344311769 (code B ref -1); Wed, 04 Aug 2010 20:25:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Aug 2010 20:24:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgkVO-00033m-UK for submit@debbugs.gnu.org; Wed, 04 Aug 2010 16:24:03 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgkVN-00033F-7B for submit@debbugs.gnu.org; Wed, 04 Aug 2010 16:24:01 -0400 Received: from lists.gnu.org ([199.232.76.165]:56091) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OgkVq-00017v-Ma for submit@debbugs.gnu.org; Wed, 04 Aug 2010 16:24:30 -0400 Received: from [140.186.70.92] (port=44706 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgkVo-0008Es-67 for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 16:24:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgkVn-0005YR-0W for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 16:24:28 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:48302) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgkVm-0005YC-SQ for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 16:24:26 -0400 Received: by wwi14 with SMTP id 14so6731752wwi.30 for ; Wed, 04 Aug 2010 13:24:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.44.141 with SMTP id n13mr2606471web.16.1280953464952; Wed, 04 Aug 2010 13:24:24 -0700 (PDT) Received: by 10.216.49.84 with HTTP; Wed, 4 Aug 2010 13:24:24 -0700 (PDT) Date: Wed, 4 Aug 2010 16:24:24 -0400 X-Google-Sender-Auth: F79bVNQEszJM0_pccdxTgvyvPa4 Message-ID: From: MON KEY Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.9 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) `insert-for-yank-1' needs refilled problem current through Bzr-100972 *** /ediff52068uN 2010-08-04 16:11:00.078669691 -0400 ---lisp/subr.el 2010-08-04 15:50:02.478794136 -0400 *************** *** 2469,2497 **** (insert-for-yank-1 string)) (defun insert-for-yank-1 (string) ! "Insert STRING at point, stripping some text properties. Strip text properties from the inserted text according to `yank-excluded-properties'. Otherwise just like (insert STRING). ! If STRING has a non-nil `yank-handler' property on the first character, the normal insert behavior is modified in various ways. The value of ! the yank-handler property must be a list with one to four elements ! with the following format: (FUNCTION PARAM NOEXCLUDE UNDO). ! When FUNCTION is present and non-nil, it is called instead of `insert' ! to insert the string. FUNCTION takes one argument--the object to insert. ! If PARAM is present and non-nil, it replaces STRING as the object ! passed to FUNCTION (or `insert'); for example, if FUNCTION is ! `yank-rectangle', PARAM may be a list of strings to insert as a ! rectangle. ! If NOEXCLUDE is present and non-nil, the normal removal of the ! yank-excluded-properties is not performed; instead FUNCTION is ! responsible for removing those properties. This may be necessary ! if FUNCTION adjusts point before or after inserting the object. ! If UNDO is present and non-nil, it is a function that will be called ! by `yank-pop' to undo the insertion of the current object. It is ! called with two arguments, the start and end of the current region. ! FUNCTION may set `yank-undo-function' to override the UNDO value." (let* ((handler (and (stringp string) (get-text-property 0 'yank-handler string))) (param (or (nth 1 handler) string)) --- 2469,2503 ---- (insert-for-yank-1 string)) (defun insert-for-yank-1 (string) ! "Insert STRING at point, stripping some text properties. Strip text properties from the inserted text according to `yank-excluded-properties'. Otherwise just like (insert STRING). ! when STRING has a non-nil `yank-handler' property on the first character, the normal insert behavior is modified in various ways. The value of ! the yank-handler property is a list with one to four elements ! of the following format: (FUNCTION PARAM NOEXCLUDE UNDO). ! ! When FUNCTION is present and non-nil, it is a function called with one ! argument -- an object to insert, and is called instead of `insert' when ! inserting STRING. ! ! When PARAM is present and non-nil, it replaces STRING as the object ! passed to FUNCTION (or `insert'). For example, if FUNCTION is ! `yank-rectangle', PARAM may be a list of strings to insert as a ! rectangle. ! ! When NOEXCLUDE is present and non-nil, normal removal of ! yank-excluded-properties is not performed; instead text-property filtering ! is deferred to FUNCTION which becomes responsible for property removal prior ! to object insertion. This may be necessary when FUNCTION adjusts point ! either before or after object insertion. ! ! When UNDO is present and non-nil, it is a function called ! by `yank-pop' to undo the insertion of the current object. It is ! called with two arguments, the start and end of the current region. ! FUNCTION may set `yank-undo-function' to override the UNDO value." (let* ((handler (and (stringp string) (get-text-property 0 'yank-handler string))) (param (or (nth 1 handler) string)) From unknown Sun Aug 10 07:36:14 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: MON KEY Subject: bug#6797: closed (Re: documentation: `insert-for-yank-1' needs refilled) Message-ID: References: <87k4ns7p3r.fsf@stupidchicken.com> X-Gnu-PR-Message: they-closed 6797 X-Gnu-PR-Package: emacs Reply-To: 6797@debbugs.gnu.org Date: Sat, 14 Aug 2010 23:26:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1281828362-11382-1" This is a multi-part message in MIME format... ------------=_1281828362-11382-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6797: documentation: `insert-for-yank-1' needs refilled which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6797@debbugs.gnu.org. --=20 6797: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6797 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1281828362-11382-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6797-done) by debbugs.gnu.org; 14 Aug 2010 23:25:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkQ6d-0002xI-2r for submit@debbugs.gnu.org; Sat, 14 Aug 2010 19:25:39 -0400 Received: from pantheon-po45.its.yale.edu ([130.132.50.79]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OkQ6b-0002xC-Cs for 6797-done@debbugs.gnu.org; Sat, 14 Aug 2010 19:25:37 -0400 Received: from furry (173-14-147-246-NewEngland.hfc.comcastbusiness.net [173.14.147.246]) (authenticated bits=0) by pantheon-po45.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o7ENQWau005980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for <6797-done@debbugs.gnu.org>; Sat, 14 Aug 2010 19:26:32 -0400 Received: by furry (Postfix, from userid 1000) id 91BB516D402; Sat, 14 Aug 2010 19:26:32 -0400 (EDT) From: Chong Yidong To: 6797-done@debbugs.gnu.org Subject: Re: documentation: `insert-for-yank-1' needs refilled Date: Sat, 14 Aug 2010 19:26:32 -0400 Message-ID: <87k4ns7p3r.fsf@stupidchicken.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6797-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) Closing the bug; see comment in 6821. ------------=_1281828362-11382-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Aug 2010 20:24:03 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgkVO-00033m-UK for submit@debbugs.gnu.org; Wed, 04 Aug 2010 16:24:03 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgkVN-00033F-7B for submit@debbugs.gnu.org; Wed, 04 Aug 2010 16:24:01 -0400 Received: from lists.gnu.org ([199.232.76.165]:56091) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OgkVq-00017v-Ma for submit@debbugs.gnu.org; Wed, 04 Aug 2010 16:24:30 -0400 Received: from [140.186.70.92] (port=44706 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OgkVo-0008Es-67 for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 16:24:30 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OgkVn-0005YR-0W for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 16:24:28 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:48302) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OgkVm-0005YC-SQ for bug-gnu-emacs@gnu.org; Wed, 04 Aug 2010 16:24:26 -0400 Received: by wwi14 with SMTP id 14so6731752wwi.30 for ; Wed, 04 Aug 2010 13:24:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.44.141 with SMTP id n13mr2606471web.16.1280953464952; Wed, 04 Aug 2010 13:24:24 -0700 (PDT) Received: by 10.216.49.84 with HTTP; Wed, 4 Aug 2010 13:24:24 -0700 (PDT) Date: Wed, 4 Aug 2010 16:24:24 -0400 X-Google-Sender-Auth: F79bVNQEszJM0_pccdxTgvyvPa4 Message-ID: Subject: documentation: `insert-for-yank-1' needs refilled From: MON KEY To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.2 (-----) `insert-for-yank-1' needs refilled problem current through Bzr-100972 *** /ediff52068uN 2010-08-04 16:11:00.078669691 -0400 ---lisp/subr.el 2010-08-04 15:50:02.478794136 -0400 *************** *** 2469,2497 **** (insert-for-yank-1 string)) (defun insert-for-yank-1 (string) ! "Insert STRING at point, stripping some text properties. Strip text properties from the inserted text according to `yank-excluded-properties'. Otherwise just like (insert STRING). ! If STRING has a non-nil `yank-handler' property on the first character, the normal insert behavior is modified in various ways. The value of ! the yank-handler property must be a list with one to four elements ! with the following format: (FUNCTION PARAM NOEXCLUDE UNDO). ! When FUNCTION is present and non-nil, it is called instead of `insert' ! to insert the string. FUNCTION takes one argument--the object to insert. ! If PARAM is present and non-nil, it replaces STRING as the object ! passed to FUNCTION (or `insert'); for example, if FUNCTION is ! `yank-rectangle', PARAM may be a list of strings to insert as a ! rectangle. ! If NOEXCLUDE is present and non-nil, the normal removal of the ! yank-excluded-properties is not performed; instead FUNCTION is ! responsible for removing those properties. This may be necessary ! if FUNCTION adjusts point before or after inserting the object. ! If UNDO is present and non-nil, it is a function that will be called ! by `yank-pop' to undo the insertion of the current object. It is ! called with two arguments, the start and end of the current region. ! FUNCTION may set `yank-undo-function' to override the UNDO value." (let* ((handler (and (stringp string) (get-text-property 0 'yank-handler string))) (param (or (nth 1 handler) string)) --- 2469,2503 ---- (insert-for-yank-1 string)) (defun insert-for-yank-1 (string) ! "Insert STRING at point, stripping some text properties. Strip text properties from the inserted text according to `yank-excluded-properties'. Otherwise just like (insert STRING). ! when STRING has a non-nil `yank-handler' property on the first character, the normal insert behavior is modified in various ways. The value of ! the yank-handler property is a list with one to four elements ! of the following format: (FUNCTION PARAM NOEXCLUDE UNDO). ! ! When FUNCTION is present and non-nil, it is a function called with one ! argument -- an object to insert, and is called instead of `insert' when ! inserting STRING. ! ! When PARAM is present and non-nil, it replaces STRING as the object ! passed to FUNCTION (or `insert'). For example, if FUNCTION is ! `yank-rectangle', PARAM may be a list of strings to insert as a ! rectangle. ! ! When NOEXCLUDE is present and non-nil, normal removal of ! yank-excluded-properties is not performed; instead text-property filtering ! is deferred to FUNCTION which becomes responsible for property removal prior ! to object insertion. This may be necessary when FUNCTION adjusts point ! either before or after object insertion. ! ! When UNDO is present and non-nil, it is a function called ! by `yank-pop' to undo the insertion of the current object. It is ! called with two arguments, the start and end of the current region. ! FUNCTION may set `yank-undo-function' to override the UNDO value." (let* ((handler (and (stringp string) (get-text-property 0 'yank-handler string))) (param (or (nth 1 handler) string)) ------------=_1281828362-11382-1--