1 line
2.2 KiB
Plaintext
1 line
2.2 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>Phrasing a descriptive title was hard.</p> <p>I use ChkTeX as a flymake backend for checking my (La)TeX documents. ChkTeX is good, but sometimes gets things wrong (or makes suggestions which are not appropriate). Recognising this, it also reads a config file, and recognises certain magic comments, which can ignore warnings, or define new warning rules (it's a really amazing tool, check it out if you write TeX!).</p> <p>I recently had to write quite a few such magic comments, all in the same format, for ignoring different warnings (the comments are all very similar, just with a different diagnostic number in each). This quickly got boring, and this kind of programmatic text manipulation is exactly what emacs is good for. So I was about to write a set of functions like <code>chktex-ignore-warning-at-pt</code> and <code>chktex-ignore-warning-at-pt-global</code> (for writing to the config file).</p> <p>But then I thought that I can't be the first person to want to do this, and stuff like this (interacting with error information in configurable ways) surely can't be restricted to TeX. I thought there might something like a <code>flymake-ignore-error-function</code> variable, which I could set to my function, and there would be lots of flymake infrastructure for this -- but there isn't. Is there any such infrastructure already in emacs for interacting with errors in this way (ignoring, ignoring globally, finding docs etc. Of course, the specifics would have to be implemented in each specific backend)? I'm asking mostly because -- though it would be easy for me to just write my own functions and forget about it -- it seems like a useful general capability and if it doesn't exist yet, maybe it should? Would appreciate any thoughts.</p> <p>TIA.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/Jack-o-tall-tales"> /u/Jack-o-tall-tales </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/ruz4hd/is_there_generic_support_which_i_could_hook_into/">[link]</a></span>   <span><a href="https://www.reddit.com/r/emacs/comments/ruz4hd/is_there_generic_support_which_i_could_hook_into/">[comments]</a></span> |