Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

New answers tagged

2

One can configure ediff-filtered-filters such that it replaces multiple leading stars with one leading star and call ediff-buffers. The following Elisp function my-org-ediff does that for you. Just copy the Elisp code to your init file, restart Emacs, and use my-org-ediff for diffing org files in the way you want it. (defvar ediff-filtered-filters) (defun ...


2

You can do an ediff-buffers-wordwise and type #h \*+ to ignore words consisting of stars. If you advance to the next diff by pressing SPC ediff will skip words only differing in the number of stars.


2

If you are content to use diff on the bash command line and are not looking for a pure emacs solution, you can use process substitution to pass into diff slightly modified files: diff <(sed -E 's/^\*+/*/' file1.org) <(sed -E 's/^\*+/*/' file2.org) Each sed command outputs its input file unchanged, except that a string of one or more asterisks at the ...


Top 50 recent answers are included