fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.64k stars 260 forks source link

web-mode-enable-auto-* features only enabled in graphic mode #1175

Closed lbolla closed 3 years ago

lbolla commented 3 years ago

Is there a technical reason why the various "auto-*" features, like web-mode-enable-auto-closing are only enabled on graphical emacs? See the definition:

(defcustom web-mode-enable-auto-closing (display-graphic-p)
  "Auto-closing."
  :type 'boolean
  :group 'web-mode)

They seem to work fine even on non-graphical emacs, so I find it surprising.

UwUnyaa commented 3 years ago

IIRC, it's related to pasting into terminal, especially from the X clipboard, where Emacs can't tell the difference between pasting and manual typing, causing issues with automatic pairing.

lbolla commented 3 years ago

@UwUnyaa Thank you for the historical note. I would argue that typing is much more common way of writing html than pasting, so default settings that make it easier should be preferred.

fxbois commented 3 years ago

@UwUnyaa you're right ... it is related on pasting issues on terminal.