Introducing smblog-mode for emacs

Aurélien Aptel aaptel at suse.com
Tue Mar 15 11:05:13 UTC 2016


On Mon, 14 Mar 2016 14:46:33 +0100 Ralph Boehme <rb at sernet.de> wrote:
> This contains the returned status code.

I have assumed the result directly following a request is the result of
that request (in other words, you cannot have request made in between).
 
> It would be awesome if emacs could display this collapsed as
> 
> SMB2 request: SMB2_OP_CREATE, response: NT_STATUS_OK
> SMB2 request: ...           , response: ...
> 
> Then when selecting a line and pressing TAB it would expand and show
> all log lines for that request.

I have implemented something slightly different. By looking a log at
level 10 you can press `r` to get a list of all requests detected in a
new window.

- This window is automatically selected, you can close it
  with `q`.
- By pressing RET it will cycle between the start and end of the
  current line request in the log window.
- By navigating with `n` and `p` it will jump to the start of the
  request in the log window.

The focus is kept on this request window for all commands, again, press
`q` to close it and go back to the log window.

Tell me what you think.

-- 
Aurélien Aptel / SUSE Labs Samba Team
GPG: 1839 CB5F 9F5B FB9B AA97  8C99 03C8 A49B 521B D5D3
SUSE Linux GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG
Nürnberg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160315/4b9981d7/attachment.sig>


More information about the samba-technical mailing list