emacs-pug-mode icon indicating copy to clipboard operation
emacs-pug-mode copied to clipboard

Electric backspace issue when deleting whitespace

Open ghost opened this issue 8 years ago • 4 comments

Hi Henrik, I have been using this mode but I keep getting some problems with indentation, I don't know if is this mode or just my emacs setup though.

For example, here I'm deleting a line I don't want: dic-09-2016 6-29-14 p m

However, if I use C-k I can delete the line without modifying the indentation of the rest of the file.

Thanks.

ghost avatar Dec 10 '16 01:12 ghost

Just discovered the pug-backspace-backdents-nesting variable so I don't have the problem anymore. However, now I understand the expected behavior. I'll check it out later to see if I can improve it.

ghost avatar Dec 11 '16 21:12 ghost

Is this still an issue?

hlissner avatar Sep 12 '17 14:09 hlissner

I haven't written Pug code in a while, but at that time I just had to set the pug-backspace-backdents-nesting variable to false if I remember correctly. After that, I didn't check the issue further.

ghost avatar Sep 13 '17 21:09 ghost

Still an issue for me:

System Info :computer:

  • OS: gnu/linux
  • Emacs: 25.3.1
  • Spacemacs: 0.200.9
  • Spacemacs branch: master (rev. 8e1af145)
  • pug-mode-20170914.208 (from MELPA)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers: (emacs-lisp html helm javascript markdown shell-scripts vimscript)
  • System configuration features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS

audreytoskin avatar Sep 22 '17 02:09 audreytoskin