From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Budi Newsgroups: gmane.emacs.help Subject: How to clipboard copy emacs help text by user-made interactive function kill-ring-save Date: Thu, 9 May 2019 11:22:33 +0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="223081"; mail-complaints-to="usenet@blaine.gmane.org" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 09 06:22:48 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hOaa0-000vyN-Ho for geh-help-gnu-emacs@m.gmane.org; Thu, 09 May 2019 06:22:48 +0200 Original-Received: from localhost ([127.0.0.1]:47693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOaZz-0007Mp-E6 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 May 2019 00:22:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:59023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hOaZp-0007Mh-Di for help-gnu-emacs@gnu.org; Thu, 09 May 2019 00:22:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hOaZo-00057g-KR for help-gnu-emacs@gnu.org; Thu, 09 May 2019 00:22:37 -0400 Original-Received: from mail-it1-x134.google.com ([2607:f8b0:4864:20::134]:53030) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hOaZo-00056N-GF for help-gnu-emacs@gnu.org; Thu, 09 May 2019 00:22:36 -0400 Original-Received: by mail-it1-x134.google.com with SMTP id q65so1375944itg.2 for ; Wed, 08 May 2019 21:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=5DCdKKEV1g+RAvO/+C3mSCyGx9bMb4WK2WNZSDDCUqs=; b=hiFKJnsq/G35aLqdIi6QBQ3NGDxFmgpi+y3pM6ec7PoLIkoL2bCTa/i1oDU8oaC7Nm Z+nwsvl55o6BZqTNAq2ILCqBq/xf3uiNDI/xFWMkbBMyrkmW0mQH1TTxYA0MwWudPiot WMz7KSBWWgr+hw+VOPO/056PZjBeveuW2tMgyrL/ywxfd3WO7UDdhWTCDZxh+jm+SGce WYTgk2ZNon2G0/iEa8zKpWswjsuQf952j1A1YdAqjs+LtbI+cBHXaxAbWr30vd23y1tY x5qYK94vAUJdk6YRSidE0oPAj+V++Jk7t3zz1Ae6JgMKBIH9iySNuI/SMbXHH46x9Nat 9dNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5DCdKKEV1g+RAvO/+C3mSCyGx9bMb4WK2WNZSDDCUqs=; b=mR0R22rQ70XsZBZA1rKHyx6yf2Zbw1WqHRq4xoISgrRS6pPNymSFPTxCtNDuH6P+0S SSztCWgIWwJ+e5ZHnoy4NJhdVJVy0LJ5oN84dZItSipl+KyX/q8j/wbAiTDTbzQR3O06 ydeY7zbWUTtd8NkMSPb43/9xkuwsayBOhRwx8aTL4nZZ58CLOl6nwwCXRgeDsR855p1h cqJ3qCZHEAjrbCN4m+VtPxZms9QnrgGuj4Hxx4w+xjra/KLy8ybSCtEJ8KNOhmpIV7VZ W/RTbveCatLK267hLDp1EopSOuX+QT3AgQd72Mk/dsrI5Ky7IXFIltgpOqvdlY2buv6p E9Gg== X-Gm-Message-State: APjAAAU5VMKcDW2Iv3YXIo26OSXR/6FHhxZt+wZS36KKs1vaBW/M4VxI kvygCaoMrK4tAAkb3L8MNCFUsnPn74ZVKp5O0LD6OqL5 X-Google-Smtp-Source: APXvYqxVAtPjTVC+ZKwq5/2x8VYSH7ThSVMUaL1ZQqL0pB636+hNtE3KJgZ4SV9Nf7bleauv6x8eNVQhwxPpZEtltnw= X-Received: by 2002:a02:8243:: with SMTP id q3mr1531091jag.37.1557375753589; Wed, 08 May 2019 21:22:33 -0700 (PDT) Original-Received: by 2002:a02:93cd:0:0:0:0:0 with HTTP; Wed, 8 May 2019 21:22:33 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::134 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:120270 Archived-At: I tried to clipboard copy some emacs read-only text by user-made interactive function kill-ring-save, but fail It's not M-w bound to kill-ring-save emacs built in function which is working but as my preceding question, the copy : (defun copy (b e) (interactive "r") (if (use-region-p) (call-interactively 'kill-ring-save) (save-excursion (beginning-of-line) (set-mark (line-end-position)) (kill-ring-save (point)(mark)) )))) (global-set-key (kbd "C-c") 'copy) cannot copy such case above, any idea what's actually made different behavior of kill-ring-save ?