From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: printscreen button should NOT print, or print after prompt Date: Tue, 13 Apr 2004 14:02:34 -0600 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <16508.18266.850468.141948@ihs.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1081886876 26702 80.91.224.253 (13 Apr 2004 20:07:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Apr 2004 20:07:56 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 13 22:07:49 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BDUCC-0002MB-00 for ; Tue, 13 Apr 2004 22:07:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDUBG-0002D6-TS for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Apr 2004 16:06:50 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BDUAp-00020a-6t for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2004 16:06:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BDUAJ-0001l5-4T for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2004 16:06:20 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDUAI-0001kf-Qu for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2004 16:05:50 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.24) id 1BDUA3-0001Ev-OX for gnu-emacs-bug@gnu.org; Tue, 13 Apr 2004 16:05:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BDU9J-0001L3-LJ for gnu-emacs-bug@gnu.org; Tue, 13 Apr 2004 16:05:21 -0400 Original-Received: from [170.207.70.222] (helo=mail1.ihs.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BDU9J-0001GC-2b for gnu-emacs-bug@gnu.org; Tue, 13 Apr 2004 16:04:49 -0400 Original-Received: from briard.ihs.com (esd80.ihs.com [170.207.51.80]) by mail1.ihs.com (8.12.10/8.12.10) with SMTP id i3DK2S1o014188 for ; Tue, 13 Apr 2004 14:02:29 -0600 (MDT) Original-Path: 170.207.51.80!not-for-mail Original-Lines: 35 X-Orig-NNTP-Posting-Host: 170.207.51.80 X-Orig-X-Trace: news.uni-berlin.de 1081875996 1722355 I 170.207.51.80 ([82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us X-Spamscanner: mailbox2.ucsd.edu (v1.4 Mar 2 2004 11:47:57, 2.2/5.0 2.63) X-MailScanner: PASSED (v1.2.8 89273 i3DH6bJA009810 mailbox2.ucsd.edu) Original-To: gnu-emacs-bug@gnu.org Original-Newsgroups: gnu.emacs.bug X-IHS-MailScanner: Found to be clean X-IHS-MailScanner-SpamCheck: X-IHS-MailScanner-Envelope-Sender: kevinr@ihs.com X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:7592 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:7592 Miguel Frasson wrote: > In GNU Emacs 21.3.1 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll bars) > of 2003-10-27 on daffy.perf.redhat.com > configured using `configure --host=i386-redhat-linux --build=i386-redhat-linux --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-gcc --with-pop --with-sound' ... > Most emacs users that I have talked about this problem aggree that hitting > accidentally the print screen buttom prints the buffer WITHOUT prompting > is really annoying. I have lost a lot of paper and pacience in this way, > and so a lot of people for sure. If developers don't want just unbind the > print buttom (the best solution), a simple yes-no confirmation would not > harm a printing friendly user. Just a y-n confirmation is not enough, > because printing is always expensive. There is the "Print Buffer" menu > item for that. If I start emacs-21.3 with the -q and --no-site-file command line options, `C-h k` tells me is undefined. Perhaps you or Redhat have bound it in site-start.el, default.el, or ~/.emacs. > I have solved globally binding [print] to some message in my .emacs. I recommend using advice for this: (defadvice print-buffer (around confirm activate) "Request confirmation when called interactively." (if (or (not (interactive-p)) (yes-or-no-p (format "Print %s buffer? " (current-buffer)))) ad-do-it)) > Amazing how this unfortunate "feature" resisted so long... The Emacs maintainers might consider adding a confirm-print option. -- Kevin Rodgers