doublep / logview

Emacs mode for viewing log files
GNU General Public License v3.0
153 stars 18 forks source link

Commands Not Assigned In read-only-mode #25

Closed parhamdoustdar closed 6 years ago

parhamdoustdar commented 6 years ago

Hi,

I installed the package from melba, and didn't add anything to my .emacs file.

Now, when I open a file, I get a message saying that longview doesn't recognize the log format (which I expect – this is not a common log format).

However, when I do M-x read-only-mode RET, pressing characters just tells me that the buffer is read-only and can't be edited.

Am I doing something wrong?

Thanks!

doublep commented 6 years ago

Logview commands are activated only when buffer is read-only AND submode is recognized. Without submode they won't work anyway.

parhamdoustdar commented 6 years ago

Ah. I was trying to use the other really nice features this package offers, like widening and narrowing, or filtering – stuff that don't depend on severity or timestamps.

Would that be too much to implement?

doublep commented 6 years ago

Everything depends on the submode, including filtering, and even narrowing (it needs to know where entries start and end). Unless you can configure it to understand your logs (not necessarily fully, see IGNORED placeholder), the mode will be useless for you.

parhamdoustdar commented 6 years ago

Thanks a lot!