Skip to content

Instantly share code, notes, and snippets.

@anquegi
Last active October 3, 2019 11:23
Show Gist options
  • Save anquegi/132e8979604f5d563e47ec9fe33b04db to your computer and use it in GitHub Desktop.
Save anquegi/132e8979604f5d563e47ec9fe33b04db to your computer and use it in GitHub Desktop.

Revisions

  1. anquegi revised this gist Oct 3, 2019. No changes.
  2. anquegi revised this gist Oct 3, 2019. No changes.
  3. anquegi renamed this gist Oct 3, 2019. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. anquegi created this gist Oct 3, 2019.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    (defun better-errors-file ()
    (interactive)
    (let ((root (libxml-parse-html-region (point-min) (point-max))))
    (message "file: %s at line: %s"
    (dom-attr (dom-by-class root "application") 'data-full-filename)
    (dom-attr (dom-by-class root "application") 'data-line))))