difftastic.el icon indicating copy to clipboard operation
difftastic.el copied to clipboard

Smarter temporary buffer creation - i.e., with extensions based on a buffer major-mode

Open pkryger opened this issue 1 year ago • 0 comments

Temporary buffers are now created without extension. That doesn't allow difft to guess what language should be used (i.e., when the content of a temporary buffer is second).

A major-mode of a temporary buffer can be check and extension guessed (i.e., extracted from auto-mode-alist). Such a temporary buffer will let difft to make better guesses about a language. At the first look the --language difft's argument should be reserved to carry language-override function arguments (i.e., to make it easier to reason what will happen), and still allowing user to override the detection mechanism.

pkryger avatar Feb 23 '24 16:02 pkryger