emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/company 24aefbd 2/2: Fix some quoting problems in doc s


From: Stefan Monnier
Subject: [elpa] externals/company 24aefbd 2/2: Fix some quoting problems in doc strings
Date: Fri, 27 Nov 2020 18:18:59 -0500 (EST)

branch: externals/company
commit 24aefbd4a36aa4c85f762a69bf39fe1247a4f9d3
Author: Paul Eggert <eggert@cs.ucla.edu>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    Fix some quoting problems in doc strings
    
    Most of these are minor issues involving, e.g., quoting `like this'
    instead of 'like this'.  A few involve escaping ` and ' with a
    preceding \= when the characters should not be turned into curved single
    quotes.
---
 company-elisp.el     |  2 +-
 company-yasnippet.el | 10 +++++-----
 company.el           |  2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/company-elisp.el b/company-elisp.el
index fd7b28b..c024d66 100644
--- a/company-elisp.el
+++ b/company-elisp.el
@@ -37,7 +37,7 @@
 
 (defcustom company-elisp-detect-function-context t
   "If enabled, offer Lisp functions only in appropriate contexts.
-Functions are offered for completion only after ' and \(."
+Functions are offered for completion only after \\=' and \(."
   :type '(choice (const :tag "Off" nil)
                  (const :tag "On" t)))
 
diff --git a/company-yasnippet.el b/company-yasnippet.el
index 565f8f1..197ae78 100644
--- a/company-yasnippet.el
+++ b/company-yasnippet.el
@@ -137,18 +137,18 @@ shadow backends that come after it.  Recommended usages:
 * In a buffer-local value of `company-backends', grouped with a backend or
   several that provide actual text completions.
 
-  (add-hook 'js-mode-hook
+  (add-hook \\='js-mode-hook
             (lambda ()
-              (set (make-local-variable 'company-backends)
-                   '((company-dabbrev-code company-yasnippet)))))
+              (set (make-local-variable \\='company-backends)
+                   \\='((company-dabbrev-code company-yasnippet)))))
 
 * After keyword `:with', grouped with other backends.
 
-  (push '(company-semantic :with company-yasnippet) company-backends)
+  (push \\='(company-semantic :with company-yasnippet) company-backends)
 
 * Not in `company-backends', just bound to a key.
 
-  (global-set-key (kbd \"C-c y\") 'company-yasnippet)
+  (global-set-key (kbd \"C-c y\") \\='company-yasnippet)
 "
   (interactive (list 'interactive))
   (cl-case command
diff --git a/company.el b/company.el
index 9f2627b..b96983b 100644
--- a/company.el
+++ b/company.el
@@ -2398,7 +2398,7 @@ It defaults to 0.
 CALLBACK is a function called with the selected result if the user
 successfully completes the input.
 
-Example: \(company-begin-with '\(\"foo\" \"foobar\" \"foobarbaz\"\)\)"
+Example: \(company-begin-with \\='\(\"foo\" \"foobar\" \"foobarbaz\"\)\)"
   (let ((begin-marker (copy-marker (point) t)))
     (company-begin-backend
      (lambda (command &optional arg &rest ignored)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]