1

I am using mu4e and pdf-tools. Whenever I go to open an attached pdf (e.g., with gnus-article-press-button) the attachment pops open in a new frame. How can I control where it pops up? Looking at that function and trying to trace it I couldn't find anything related to display-buffer or something I recognized as window management functionality.

NickD
  • 27,023
  • 3
  • 23
  • 42
jds
  • 177
  • 7

1 Answers1

1

So I think that gnus-article-press-button eventually boils down to calling xdg-open.

I had emacsclient set as my default pdf reader in mimeapps.list and using a desktop file that called emacsclient with a --create-frame argument. Removing the --create-frames argument solved the problem and now emacsclient tries to use the existing frame when displaying a buffer.

tinlyx
  • 1,276
  • 1
  • 12
  • 27
jds
  • 177
  • 7