Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions quail-cin.el
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,14 @@ DEFAULT will be returned when some candidates are not in the ATTRS."

(defun cin-safe-quote (val)
"Return a quoted string built from VAL."
(replace-regexp-in-string
";" (regexp-quote (regexp-quote "\\;"))
(replace-regexp-in-string
"\\\\" (regexp-quote (regexp-quote "\\\\"))
(ignore-errors
(replace-regexp-in-string
"\"" "#-#\\\""
val t t)))
)
";" (regexp-quote (regexp-quote "\\;"))
(replace-regexp-in-string
"\\\\" (regexp-quote (regexp-quote "\\\\"))
(replace-regexp-in-string
"\"" "#-#\\\""
val t t)))))

(defun cin-filename-p (file-name &optional allow-dir)
"Return t if the FILE-NAME is a valid cin file or a directory if ALLOW-DIR is t."
Expand Down