]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove pointless use of intern
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 17 Sep 2020 08:54:09 +0000 (10:54 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 17 Sep 2020 09:13:54 +0000 (11:13 +0200)
* lisp/mwheel.el (mouse-wheel-left-event)
(mouse-wheel-right-event): Replace use of intern with quoted
symbol.
* lisp/profiler.el (profiler-calltree-build-unified): Likewise.
* lisp/vc/ediff-util.el (ediff-debug-info): Likewise.

lisp/mwheel.el
lisp/profiler.el
lisp/vc/ediff-util.el

index 3b93bd1d5e4ece4208281a46fb2e948b1cc0620c..32fde0dd058e2b0b45f385ff1a2ebecc6393ada1 100644 (file)
@@ -203,13 +203,13 @@ Also see `mouse-wheel-tilt-scroll'."
 (defvar mouse-wheel-left-event
   (if (or (featurep 'w32-win) (featurep 'ns-win))
       'wheel-left
-    (intern "mouse-6"))
+    'mouse-6)
   "Event used for scrolling left.")
 
 (defvar mouse-wheel-right-event
   (if (or (featurep 'w32-win) (featurep 'ns-win))
       'wheel-right
-    (intern "mouse-7"))
+    'mouse-7)
   "Event used for scrolling right.")
 
 (defun mouse-wheel--get-scroll-window (event)
index 0a5ddc1df46f51240622a5132ee463a8a2b53d4a..bf8aacccc37a8f8af3a76aed1245238bd0754a19 100644 (file)
@@ -305,7 +305,7 @@ Optional argument MODE means only check for the specified mode (cpu or mem)."
   (let ((fun-map (make-hash-table :test 'profiler-function-equal))
         (parent-map (make-hash-table :test 'eq))
         (leftover-tree (profiler-make-calltree
-                        :entry (intern "...") :parent tree)))
+                        :entry '... :parent tree)))
     (push leftover-tree (profiler-calltree-children tree))
     (maphash
      (lambda (backtrace _count)
index 52878bad8a7c4772f4c44919a848f308e203817d..e28d8574b1c9d12af21ab146b4dddcd6a19d9002 100644 (file)
@@ -4129,10 +4129,10 @@ Mail anyway? (y or n) ")
     (ediff-with-current-buffer standard-output
       (fundamental-mode))
     (princ (format "\nCtl buffer: %S\n" ediff-control-buffer))
-    (ediff-print-diff-vector (intern "ediff-difference-vector-A"))
-    (ediff-print-diff-vector (intern "ediff-difference-vector-B"))
-    (ediff-print-diff-vector (intern "ediff-difference-vector-C"))
-    (ediff-print-diff-vector (intern "ediff-difference-vector-Ancestor"))
+    (ediff-print-diff-vector 'ediff-difference-vector-A)
+    (ediff-print-diff-vector 'ediff-difference-vector-B)
+    (ediff-print-diff-vector 'ediff-difference-vector-C)
+    (ediff-print-diff-vector 'ediff-difference-vector-Ancestor)
     ))