defanor,

There is this annoying behavior on editing SQL source blocks, where it adds a level of indentation to the whole block when you hit RET: not always, but frequently, and unclear why. I guess it may have something to do with subqueries, at least I tend to notice it more often with those (and with more complex queries generally). It happens in emacs -Q as well. I think I observed it years ago, and heard of the cause and a workaround at some point, but failing to look it up now. Does anybody here know why it happens, and how to fix it? Would be particularly nice to not disable automatic indentation altogether, but to get a sensible indentation. Maybe for sql-mode as well (aiming primarily--but not exclusively--PostgreSQL, if that matters).

yeti,
@yeti@emacs.ch avatar

deleted_by_author

  • Loading...
  • defanor,

    @yeti That appears to fix the issue, thanks! I think I briefly looked into it, but the "on export" bit sounded like it is only relevant to export.

    @holl, @thuna_cing, @hajovonta, there is another option for you to try.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • emacs
  • DreamBathrooms
  • magazineikmin
  • cubers
  • InstantRegret
  • cisconetworking
  • Youngstown
  • vwfavf
  • slotface
  • Durango
  • rosin
  • everett
  • kavyap
  • thenastyranch
  • mdbf
  • megavids
  • khanakhh
  • modclub
  • tester
  • ethstaker
  • osvaldo12
  • GTA5RPClips
  • ngwrru68w68
  • Leos
  • anitta
  • tacticalgear
  • normalnudes
  • provamag3
  • JUstTest
  • All magazines