journalctl-mode icon indicating copy to clipboard operation
journalctl-mode copied to clipboard

--grep=... fails in journalctl-mode?

Open tvraman opened this issue 1 year ago • 2 comments

at least running journalctl -g from the shell gives different results than from within jurnalctl-mode

tvraman avatar Dec 06 '23 03:12 tvraman

I can not duplicate the behavior. It also seems a bit strange, as journalctl-mode just calls journalctl with the given parameters. Maybe you can send to snippets of output (May call journalctl -grep "Error" --lines 10) from both command line and journalctl-mode, so I can see better, what you mean.

SebastianMeisel avatar Dec 06 '23 16:12 SebastianMeisel

I hit it because I bound a key to journalctl.

If you call journalctl-mode directly, at least for me, it puts the current buffer in journalctl-mode which is likely not what one wants. All problem go away if:

  1. You load journalctl-mode before calling journalctl or 2. as I did, edit journalctl-autoloads.el to have a autoload def for journalctl instead of journalctl-mode.

--

tvraman avatar Dec 06 '23 18:12 tvraman