unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* printscreen button should NOT print, or print after prompt
@ 2004-04-13 15:04 Miguel Frasson
  0 siblings, 0 replies; 2+ messages in thread
From: Miguel Frasson @ 2004-04-13 15:04 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

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'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Hi.

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.

I have solved globally binding [print] to some message in my .emacs.

Amazing how this unfortunate "feature" resisted so long...

Thanks.

Miguel.

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <re
port-emacs-bug>

Recent messages:
Loading pc-select...done
Loading delsel...done
Loading /home/frasson/.emacs.d/lisp/x-symbol/auto-autoloads...done
Loading /home/frasson/.emacs.d/lisp/x-symbol/custom-load...done
Loading /home/frasson/.emacscustom.el (source)...
Loading regexp-opt...done
Loading /home/frasson/.emacscustom.el (source)...done
For information about the GNU Project and its goals, type C-h C-p.
Loading cl-seq...done
Loading emacsbug...done

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: printscreen button should NOT print, or print after prompt
       [not found] <mailman.43.1081869517.1061.bug-gnu-emacs@gnu.org>
@ 2004-04-13 20:02 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-04-13 20:02 UTC (permalink / raw)


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 <print> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-13 20:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.43.1081869517.1061.bug-gnu-emacs@gnu.org>
2004-04-13 20:02 ` printscreen button should NOT print, or print after prompt Kevin Rodgers
2004-04-13 15:04 Miguel Frasson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).