diff options
| author | Andreas Schwab | 2012-07-11 09:19:44 +0200 |
|---|---|---|
| committer | Andreas Schwab | 2012-07-11 09:19:44 +0200 |
| commit | 34348bd4e5c89fa0e440e37efa20be2a00c8fd9c (patch) | |
| tree | 679635a1ad78cb4068413ebb7080afcbcec31abd /src | |
| parent | 172bedefc979b19de6799b245e8843f84bfe70b5 (diff) | |
| download | emacs-34348bd4e5c89fa0e440e37efa20be2a00c8fd9c.tar.gz emacs-34348bd4e5c89fa0e440e37efa20be2a00c8fd9c.zip | |
* coding.c (Fdefine_coding_system_internal): Use XCAR/XCDR instead
of Fcar/Fcdr if possible.
* font.c (check_otf_features): Likewise.
* fontset.c (Fnew_fontset): Likewise.
* gnutls.c (Fgnutls_boot): Likewise.
* minibuf.c (read_minibuf): Likewise.
* msdos.c (IT_set_frame_parameters): Likewise.
* xmenu.c (Fx_popup_dialog): Likewise.
* w32menu.c (Fx_popup_dialog): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/coding.c | 4 | ||||
| -rw-r--r-- | src/font.c | 4 | ||||
| -rw-r--r-- | src/fontset.c | 2 | ||||
| -rw-r--r-- | src/gnutls.c | 8 | ||||
| -rw-r--r-- | src/minibuf.c | 2 | ||||
| -rw-r--r-- | src/msdos.c | 4 | ||||
| -rw-r--r-- | src/w32menu.c | 4 | ||||
| -rw-r--r-- | src/xmenu.c | 4 |
9 files changed, 27 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c9e4cbbabc0..0ca6c0594a8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2012-07-11 Andreas Schwab <schwab@linux-m68k.org> | ||
| 2 | |||
| 3 | * coding.c (Fdefine_coding_system_internal): Use XCAR/XCDR instead | ||
| 4 | of Fcar/Fcdr if possible. | ||
| 5 | * font.c (check_otf_features): Likewise. | ||
| 6 | * fontset.c (Fnew_fontset): Likewise. | ||
| 7 | * gnutls.c (Fgnutls_boot): Likewise. | ||
| 8 | * minibuf.c (read_minibuf): Likewise. | ||
| 9 | * msdos.c (IT_set_frame_parameters): Likewise. | ||
| 10 | * xmenu.c (Fx_popup_dialog): Likewise. | ||
| 11 | * w32menu.c (Fx_popup_dialog): Likewise. | ||
| 12 | |||
| 1 | 2012-07-11 Glenn Morris <rgm@gnu.org> | 13 | 2012-07-11 Glenn Morris <rgm@gnu.org> |
| 2 | 14 | ||
| 3 | * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h: | 15 | * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/darwin.h: |
diff --git a/src/coding.c b/src/coding.c index 134ebf2ab73..d9fcc634b77 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -9795,7 +9795,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 9795 | { | 9795 | { |
| 9796 | int from, to; | 9796 | int from, to; |
| 9797 | 9797 | ||
| 9798 | val = Fcar (tail); | 9798 | val = XCAR (tail); |
| 9799 | if (INTEGERP (val)) | 9799 | if (INTEGERP (val)) |
| 9800 | { | 9800 | { |
| 9801 | if (! (0 <= XINT (val) && XINT (val) <= 255)) | 9801 | if (! (0 <= XINT (val) && XINT (val) <= 255)) |
| @@ -9897,7 +9897,7 @@ usage: (define-coding-system-internal ...) */) | |||
| 9897 | int id; | 9897 | int id; |
| 9898 | Lisp_Object tmp1; | 9898 | Lisp_Object tmp1; |
| 9899 | 9899 | ||
| 9900 | val = Fcar (tail); | 9900 | val = XCAR (tail); |
| 9901 | CHECK_CONS (val); | 9901 | CHECK_CONS (val); |
| 9902 | tmp1 = XCAR (val); | 9902 | tmp1 = XCAR (val); |
| 9903 | CHECK_CHARSET_GET_ID (tmp1, id); | 9903 | CHECK_CHARSET_GET_ID (tmp1, id); |
diff --git a/src/font.c b/src/font.c index bbfda984a4d..a57029b4af2 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -1827,7 +1827,7 @@ check_otf_features (Lisp_Object otf_features) | |||
| 1827 | otf_features = XCDR (otf_features); | 1827 | otf_features = XCDR (otf_features); |
| 1828 | for (val = Fcar (otf_features); CONSP (val); val = XCDR (val)) | 1828 | for (val = Fcar (otf_features); CONSP (val); val = XCDR (val)) |
| 1829 | { | 1829 | { |
| 1830 | CHECK_SYMBOL (Fcar (val)); | 1830 | CHECK_SYMBOL (XCAR (val)); |
| 1831 | if (SBYTES (SYMBOL_NAME (XCAR (val))) > 4) | 1831 | if (SBYTES (SYMBOL_NAME (XCAR (val))) > 4) |
| 1832 | error ("Invalid OTF GSUB feature: %s", | 1832 | error ("Invalid OTF GSUB feature: %s", |
| 1833 | SDATA (SYMBOL_NAME (XCAR (val)))); | 1833 | SDATA (SYMBOL_NAME (XCAR (val)))); |
| @@ -1835,7 +1835,7 @@ check_otf_features (Lisp_Object otf_features) | |||
| 1835 | otf_features = XCDR (otf_features); | 1835 | otf_features = XCDR (otf_features); |
| 1836 | for (val = Fcar (otf_features); CONSP (val); val = XCDR (val)) | 1836 | for (val = Fcar (otf_features); CONSP (val); val = XCDR (val)) |
| 1837 | { | 1837 | { |
| 1838 | CHECK_SYMBOL (Fcar (val)); | 1838 | CHECK_SYMBOL (XCAR (val)); |
| 1839 | if (SBYTES (SYMBOL_NAME (XCAR (val))) > 4) | 1839 | if (SBYTES (SYMBOL_NAME (XCAR (val))) > 4) |
| 1840 | error ("Invalid OTF GPOS feature: %s", | 1840 | error ("Invalid OTF GPOS feature: %s", |
| 1841 | SDATA (SYMBOL_NAME (XCAR (val)))); | 1841 | SDATA (SYMBOL_NAME (XCAR (val)))); |
diff --git a/src/fontset.c b/src/fontset.c index 3397502a2fd..f3bf221f249 100644 --- a/src/fontset.c +++ b/src/fontset.c | |||
| @@ -1672,7 +1672,7 @@ FONT-SPEC is a vector, a cons, or a string. See the documentation of | |||
| 1672 | { | 1672 | { |
| 1673 | Lisp_Object elt, script; | 1673 | Lisp_Object elt, script; |
| 1674 | 1674 | ||
| 1675 | elt = Fcar (fontlist); | 1675 | elt = XCAR (fontlist); |
| 1676 | script = Fcar (elt); | 1676 | script = Fcar (elt); |
| 1677 | elt = Fcdr (elt); | 1677 | elt = Fcdr (elt); |
| 1678 | if (CONSP (elt) && (NILP (XCDR (elt)) || CONSP (XCDR (elt)))) | 1678 | if (CONSP (elt) && (NILP (XCDR (elt)) || CONSP (XCDR (elt)))) |
diff --git a/src/gnutls.c b/src/gnutls.c index 21658a1bc82..ad569e98226 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -873,7 +873,7 @@ one trustfile (usually a CA bundle). */) | |||
| 873 | 873 | ||
| 874 | for (tail = trustfiles; CONSP (tail); tail = XCDR (tail)) | 874 | for (tail = trustfiles; CONSP (tail); tail = XCDR (tail)) |
| 875 | { | 875 | { |
| 876 | Lisp_Object trustfile = Fcar (tail); | 876 | Lisp_Object trustfile = XCAR (tail); |
| 877 | if (STRINGP (trustfile)) | 877 | if (STRINGP (trustfile)) |
| 878 | { | 878 | { |
| 879 | GNUTLS_LOG2 (1, max_log_level, "setting the trustfile: ", | 879 | GNUTLS_LOG2 (1, max_log_level, "setting the trustfile: ", |
| @@ -895,7 +895,7 @@ one trustfile (usually a CA bundle). */) | |||
| 895 | 895 | ||
| 896 | for (tail = crlfiles; CONSP (tail); tail = XCDR (tail)) | 896 | for (tail = crlfiles; CONSP (tail); tail = XCDR (tail)) |
| 897 | { | 897 | { |
| 898 | Lisp_Object crlfile = Fcar (tail); | 898 | Lisp_Object crlfile = XCAR (tail); |
| 899 | if (STRINGP (crlfile)) | 899 | if (STRINGP (crlfile)) |
| 900 | { | 900 | { |
| 901 | GNUTLS_LOG2 (1, max_log_level, "setting the CRL file: ", | 901 | GNUTLS_LOG2 (1, max_log_level, "setting the CRL file: ", |
| @@ -915,8 +915,8 @@ one trustfile (usually a CA bundle). */) | |||
| 915 | 915 | ||
| 916 | for (tail = keylist; CONSP (tail); tail = XCDR (tail)) | 916 | for (tail = keylist; CONSP (tail); tail = XCDR (tail)) |
| 917 | { | 917 | { |
| 918 | Lisp_Object keyfile = Fcar (Fcar (tail)); | 918 | Lisp_Object keyfile = Fcar (XCAR (tail)); |
| 919 | Lisp_Object certfile = Fcar (Fcdr (tail)); | 919 | Lisp_Object certfile = Fcar (XCDR (tail)); |
| 920 | if (STRINGP (keyfile) && STRINGP (certfile)) | 920 | if (STRINGP (keyfile) && STRINGP (certfile)) |
| 921 | { | 921 | { |
| 922 | GNUTLS_LOG2 (1, max_log_level, "setting the client key file: ", | 922 | GNUTLS_LOG2 (1, max_log_level, "setting the client key file: ", |
diff --git a/src/minibuf.c b/src/minibuf.c index 27c776857db..7e47be39bc9 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -424,7 +424,7 @@ read_minibuf (Lisp_Object map, Lisp_Object initial, Lisp_Object prompt, | |||
| 424 | { | 424 | { |
| 425 | if (CONSP (initial)) | 425 | if (CONSP (initial)) |
| 426 | { | 426 | { |
| 427 | Lisp_Object backup_n = Fcdr (initial); | 427 | Lisp_Object backup_n = XCDR (initial); |
| 428 | initial = XCAR (initial); | 428 | initial = XCAR (initial); |
| 429 | CHECK_STRING (initial); | 429 | CHECK_STRING (initial); |
| 430 | if (!NILP (backup_n)) | 430 | if (!NILP (backup_n)) |
diff --git a/src/msdos.c b/src/msdos.c index d75277e3866..d6a493a71d3 100644 --- a/src/msdos.c +++ b/src/msdos.c | |||
| @@ -1620,9 +1620,7 @@ IT_set_frame_parameters (struct frame *f, Lisp_Object alist) | |||
| 1620 | i = 0; | 1620 | i = 0; |
| 1621 | for (tail = alist; CONSP (tail); tail = XCDR (tail)) | 1621 | for (tail = alist; CONSP (tail); tail = XCDR (tail)) |
| 1622 | { | 1622 | { |
| 1623 | Lisp_Object elt; | 1623 | Lisp_Object elt = XCAR (tail); |
| 1624 | |||
| 1625 | elt = Fcar (tail); | ||
| 1626 | parms[i] = Fcar (elt); | 1624 | parms[i] = Fcar (elt); |
| 1627 | CHECK_SYMBOL (parms[i]); | 1625 | CHECK_SYMBOL (parms[i]); |
| 1628 | values[i] = Fcdr (elt); | 1626 | values[i] = Fcdr (elt); |
diff --git a/src/w32menu.c b/src/w32menu.c index 8adc6c62814..24dc9d79192 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -164,10 +164,10 @@ otherwise it is "Question". */) | |||
| 164 | { | 164 | { |
| 165 | Lisp_Object tem = XCAR (position); | 165 | Lisp_Object tem = XCAR (position); |
| 166 | if (CONSP (tem)) | 166 | if (CONSP (tem)) |
| 167 | window = Fcar (Fcdr (position)); | 167 | window = Fcar (XCDR (position)); |
| 168 | else | 168 | else |
| 169 | { | 169 | { |
| 170 | tem = Fcar (Fcdr (position)); /* EVENT_START (position) */ | 170 | tem = Fcar (XCDR (position)); /* EVENT_START (position) */ |
| 171 | window = Fcar (tem); /* POSN_WINDOW (tem) */ | 171 | window = Fcar (tem); /* POSN_WINDOW (tem) */ |
| 172 | } | 172 | } |
| 173 | } | 173 | } |
diff --git a/src/xmenu.c b/src/xmenu.c index fb03ab84d82..61e3e3632b0 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -260,10 +260,10 @@ for instance using the window manager, then this produces a quit and | |||
| 260 | { | 260 | { |
| 261 | Lisp_Object tem = XCAR (position); | 261 | Lisp_Object tem = XCAR (position); |
| 262 | if (CONSP (tem)) | 262 | if (CONSP (tem)) |
| 263 | window = Fcar (Fcdr (position)); | 263 | window = Fcar (XCDR (position)); |
| 264 | else | 264 | else |
| 265 | { | 265 | { |
| 266 | tem = Fcar (Fcdr (position)); /* EVENT_START (position) */ | 266 | tem = Fcar (XCDR (position)); /* EVENT_START (position) */ |
| 267 | window = Fcar (tem); /* POSN_WINDOW (tem) */ | 267 | window = Fcar (tem); /* POSN_WINDOW (tem) */ |
| 268 | } | 268 | } |
| 269 | } | 269 | } |