summaryrefslogtreecommitdiff
path: root/lisp/progmodes/sql.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2022-05-20 03:24:30 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2022-05-20 03:24:38 +0200
commit4d7390576b1fdc385e48ae9eab19f70c82643c0c (patch)
treeceb9066661daa03d6bcc02a54d3f418cfdc19f28 /lisp/progmodes/sql.el
parent10411697468ebfcae93ffb48ca773d5321c8a5ec (diff)
downloademacs-4d7390576b1fdc385e48ae9eab19f70c82643c0c.tar.gz
emacs-4d7390576b1fdc385e48ae9eab19f70c82643c0c.tar.bz2
emacs-4d7390576b1fdc385e48ae9eab19f70c82643c0c.zip
Add a new command 'yank-in-context'
* lisp/simple.el (escaped-string-quote): New variable. (yank-in-context): New command. (yank-in-context--transform): Helper function. * lisp/progmodes/sh-script.el (sh-mode): Set up an escaped-string-quote function. * lisp/progmodes/sql.el (sql-mode): Define escaped-string-quote.
Diffstat (limited to 'lisp/progmodes/sql.el')
-rw-r--r--lisp/progmodes/sql.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index 7bb4fef0c09..8d259860901 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -4159,6 +4159,7 @@ must tell Emacs. Here's how to do that in your init file:
(setq-local abbrev-all-caps 1)
;; Contains the name of database objects
(setq-local sql-contains-names t)
+ (setq-local escaped-string-quote "'")
(setq-local syntax-propertize-function
(syntax-propertize-rules
;; Handle escaped apostrophes within strings.