a2ps emacs startup binds key to 'f22' for printscn

Bug #537 reported by John Steele Scott (t-tec)
2
Affects Status Importance Assigned to Milestone
a2ps (Ubuntu)
Invalid
Low
MOTU

Bug Description

The emacs startup file for a2ps adds an "a2ps" function to the menu, mapped to f22

The emacs startup file for a2ps adds an "a2ps" function to the menu, mapped to f22. From reading the documentation, it seems that this is because f22 corresponds to the "printscn" key. But pressing printscn does nothing.

In Ubuntu, xev shows that the printscn key actually generates a key event called "print".

Revision history for this message
John Steele Scott (t-tec) (john-t-tec-deactivatedaccount) wrote :

I have a (fairly obvious) patch to fix this, but I get an input error whenever I try and add it as a comment.

Revision history for this message
John Steele Scott (t-tec) (john-t-tec-deactivatedaccount) wrote :

Okay, I'll try again:

--- emacsen-startup.orig 2005-05-03 15:09:56.524090000 +0930
+++ emacsen-startup 2005-05-03 13:59:44.064481352 +0930
@@ -25,13 +25,13 @@

 (if (featurep 'xemacs)
     (progn
- (global-set-key 'f22 'a2ps-buffer)
- (global-set-key '(shift f22) 'a2ps-region-1)
+ (global-set-key 'print 'a2ps-buffer)
+ (global-set-key '(shift print) 'a2ps-region-1)
      (add-menu-button '("File") ["a2ps-print" a2ps-buffer "--"])
      )
   (progn
- (global-set-key [f22] 'a2ps-buffer)
- (global-set-key [S-f22] 'a2ps-region-1)
+ (global-set-key [print] 'a2ps-buffer)
+ (global-set-key [S-print] 'a2ps-region-1)
    (define-key-after menu-bar-files-menu [a2ps-print]
      '(menu-item "a2ps" a2ps-buffer :help "Print with a2ps")
      'ps-print-region)

By the way, the real fix is going to have to be to use another key for this (or not give it a keysym at all), because it's not platform independent. PPC machines don't have a "print" key.

Changed in a2ps:
assignee: nobody → motu
Revision history for this message
Martin Bergner (martin-bergner) wrote :

Do you still experience this problem?

Changed in a2ps:
status: Unconfirmed → Needs Info
Revision history for this message
John Steele Scott (t-tec) (john-t-tec-deactivatedaccount) wrote :

Yes.

Actually, it's even worse now. It seems that Dapper globally binds the PrintScn key to take a screenshot.

William Grant (wgrant)
Changed in a2ps:
status: Needs Info → Confirmed
Revision history for this message
Daniel T Chen (crimsun) wrote :

'Print' can be unbound from taking a screenshot in Ubuntu 8.04 using System> Preferences> Keyboard Shortcuts and using 'backspace' to delete the entry/entries.

Changed in a2ps:
importance: Medium → Low
status: Confirmed → Triaged
Mörgæs (moergaes)
Changed in a2ps (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.