aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2000-06-01 05:07:32 +0000
committerStefan Monnier2000-06-01 05:07:32 +0000
commit2598a293aee59c687a20a9de623d3b21ef69e76b (patch)
tree51eab6c9e51b4f8d3da4d77ad0574fc7aafca387
parent342a1e7b200193b4373c8fed3f9ff46a36557637 (diff)
downloademacs-2598a293aee59c687a20a9de623d3b21ef69e76b.tar.gz
emacs-2598a293aee59c687a20a9de623d3b21ef69e76b.zip
Update calls to make-obsolete with a WHEN argument.
-rw-r--r--lisp/ChangeLog18
-rw-r--r--lisp/faces.el26
-rw-r--r--lisp/frame.el8
-rw-r--r--lisp/international/mule-cmds.el2
-rw-r--r--lisp/international/mule-util.el2
-rw-r--r--lisp/international/mule.el2
-rw-r--r--lisp/subr.el4
7 files changed, 40 insertions, 22 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 90f215465a8..cd057df253f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,21 @@
12000-06-01 Stefan Monnier <monnier@cs.yale.edu>
2
3 * emacs-lisp/bytecomp.el:
4 * frame.el:
5 * international/mule-cmds.el:
6 * international/mule-util.el:
7 * international/mule.el:
8 * mouse.el:
9 * subr.el:
10 * faces.el: Update calls to make-obsolete with a WHEN argument.
11
12 * byte-run.el (make-obsolete, make-obsolete-variable):
13 Add an optional WHEN argument and change the format of the
14 symbol-property information.
15 * emacs-lisp/bytecomp.el (byte-compile-log): Don't quote lambda.
16 (byte-compile-obsolete, byte-compile-variable-ref): Understand the
17 new obsolete-symbol-property format and print WHEN if it is provided.
18
12000-05-31 Dave Love <fx@gnu.org> 192000-05-31 Dave Love <fx@gnu.org>
2 20
3 * loadhist.el (loadhist-hook-functions): Remove 21 * loadhist.el (loadhist-hook-functions): Remove
diff --git a/lisp/faces.el b/lisp/faces.el
index 3ed3bb7aa74..914f2c177af 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -156,7 +156,7 @@ If NAME is already a face, it is simply returned.
156This function is defined for compatibility with Emacs 20.2. It 156This function is defined for compatibility with Emacs 20.2. It
157should not be used anymore." 157should not be used anymore."
158 (facep name)) 158 (facep name))
159(make-obsolete 'internal-find-face 'facep) 159(make-obsolete 'internal-find-face 'facep "21.1")
160 160
161 161
162(defun internal-get-face (name &optional frame) 162(defun internal-get-face (name &optional frame)
@@ -170,7 +170,7 @@ This function is defined for compatibility with Emacs 20.2. It
170should not be used anymore." 170should not be used anymore."
171 (or (internal-find-face name frame) 171 (or (internal-find-face name frame)
172 (check-face name))) 172 (check-face name)))
173(make-obsolete 'internal-get-face "See `facep' and `check-face'.") 173(make-obsolete 'internal-get-face "See `facep' and `check-face'." "21.1")
174 174
175 175
176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -1471,14 +1471,14 @@ created."
1471 1471
1472(defun frame-update-faces (frame) 1472(defun frame-update-faces (frame)
1473 nil) 1473 nil)
1474(make-obsolete 'frame-update-faces "No longer necessary") 1474(make-obsolete 'frame-update-faces "No longer necessary" "21.1")
1475 1475
1476;; Update the colors of FACE, after FRAME's own colors have been 1476;; Update the colors of FACE, after FRAME's own colors have been
1477;; changed. 1477;; changed.
1478 1478
1479(defun frame-update-face-colors (frame) 1479(defun frame-update-face-colors (frame)
1480 (frame-set-background-mode frame)) 1480 (frame-set-background-mode frame))
1481(make-obsolete 'frame-update-face-colors 'frame-set-background-mode) 1481(make-obsolete 'frame-update-face-colors 'frame-set-background-mode "21.1")
1482 1482
1483 1483
1484;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1484;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -1771,7 +1771,7 @@ also the same size as FACE on FRAME, or fail."
1771 ((string-match x-font-regexp-weight font) 1771 ((string-match x-font-regexp-weight font)
1772 (concat (substring font 0 (match-beginning 1)) which 1772 (concat (substring font 0 (match-beginning 1)) which
1773 (substring font (match-end 1))))))) 1773 (substring font (match-end 1)))))))
1774(make-obsolete 'x-frob-font-weight 'make-face-...) 1774(make-obsolete 'x-frob-font-weight 'make-face-... "21.1")
1775 1775
1776(defun x-frob-font-slant (font which) 1776(defun x-frob-font-slant (font which)
1777 (let ((case-fold-search t)) 1777 (let ((case-fold-search t))
@@ -1792,50 +1792,50 @@ also the same size as FACE on FRAME, or fail."
1792 ((string-match x-font-regexp-slant font) 1792 ((string-match x-font-regexp-slant font)
1793 (concat (substring font 0 (match-beginning 1)) which 1793 (concat (substring font 0 (match-beginning 1)) which
1794 (substring font (match-end 1))))))) 1794 (substring font (match-end 1)))))))
1795(make-obsolete 'x-frob-font-slant 'make-face-...) 1795(make-obsolete 'x-frob-font-slant 'make-face-... "21.1")
1796 1796
1797(defun x-make-font-bold (font) 1797(defun x-make-font-bold (font)
1798 "Given an X font specification, make a bold version of it. 1798 "Given an X font specification, make a bold version of it.
1799If that can't be done, return nil." 1799If that can't be done, return nil."
1800 (x-frob-font-weight font "bold")) 1800 (x-frob-font-weight font "bold"))
1801(make-obsolete 'x-make-font-bold 'make-face-bold) 1801(make-obsolete 'x-make-font-bold 'make-face-bold "21.1")
1802 1802
1803(defun x-make-font-demibold (font) 1803(defun x-make-font-demibold (font)
1804 "Given an X font specification, make a demibold version of it. 1804 "Given an X font specification, make a demibold version of it.
1805If that can't be done, return nil." 1805If that can't be done, return nil."
1806 (x-frob-font-weight font "demibold")) 1806 (x-frob-font-weight font "demibold"))
1807(make-obsolete 'x-make-font-demibold 'make-face-bold) 1807(make-obsolete 'x-make-font-demibold 'make-face-bold "21.1")
1808 1808
1809(defun x-make-font-unbold (font) 1809(defun x-make-font-unbold (font)
1810 "Given an X font specification, make a non-bold version of it. 1810 "Given an X font specification, make a non-bold version of it.
1811If that can't be done, return nil." 1811If that can't be done, return nil."
1812 (x-frob-font-weight font "medium")) 1812 (x-frob-font-weight font "medium"))
1813(make-obsolete 'x-make-font-unbold 'make-face-unbold) 1813(make-obsolete 'x-make-font-unbold 'make-face-unbold "21.1")
1814 1814
1815(defun x-make-font-italic (font) 1815(defun x-make-font-italic (font)
1816 "Given an X font specification, make an italic version of it. 1816 "Given an X font specification, make an italic version of it.
1817If that can't be done, return nil." 1817If that can't be done, return nil."
1818 (x-frob-font-slant font "i")) 1818 (x-frob-font-slant font "i"))
1819(make-obsolete 'x-make-font-italic 'make-face-italic) 1819(make-obsolete 'x-make-font-italic 'make-face-italic "21.1")
1820 1820
1821(defun x-make-font-oblique (font) ; you say tomayto... 1821(defun x-make-font-oblique (font) ; you say tomayto...
1822 "Given an X font specification, make an oblique version of it. 1822 "Given an X font specification, make an oblique version of it.
1823If that can't be done, return nil." 1823If that can't be done, return nil."
1824 (x-frob-font-slant font "o")) 1824 (x-frob-font-slant font "o"))
1825(make-obsolete 'x-make-font-oblique 'make-face-italic) 1825(make-obsolete 'x-make-font-oblique 'make-face-italic "21.1")
1826 1826
1827(defun x-make-font-unitalic (font) 1827(defun x-make-font-unitalic (font)
1828 "Given an X font specification, make a non-italic version of it. 1828 "Given an X font specification, make a non-italic version of it.
1829If that can't be done, return nil." 1829If that can't be done, return nil."
1830 (x-frob-font-slant font "r")) 1830 (x-frob-font-slant font "r"))
1831(make-obsolete 'x-make-font-unitalic 'make-face-unitalic) 1831(make-obsolete 'x-make-font-unitalic 'make-face-unitalic "21.1")
1832 1832
1833(defun x-make-font-bold-italic (font) 1833(defun x-make-font-bold-italic (font)
1834 "Given an X font specification, make a bold and italic version of it. 1834 "Given an X font specification, make a bold and italic version of it.
1835If that can't be done, return nil." 1835If that can't be done, return nil."
1836 (and (setq font (x-make-font-bold font)) 1836 (and (setq font (x-make-font-bold font))
1837 (x-make-font-italic font))) 1837 (x-make-font-italic font)))
1838(make-obsolete 'x-make-font-bold-italic 'make-face-bold-italic) 1838(make-obsolete 'x-make-font-bold-italic 'make-face-bold-italic "21.1")
1839 1839
1840(provide 'faces) 1840(provide 'faces)
1841 1841
diff --git a/lisp/frame.el b/lisp/frame.el
index 5b7709b69b4..1348fabd8a8 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -977,10 +977,10 @@ FRAME nil or omitted means delete all frames except the selected frame."
977 (mapcar 'delete-frame (delq frame (frame-list)))) 977 (mapcar 'delete-frame (delq frame (frame-list))))
978 978
979 979
980(make-obsolete 'screen-height 'frame-height) 980(make-obsolete 'screen-height 'frame-height) ;before 19.15
981(make-obsolete 'screen-width 'frame-width) 981(make-obsolete 'screen-width 'frame-width) ;before 19.15
982(make-obsolete 'set-screen-width 'set-frame-width) 982(make-obsolete 'set-screen-width 'set-frame-width) ;before 19.15
983(make-obsolete 'set-screen-height 'set-frame-height) 983(make-obsolete 'set-screen-height 'set-frame-height) ;before 19.15
984 984
985 985
986;;; Highlighting trailing whitespace. 986;;; Highlighting trailing whitespace.
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 016c2c4ecfb..33f0da1311e 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -280,7 +280,7 @@ This also sets the following values:
280 (setq default-process-coding-system (cons coding-system coding-system))) 280 (setq default-process-coding-system (cons coding-system coding-system)))
281 281
282(defalias 'update-iso-coding-systems 'update-coding-systems-internal) 282(defalias 'update-iso-coding-systems 'update-coding-systems-internal)
283(make-obsolete 'update-iso-coding-systems 'update-coding-systems-internal) 283(make-obsolete 'update-iso-coding-systems 'update-coding-systems-internal "20.3")
284 284
285(defun prefer-coding-system (coding-system) 285(defun prefer-coding-system (coding-system)
286 "Add CODING-SYSTEM at the front of the priority list for automatic detection. 286 "Add CODING-SYSTEM at the front of the priority list for automatic detection.
diff --git a/lisp/international/mule-util.el b/lisp/international/mule-util.el
index a7a53e5a3ed..af5b608f6c8 100644
--- a/lisp/international/mule-util.el
+++ b/lisp/international/mule-util.el
@@ -133,7 +133,7 @@ the resulting string may be narrower than END-COLUMN."
133;;; For backward compatibility ... 133;;; For backward compatibility ...
134;;;###autoload 134;;;###autoload
135(defalias 'truncate-string 'truncate-string-to-width) 135(defalias 'truncate-string 'truncate-string-to-width)
136(make-obsolete 'truncate-string 'truncate-string-to-width) 136(make-obsolete 'truncate-string 'truncate-string-to-width "20.1")
137 137
138;;; Nested alist handler. Nested alist is alist whose elements are 138;;; Nested alist handler. Nested alist is alist whose elements are
139;;; also nested alist. 139;;; also nested alist.
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 7b32325db46..1e7fa52aced 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -439,7 +439,7 @@ Any alias nor subsidiary coding systems are not base coding system."
439 (car (coding-system-get coding-system 'alias-coding-systems))) 439 (car (coding-system-get coding-system 'alias-coding-systems)))
440 440
441(defalias 'coding-system-parent 'coding-system-base) 441(defalias 'coding-system-parent 'coding-system-base)
442(make-obsolete 'coding-system-parent 'coding-system-base) 442(make-obsolete 'coding-system-parent 'coding-system-base "20.3")
443 443
444;; Coding system also has a property `eol-type'. 444;; Coding system also has a property `eol-type'.
445;; 445;;
diff --git a/lisp/subr.el b/lisp/subr.el
index e33d2b027f5..9bef0025d52 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -615,8 +615,8 @@ as returned by the `event-start' and `event-end' functions."
615(defalias 'define-function 'defalias) 615(defalias 'define-function 'defalias)
616 616
617(defalias 'sref 'aref) 617(defalias 'sref 'aref)
618(make-obsolete 'sref 'aref) 618(make-obsolete 'sref 'aref "20.4")
619(make-obsolete 'char-bytes "Now this function always returns 1") 619(make-obsolete 'char-bytes "Now this function always returns 1" "20.4")
620 620
621;; Some programs still use this as a function. 621;; Some programs still use this as a function.
622(defun baud-rate () 622(defun baud-rate ()