Skip to content
Prev 14940 / 15075 Next

quartz hanging

More information, in case it?s useful:

  * I installed RStudio, and does not show this problem, but then again
    the |cmd-p| is not a keyboard thing in its graphics pane, and it
    uses the |RStudioGD| and |quartz_off_screen| devices vice |quartz|
  * I installed R-4.5.1 (which is matched better with the version of
    Xcode on my system, 16.2), and it still fails in the same way, so it
    seems unlikely to be a Xcode version thing
  * changing various |quartz.options(family=, dpi=, type=, bg=,
    canvas=)| does not change the behavior
  * this seems mostly about the printer connection:
      o both |cmd-p| (Print) and |cmd-shift-p| (Page Setup) evoke the
        failure
      o the Print and Page Setup menu items also trigger the failure
        without the keyboard shortcut
      o all other menu items and keyboard shortcuts (e.g., |cmd-c|) work
        without error
  * I do have printers installed and I do have a default printer; I?m not
    sure what happened with the previous ?no default printer? thing but now
    the print dialog does show a default printer available

It seems wholly tied to how |quartz| ties into the printer.

The keypress in question |cmd-p| in emacs is ?previous input/expression? 
(command history), which is something I use almost every minute. Since I 
tend to trigger it often enough by switching from emacs to the graphics 
window and then back to emacs and rerunning the previous command with a 
slight change (and clearly switching windows is an imperfect step for 
me), one trick that macos supports is overriding menu keyboard shortcuts 
for specific app menu items. Unfortunately, the quartz window is very 
special, and not one keyboard-shortcut app out there (specifically base 
macos, BetterTouchTool, nor Karabiner) recognizes quartz windows correctly.

So my workaround is to change the menu-item ?Print? (and Page Setup, 
just in case) for all applications to something else. Fortunately, I use 
that keypress to print something less than once per month, possibly once 
per year, I think I will not miss it.

I?m still curious if anybody else can reproduce this issue. If not, then 
something about my system is different enough :-(

Thanks for your attention :-)
Bill
On 7/3/25 22:55, bill+rsigmac at 8pawexpress.com wrote:

            
​