]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix references to long obsoleted functions/aliases
authorMark Oteiza <mvoteiza@udel.edu>
Fri, 4 Nov 2016 16:45:51 +0000 (12:45 -0400)
committerMark Oteiza <mvoteiza@udel.edu>
Fri, 4 Nov 2016 16:51:04 +0000 (12:51 -0400)
* doc/lispintro/emacs-list-intro.texi (Miscellaneous):
* doc/misc/cl.texi (Conditionals):
* doc/misc/speedbar.texi (Major Display Modes): Use string-to-number,
not string-to-int.
* lisp/emulation/viper.el (viper-go-away): Use major-mode, not
default-major-mode.
* lisp/textmodes/reftex-toc.el (reftex-toc-visit-location): show-window
here is not a function call, but shorten the binding names anyways.
Also, use pop-to-buffer-same-window instead of switch-to-buffer cf
Bug#22244.
* lisp/textmodes/sgml-mode.el (html-tag-alist): Use read-string, not
read-input.

doc/lispintro/emacs-lisp-intro.texi
doc/misc/cl.texi
doc/misc/speedbar.texi
lisp/emulation/viper.el
lisp/textmodes/reftex-toc.el
lisp/textmodes/sgml-mode.el

index 86c8da0e4612ec7043f65ec6d80d2cc66da366ab..958dba13a2b85dc1a2ae6ac626c0011d07fa685b 100644 (file)
@@ -17647,7 +17647,7 @@ Set the shape and color of the mouse cursor:
       (setq mpointer "132")) ; top_left_arrow
 @end group
 @group
-  (setq x-pointer-shape (string-to-int mpointer))
+  (setq x-pointer-shape (string-to-number mpointer))
   (set-mouse-color "white"))
 @end group
 @end smallexample
index c62fa727c1059f44401a86ed182f6ec48b615226..4f15cf53d4a8e9f1a00feb03c1c4a2bd3913583c 100644 (file)
@@ -1486,7 +1486,7 @@ for a description of type specifiers.  For example,
 (cl-typecase x
   (integer (munch-integer x))
   (float (munch-float x))
-  (string (munch-integer (string-to-int x)))
+  (string (munch-integer (string-to-number x)))
   (t (munch-anything x)))
 @end example
 
index d43c521f76afc4e0c70f1b7885961dcf99b0bd42..27b57c0a03a114987c94e3e71a927256a7d53b46 100644 (file)
@@ -1030,7 +1030,7 @@ it is not provided, you can derive it like this:
       (progn
         (beginning-of-line)
         (looking-at "^\\([0-9]+\\):")
-        (setq depth (string-to-int (match-string 1)))))
+        (setq depth (string-to-number (match-string 1)))))
 @end example
 
 @noindent
index 1ee1464ac73eaf6c0aec9bd1f80babd777710cc6..04a7c22e787dfecbd7b9873e0dcebf7bb0c7b731 100644 (file)
@@ -683,7 +683,7 @@ It also can't undo some Viper settings."
    (delq 'viper-mode-string global-mode-string))
 
   (setq-default major-mode
-                (viper-standard-value 'default-major-mode
+                (viper-standard-value 'major-mode
                                       viper-saved-non-viper-variables))
 
   (if (featurep 'emacs)
index 915acc8382d6e0434540ec4ec87e9b8c7ad5820a..5df4178b966994c58df3e30251a3c7a3608dc391 100644 (file)
@@ -942,17 +942,17 @@ label prefix determines the wording of a reference."
       (with-selected-window toc-window
         (reftex-unhighlight 0)))
      ((eq final 'hide)
-      (let ((show-window (selected-window))
-            (show-buffer (window-buffer)))
-        (unless (eq show-window toc-window) ;FIXME: Can this happen?
+      (let ((window (selected-window))
+            (buffer (window-buffer)))
+        (unless (eq window toc-window) ;FIXME: Can this happen?
           (with-selected-window toc-window
             (reftex-unhighlight 0)
             (or (one-window-p) (delete-window))))
-        ;; If `show-window' is still live, show-buffer is already visible
+        ;; If window is still live, buffer is already visible
         ;; so let's not make it visible in yet-another-window.
-        (unless (window-live-p show-window)
-          ;; FIXME: How could show-window not be live?
-          (switch-to-buffer show-buffer))
+        (unless (window-live-p window)
+          ;; FIXME: How could window not be live?
+          (pop-to-buffer-same-window buffer))
         (reftex-re-enlarge)))
      (t
       (unless (eq (selected-frame) (window-frame toc-window))
index 43effefdecdfffb5576eb1387709cfed324aca85..13c3cfbca406c1a2d7c3c87c74dbeda40137eaea 100644 (file)
@@ -1926,7 +1926,7 @@ This takes effect when first loading the library.")
       ("hgroup" \n)
       ("html" (\n
               "<head>\n"
-              "<title>" (setq str (read-input "Title: ")) "</title>\n"
+              "<title>" (setq str (read-string "Title: ")) "</title>\n"
               "</head>\n"
               "<body>\n<h1>" str "</h1>\n" _
               "\n<address>\n<a href=\"mailto:"