diff options
| author | Paul Eggert | 2016-03-27 15:52:03 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-03-27 15:53:34 -0700 |
| commit | f41f573ee199834e7d5e36ede029c6f47b1c3b09 (patch) | |
| tree | 998e5b66efd7d13eccb972d830b49fa3539fab4e /src | |
| parent | bc9cc21d34ae71dc38bd20f224c4b3ac073bcb50 (diff) | |
| download | emacs-f41f573ee199834e7d5e36ede029c6f47b1c3b09.tar.gz emacs-f41f573ee199834e7d5e36ede029c6f47b1c3b09.zip | |
Rename C names to match Lisp symbols better
This was inspired by commit e65c3079c65595d95749348366af9811fafff062,
which fixed a bug where the C name for a symbol disagreed with the
symbol name itself. Fix other instances of disagreements that I found.
Although this doesn’t fix a bug, it should make code easier to follow.
The remaining disagreements are idiosyncratic: Qminus, Qplus,
Qsans__serif, Qbackquote, Qcomma, Qcomma_at, Qcomma_dot.
All uses changed.
* src/alloc.c (QAutomatic_GC): Rename from Qautomatic_gc.
* src/dbusbind.c (QCsystem): Rename from QCdbus_system_bus.
(QCsession): Rename from QCdbus_session_bus.
(QCtimeout): Rename from QCdbus_timeout.
(QCbyte): Rename from QCdbus_type_byte.
(QCboolean): Rename from QCdbus_type_boolean.
(QCint16): Rename from QCdbus_type_int16.
(QCuint16): Rename from QCdbus_type_uint16.
(QCint32): Rename from QCdbus_type_int32.
(QCuint32): Rename from QCdbus_type_uint32.
(QCint64): Rename from QCdbus_type_int64.
(QCuint64): Rename from QCdbus_type_uint64.
(QCdouble): Rename from QCdbus_type_double.
(QCstring): Rename from QCdbus_type_string.
(QCobject_path): Rename from QCdbus_type_object_path.
(QCsignature): Rename from QCdbus_type_signature.
(QCunix_fd): Rename from QCdbus_type_unix_fd.
(QCarray): Rename from QCdbus_type_array.
(QCvariant): Rename from QCdbus_type_variant.
(QCstruct): Rename from QCdbus_type_struct.
(QCdict_entry): Rename from QCdbus_type_dict_entry.
(QCserial): Rename from QCdbus_registered_serial.
(QCmethod): Rename from QCdbus_registered_method.
(QCsignal): Rename from QCdbus_registered_signal.
* src/emacs-module.c (Qinternal__module_call):
Rename from Qinternal_module_call.
* src/frame.c (Qwindow__pixel_to_total):
Rename from Qwindow_pixel_to_total.
* src/gnutls.c (QChostname): Rename from QCgnutls_bootprop_hostname.
(QCpriority): Rename from QCgnutls_bootprop_priority.
(QCtrustfiles): Rename from QCgnutls_bootprop_trustfiles.
(QCkeylist): Rename from QCgnutls_bootprop_keylist.
(QCcrlfiles): Rename from QCgnutls_bootprop_crlfiles.
(QCmin_prime_bits): Rename from QCgnutls_bootprop_min_prime_bits.
(QCloglevel): Rename from QCgnutls_bootprop_loglevel.
(QCcomplete_negotiation): Rename from QCgnutls_complete_negotiation.
(QCverify_flags): Rename from QCgnutls_bootprop_verify_flags.
(QCverify_error): Rename from QCgnutls_bootprop_verify_error.
* src/w32fns.c (Qfont_parameter): Rename from Qfont_param.
(Qgnutls): Rename from Qgnutls_dll.
(Qlibxml2): Rename from Qlibxml2_dll.
(Qzlib): Rename from Qzlib_dll.
* src/w32select.c (Qutf_16le_dos): Rename from QUNICODE.
* src/window.c (Qwindow__resize_root_window):
Rename from Qwindow_resize_root_window.
(Qwindow__resize_root_window_vertically):
Rename from Qwindow_resize_root_window_vertically.
(Qwindow__sanitize_window_sizes):
Rename from Qwindow_sanitize_window_sizes.
(Qwindow__pixel_to_total): Rename from Qwindow_pixel_to_total.
* src/xdisp.c (Qredisplay_internal_xC_functionx):
Rename from Qredisplay_internal.
* src/xfns.c (Qfont_parameter): Rename from Qfont_param.
* src/xselect.c (Q_EMACS_TMP_): Rename from QEMACS_TMP.
Diffstat (limited to 'src')
| -rw-r--r-- | src/alloc.c | 4 | ||||
| -rw-r--r-- | src/dbusbind.c | 121 | ||||
| -rw-r--r-- | src/decompress.c | 6 | ||||
| -rw-r--r-- | src/emacs-module.c | 4 | ||||
| -rw-r--r-- | src/frame.c | 8 | ||||
| -rw-r--r-- | src/gnutls.c | 54 | ||||
| -rw-r--r-- | src/profiler.c | 4 | ||||
| -rw-r--r-- | src/w32fns.c | 11 | ||||
| -rw-r--r-- | src/w32select.c | 6 | ||||
| -rw-r--r-- | src/window.c | 24 | ||||
| -rw-r--r-- | src/xdisp.c | 4 | ||||
| -rw-r--r-- | src/xfns.c | 6 | ||||
| -rw-r--r-- | src/xml.c | 8 | ||||
| -rw-r--r-- | src/xselect.c | 6 |
14 files changed, 133 insertions, 133 deletions
diff --git a/src/alloc.c b/src/alloc.c index 66dbde0fb0a..1e4ec8b0573 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5658,7 +5658,7 @@ garbage_collect_1 (void *end) | |||
| 5658 | return Qnil; | 5658 | return Qnil; |
| 5659 | 5659 | ||
| 5660 | /* Record this function, so it appears on the profiler's backtraces. */ | 5660 | /* Record this function, so it appears on the profiler's backtraces. */ |
| 5661 | record_in_backtrace (Qautomatic_gc, 0, 0); | 5661 | record_in_backtrace (QAutomatic_GC, 0, 0); |
| 5662 | 5662 | ||
| 5663 | check_cons_list (); | 5663 | check_cons_list (); |
| 5664 | 5664 | ||
| @@ -7388,7 +7388,7 @@ do hash-consing of the objects allocated to pure space. */); | |||
| 7388 | DEFSYM (Qstring_bytes, "string-bytes"); | 7388 | DEFSYM (Qstring_bytes, "string-bytes"); |
| 7389 | DEFSYM (Qvector_slots, "vector-slots"); | 7389 | DEFSYM (Qvector_slots, "vector-slots"); |
| 7390 | DEFSYM (Qheap, "heap"); | 7390 | DEFSYM (Qheap, "heap"); |
| 7391 | DEFSYM (Qautomatic_gc, "Automatic GC"); | 7391 | DEFSYM (QAutomatic_GC, "Automatic GC"); |
| 7392 | 7392 | ||
| 7393 | DEFSYM (Qgc_cons_threshold, "gc-cons-threshold"); | 7393 | DEFSYM (Qgc_cons_threshold, "gc-cons-threshold"); |
| 7394 | DEFSYM (Qchar_table_extra_slots, "char-table-extra-slots"); | 7394 | DEFSYM (Qchar_table_extra_slots, "char-table-extra-slots"); |
diff --git a/src/dbusbind.c b/src/dbusbind.c index d3a32c00341..618176dd452 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -168,25 +168,25 @@ static int | |||
| 168 | xd_symbol_to_dbus_type (Lisp_Object object) | 168 | xd_symbol_to_dbus_type (Lisp_Object object) |
| 169 | { | 169 | { |
| 170 | return | 170 | return |
| 171 | ((EQ (object, QCdbus_type_byte)) ? DBUS_TYPE_BYTE | 171 | (EQ (object, QCbyte) ? DBUS_TYPE_BYTE |
| 172 | : (EQ (object, QCdbus_type_boolean)) ? DBUS_TYPE_BOOLEAN | 172 | : EQ (object, QCboolean) ? DBUS_TYPE_BOOLEAN |
| 173 | : (EQ (object, QCdbus_type_int16)) ? DBUS_TYPE_INT16 | 173 | : EQ (object, QCint16) ? DBUS_TYPE_INT16 |
| 174 | : (EQ (object, QCdbus_type_uint16)) ? DBUS_TYPE_UINT16 | 174 | : EQ (object, QCuint16) ? DBUS_TYPE_UINT16 |
| 175 | : (EQ (object, QCdbus_type_int32)) ? DBUS_TYPE_INT32 | 175 | : EQ (object, QCint32) ? DBUS_TYPE_INT32 |
| 176 | : (EQ (object, QCdbus_type_uint32)) ? DBUS_TYPE_UINT32 | 176 | : EQ (object, QCuint32) ? DBUS_TYPE_UINT32 |
| 177 | : (EQ (object, QCdbus_type_int64)) ? DBUS_TYPE_INT64 | 177 | : EQ (object, QCint64) ? DBUS_TYPE_INT64 |
| 178 | : (EQ (object, QCdbus_type_uint64)) ? DBUS_TYPE_UINT64 | 178 | : EQ (object, QCuint64) ? DBUS_TYPE_UINT64 |
| 179 | : (EQ (object, QCdbus_type_double)) ? DBUS_TYPE_DOUBLE | 179 | : EQ (object, QCdouble) ? DBUS_TYPE_DOUBLE |
| 180 | : (EQ (object, QCdbus_type_string)) ? DBUS_TYPE_STRING | 180 | : EQ (object, QCstring) ? DBUS_TYPE_STRING |
| 181 | : (EQ (object, QCdbus_type_object_path)) ? DBUS_TYPE_OBJECT_PATH | 181 | : EQ (object, QCobject_path) ? DBUS_TYPE_OBJECT_PATH |
| 182 | : (EQ (object, QCdbus_type_signature)) ? DBUS_TYPE_SIGNATURE | 182 | : EQ (object, QCsignature) ? DBUS_TYPE_SIGNATURE |
| 183 | #ifdef DBUS_TYPE_UNIX_FD | 183 | #ifdef DBUS_TYPE_UNIX_FD |
| 184 | : (EQ (object, QCdbus_type_unix_fd)) ? DBUS_TYPE_UNIX_FD | 184 | : EQ (object, QCunix_fd) ? DBUS_TYPE_UNIX_FD |
| 185 | #endif | 185 | #endif |
| 186 | : (EQ (object, QCdbus_type_array)) ? DBUS_TYPE_ARRAY | 186 | : EQ (object, QCarray) ? DBUS_TYPE_ARRAY |
| 187 | : (EQ (object, QCdbus_type_variant)) ? DBUS_TYPE_VARIANT | 187 | : EQ (object, QCvariant) ? DBUS_TYPE_VARIANT |
| 188 | : (EQ (object, QCdbus_type_struct)) ? DBUS_TYPE_STRUCT | 188 | : EQ (object, QCstruct) ? DBUS_TYPE_STRUCT |
| 189 | : (EQ (object, QCdbus_type_dict_entry)) ? DBUS_TYPE_DICT_ENTRY | 189 | : EQ (object, QCdict_entry) ? DBUS_TYPE_DICT_ENTRY |
| 190 | : DBUS_TYPE_INVALID); | 190 | : DBUS_TYPE_INVALID); |
| 191 | } | 191 | } |
| 192 | 192 | ||
| @@ -257,16 +257,16 @@ XD_OBJECT_TO_STRING (Lisp_Object object) | |||
| 257 | if ((session_bus_address != NULL) \ | 257 | if ((session_bus_address != NULL) \ |
| 258 | && (!NILP (Fstring_equal \ | 258 | && (!NILP (Fstring_equal \ |
| 259 | (bus, build_string (session_bus_address))))) \ | 259 | (bus, build_string (session_bus_address))))) \ |
| 260 | bus = QCdbus_session_bus; \ | 260 | bus = QCsession; \ |
| 261 | } \ | 261 | } \ |
| 262 | \ | 262 | \ |
| 263 | else \ | 263 | else \ |
| 264 | { \ | 264 | { \ |
| 265 | CHECK_SYMBOL (bus); \ | 265 | CHECK_SYMBOL (bus); \ |
| 266 | if (!(EQ (bus, QCdbus_system_bus) || EQ (bus, QCdbus_session_bus))) \ | 266 | if (!(EQ (bus, QCsystem) || EQ (bus, QCsession))) \ |
| 267 | XD_SIGNAL2 (build_string ("Wrong bus name"), bus); \ | 267 | XD_SIGNAL2 (build_string ("Wrong bus name"), bus); \ |
| 268 | /* We do not want to have an autolaunch for the session bus. */ \ | 268 | /* We do not want to have an autolaunch for the session bus. */ \ |
| 269 | if (EQ (bus, QCdbus_session_bus) && session_bus_address == NULL) \ | 269 | if (EQ (bus, QCsession) && session_bus_address == NULL) \ |
| 270 | XD_SIGNAL2 (build_string ("No connection to bus"), bus); \ | 270 | XD_SIGNAL2 (build_string ("No connection to bus"), bus); \ |
| 271 | } \ | 271 | } \ |
| 272 | } while (0) | 272 | } while (0) |
| @@ -395,7 +395,7 @@ xd_signature (char *signature, int dtype, int parent_type, Lisp_Object object) | |||
| 395 | CHECK_CONS (object); | 395 | CHECK_CONS (object); |
| 396 | 396 | ||
| 397 | /* Type symbol is optional. */ | 397 | /* Type symbol is optional. */ |
| 398 | if (EQ (QCdbus_type_array, CAR_SAFE (elt))) | 398 | if (EQ (QCarray, CAR_SAFE (elt))) |
| 399 | elt = XD_NEXT_VALUE (elt); | 399 | elt = XD_NEXT_VALUE (elt); |
| 400 | 400 | ||
| 401 | /* If the array is empty, DBUS_TYPE_STRING is the default | 401 | /* If the array is empty, DBUS_TYPE_STRING is the default |
| @@ -1009,8 +1009,7 @@ xd_add_watch (DBusWatch *watch, void *data) | |||
| 1009 | } | 1009 | } |
| 1010 | 1010 | ||
| 1011 | /* Stop monitoring WATCH for possible I/O. | 1011 | /* Stop monitoring WATCH for possible I/O. |
| 1012 | DATA is the used bus, either a string or QCdbus_system_bus or | 1012 | DATA is the used bus, either a string or QCsystem or QCsession. */ |
| 1013 | QCdbus_session_bus. */ | ||
| 1014 | static void | 1013 | static void |
| 1015 | xd_remove_watch (DBusWatch *watch, void *data) | 1014 | xd_remove_watch (DBusWatch *watch, void *data) |
| 1016 | { | 1015 | { |
| @@ -1025,7 +1024,7 @@ xd_remove_watch (DBusWatch *watch, void *data) | |||
| 1025 | /* Unset session environment. */ | 1024 | /* Unset session environment. */ |
| 1026 | #if 0 | 1025 | #if 0 |
| 1027 | /* This is buggy, since unsetenv is not thread-safe. */ | 1026 | /* This is buggy, since unsetenv is not thread-safe. */ |
| 1028 | if (XSYMBOL (QCdbus_session_bus) == data) | 1027 | if (XSYMBOL (QCsession) == data) |
| 1029 | { | 1028 | { |
| 1030 | XD_DEBUG_MESSAGE ("unsetenv DBUS_SESSION_BUS_ADDRESS"); | 1029 | XD_DEBUG_MESSAGE ("unsetenv DBUS_SESSION_BUS_ADDRESS"); |
| 1031 | unsetenv ("DBUS_SESSION_BUS_ADDRESS"); | 1030 | unsetenv ("DBUS_SESSION_BUS_ADDRESS"); |
| @@ -1147,14 +1146,14 @@ this connection to those buses. */) | |||
| 1147 | connection = dbus_connection_open_private (SSDATA (bus), &derror); | 1146 | connection = dbus_connection_open_private (SSDATA (bus), &derror); |
| 1148 | 1147 | ||
| 1149 | else | 1148 | else |
| 1150 | if (NILP (private)) | 1149 | { |
| 1151 | connection = dbus_bus_get (EQ (bus, QCdbus_system_bus) | 1150 | DBusBusType bustype = (EQ (bus, QCsystem) |
| 1152 | ? DBUS_BUS_SYSTEM : DBUS_BUS_SESSION, | 1151 | ? DBUS_BUS_SYSTEM : DBUS_BUS_SESSION); |
| 1153 | &derror); | 1152 | if (NILP (private)) |
| 1154 | else | 1153 | connection = dbus_bus_get (bustype, &derror); |
| 1155 | connection = dbus_bus_get_private (EQ (bus, QCdbus_system_bus) | 1154 | else |
| 1156 | ? DBUS_BUS_SYSTEM : DBUS_BUS_SESSION, | 1155 | connection = dbus_bus_get_private (bustype, &derror); |
| 1157 | &derror); | 1156 | } |
| 1158 | 1157 | ||
| 1159 | if (dbus_error_is_set (&derror)) | 1158 | if (dbus_error_is_set (&derror)) |
| 1160 | XD_ERROR (derror); | 1159 | XD_ERROR (derror); |
| @@ -1405,7 +1404,7 @@ usage: (dbus-message-internal &rest REST) */) | |||
| 1405 | } | 1404 | } |
| 1406 | 1405 | ||
| 1407 | /* Check for timeout parameter. */ | 1406 | /* Check for timeout parameter. */ |
| 1408 | if ((count+2 <= nargs) && (EQ ((args[count]), QCdbus_timeout))) | 1407 | if ((count + 2 <= nargs) && EQ (args[count], QCtimeout)) |
| 1409 | { | 1408 | { |
| 1410 | CHECK_NATNUM (args[count+1]); | 1409 | CHECK_NATNUM (args[count+1]); |
| 1411 | timeout = min (XFASTINT (args[count+1]), INT_MAX); | 1410 | timeout = min (XFASTINT (args[count+1]), INT_MAX); |
| @@ -1452,8 +1451,7 @@ usage: (dbus-message-internal &rest REST) */) | |||
| 1452 | 1451 | ||
| 1453 | /* The result is the key in Vdbus_registered_objects_table. */ | 1452 | /* The result is the key in Vdbus_registered_objects_table. */ |
| 1454 | serial = dbus_message_get_serial (dmessage); | 1453 | serial = dbus_message_get_serial (dmessage); |
| 1455 | result = list3 (QCdbus_registered_serial, | 1454 | result = list3 (QCserial, bus, make_fixnum_or_float (serial)); |
| 1456 | bus, make_fixnum_or_float (serial)); | ||
| 1457 | 1455 | ||
| 1458 | /* Create a hash table entry. */ | 1456 | /* Create a hash table entry. */ |
| 1459 | Fputhash (result, handler, Vdbus_registered_objects_table); | 1457 | Fputhash (result, handler, Vdbus_registered_objects_table); |
| @@ -1540,8 +1538,7 @@ xd_read_message_1 (DBusConnection *connection, Lisp_Object bus) | |||
| 1540 | || (mtype == DBUS_MESSAGE_TYPE_ERROR)) | 1538 | || (mtype == DBUS_MESSAGE_TYPE_ERROR)) |
| 1541 | { | 1539 | { |
| 1542 | /* Search for a registered function of the message. */ | 1540 | /* Search for a registered function of the message. */ |
| 1543 | key = list3 (QCdbus_registered_serial, bus, | 1541 | key = list3 (QCserial, bus, make_fixnum_or_float (serial)); |
| 1544 | make_fixnum_or_float (serial)); | ||
| 1545 | value = Fgethash (key, Vdbus_registered_objects_table, Qnil); | 1542 | value = Fgethash (key, Vdbus_registered_objects_table, Qnil); |
| 1546 | 1543 | ||
| 1547 | /* There shall be exactly one entry. Construct an event. */ | 1544 | /* There shall be exactly one entry. Construct an event. */ |
| @@ -1566,9 +1563,7 @@ xd_read_message_1 (DBusConnection *connection, Lisp_Object bus) | |||
| 1566 | goto cleanup; | 1563 | goto cleanup; |
| 1567 | 1564 | ||
| 1568 | /* Search for a registered function of the message. */ | 1565 | /* Search for a registered function of the message. */ |
| 1569 | key = list4 ((mtype == DBUS_MESSAGE_TYPE_METHOD_CALL) | 1566 | key = list4 (mtype == DBUS_MESSAGE_TYPE_METHOD_CALL ? QCmethod : QCsignal, |
| 1570 | ? QCdbus_registered_method | ||
| 1571 | : QCdbus_registered_signal, | ||
| 1572 | bus, build_string (interface), build_string (member)); | 1567 | bus, build_string (interface), build_string (member)); |
| 1573 | value = Fgethash (key, Vdbus_registered_objects_table, Qnil); | 1568 | value = Fgethash (key, Vdbus_registered_objects_table, Qnil); |
| 1574 | 1569 | ||
| @@ -1697,37 +1692,37 @@ syms_of_dbusbind (void) | |||
| 1697 | build_pure_c_string ("D-Bus error")); | 1692 | build_pure_c_string ("D-Bus error")); |
| 1698 | 1693 | ||
| 1699 | /* Lisp symbols of the system and session buses. */ | 1694 | /* Lisp symbols of the system and session buses. */ |
| 1700 | DEFSYM (QCdbus_system_bus, ":system"); | 1695 | DEFSYM (QCsystem, ":system"); |
| 1701 | DEFSYM (QCdbus_session_bus, ":session"); | 1696 | DEFSYM (QCsession, ":session"); |
| 1702 | 1697 | ||
| 1703 | /* Lisp symbol for method call timeout. */ | 1698 | /* Lisp symbol for method call timeout. */ |
| 1704 | DEFSYM (QCdbus_timeout, ":timeout"); | 1699 | DEFSYM (QCtimeout, ":timeout"); |
| 1705 | 1700 | ||
| 1706 | /* Lisp symbols of D-Bus types. */ | 1701 | /* Lisp symbols of D-Bus types. */ |
| 1707 | DEFSYM (QCdbus_type_byte, ":byte"); | 1702 | DEFSYM (QCbyte, ":byte"); |
| 1708 | DEFSYM (QCdbus_type_boolean, ":boolean"); | 1703 | DEFSYM (QCboolean, ":boolean"); |
| 1709 | DEFSYM (QCdbus_type_int16, ":int16"); | 1704 | DEFSYM (QCint16, ":int16"); |
| 1710 | DEFSYM (QCdbus_type_uint16, ":uint16"); | 1705 | DEFSYM (QCuint16, ":uint16"); |
| 1711 | DEFSYM (QCdbus_type_int32, ":int32"); | 1706 | DEFSYM (QCint32, ":int32"); |
| 1712 | DEFSYM (QCdbus_type_uint32, ":uint32"); | 1707 | DEFSYM (QCuint32, ":uint32"); |
| 1713 | DEFSYM (QCdbus_type_int64, ":int64"); | 1708 | DEFSYM (QCint64, ":int64"); |
| 1714 | DEFSYM (QCdbus_type_uint64, ":uint64"); | 1709 | DEFSYM (QCuint64, ":uint64"); |
| 1715 | DEFSYM (QCdbus_type_double, ":double"); | 1710 | DEFSYM (QCdouble, ":double"); |
| 1716 | DEFSYM (QCdbus_type_string, ":string"); | 1711 | DEFSYM (QCstring, ":string"); |
| 1717 | DEFSYM (QCdbus_type_object_path, ":object-path"); | 1712 | DEFSYM (QCobject_path, ":object-path"); |
| 1718 | DEFSYM (QCdbus_type_signature, ":signature"); | 1713 | DEFSYM (QCsignature, ":signature"); |
| 1719 | #ifdef DBUS_TYPE_UNIX_FD | 1714 | #ifdef DBUS_TYPE_UNIX_FD |
| 1720 | DEFSYM (QCdbus_type_unix_fd, ":unix-fd"); | 1715 | DEFSYM (QCunix_fd, ":unix-fd"); |
| 1721 | #endif | 1716 | #endif |
| 1722 | DEFSYM (QCdbus_type_array, ":array"); | 1717 | DEFSYM (QCarray, ":array"); |
| 1723 | DEFSYM (QCdbus_type_variant, ":variant"); | 1718 | DEFSYM (QCvariant, ":variant"); |
| 1724 | DEFSYM (QCdbus_type_struct, ":struct"); | 1719 | DEFSYM (QCstruct, ":struct"); |
| 1725 | DEFSYM (QCdbus_type_dict_entry, ":dict-entry"); | 1720 | DEFSYM (QCdict_entry, ":dict-entry"); |
| 1726 | 1721 | ||
| 1727 | /* Lisp symbols of objects in `dbus-registered-objects-table'. */ | 1722 | /* Lisp symbols of objects in `dbus-registered-objects-table'. */ |
| 1728 | DEFSYM (QCdbus_registered_serial, ":serial"); | 1723 | DEFSYM (QCserial, ":serial"); |
| 1729 | DEFSYM (QCdbus_registered_method, ":method"); | 1724 | DEFSYM (QCmethod, ":method"); |
| 1730 | DEFSYM (QCdbus_registered_signal, ":signal"); | 1725 | DEFSYM (QCsignal, ":signal"); |
| 1731 | 1726 | ||
| 1732 | DEFVAR_LISP ("dbus-compiled-version", | 1727 | DEFVAR_LISP ("dbus-compiled-version", |
| 1733 | Vdbus_compiled_version, | 1728 | Vdbus_compiled_version, |
diff --git a/src/decompress.c b/src/decompress.c index 1213f482f77..6ebf74aaf5e 100644 --- a/src/decompress.c +++ b/src/decompress.c | |||
| @@ -42,7 +42,7 @@ static bool zlib_initialized; | |||
| 42 | static bool | 42 | static bool |
| 43 | init_zlib_functions (void) | 43 | init_zlib_functions (void) |
| 44 | { | 44 | { |
| 45 | HMODULE library = w32_delayed_load (Qzlib_dll); | 45 | HMODULE library = w32_delayed_load (Qzlib); |
| 46 | 46 | ||
| 47 | if (!library) | 47 | if (!library) |
| 48 | return false; | 48 | return false; |
| @@ -91,7 +91,7 @@ DEFUN ("zlib-available-p", Fzlib_available_p, Szlib_available_p, 0, 0, 0, | |||
| 91 | (void) | 91 | (void) |
| 92 | { | 92 | { |
| 93 | #ifdef WINDOWSNT | 93 | #ifdef WINDOWSNT |
| 94 | Lisp_Object found = Fassq (Qzlib_dll, Vlibrary_cache); | 94 | Lisp_Object found = Fassq (Qzlib, Vlibrary_cache); |
| 95 | if (CONSP (found)) | 95 | if (CONSP (found)) |
| 96 | return XCDR (found); | 96 | return XCDR (found); |
| 97 | else | 97 | else |
| @@ -99,7 +99,7 @@ DEFUN ("zlib-available-p", Fzlib_available_p, Szlib_available_p, 0, 0, 0, | |||
| 99 | Lisp_Object status; | 99 | Lisp_Object status; |
| 100 | zlib_initialized = init_zlib_functions (); | 100 | zlib_initialized = init_zlib_functions (); |
| 101 | status = zlib_initialized ? Qt : Qnil; | 101 | status = zlib_initialized ? Qt : Qnil; |
| 102 | Vlibrary_cache = Fcons (Fcons (Qzlib_dll, status), Vlibrary_cache); | 102 | Vlibrary_cache = Fcons (Fcons (Qzlib, status), Vlibrary_cache); |
| 103 | return status; | 103 | return status; |
| 104 | } | 104 | } |
| 105 | #else | 105 | #else |
diff --git a/src/emacs-module.c b/src/emacs-module.c index 3edb943d4ca..f9ede84ed17 100644 --- a/src/emacs-module.c +++ b/src/emacs-module.c | |||
| @@ -405,7 +405,7 @@ module_make_function (emacs_env *env, ptrdiff_t min_arity, ptrdiff_t max_arity, | |||
| 405 | list2 (Qand_rest, Qargs), | 405 | list2 (Qand_rest, Qargs), |
| 406 | doc, | 406 | doc, |
| 407 | list4 (Qapply, | 407 | list4 (Qapply, |
| 408 | list2 (Qfunction, Qinternal_module_call), | 408 | list2 (Qfunction, Qinternal__module_call), |
| 409 | envobj, | 409 | envobj, |
| 410 | Qargs)); | 410 | Qargs)); |
| 411 | 411 | ||
| @@ -1047,7 +1047,7 @@ syms_of_module (void) | |||
| 1047 | 1047 | ||
| 1048 | defsubr (&Smodule_load); | 1048 | defsubr (&Smodule_load); |
| 1049 | 1049 | ||
| 1050 | DEFSYM (Qinternal_module_call, "internal--module-call"); | 1050 | DEFSYM (Qinternal__module_call, "internal--module-call"); |
| 1051 | defsubr (&Sinternal_module_call); | 1051 | defsubr (&Sinternal_module_call); |
| 1052 | } | 1052 | } |
| 1053 | 1053 | ||
diff --git a/src/frame.c b/src/frame.c index a0aff88cd38..88102a36625 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -534,7 +534,7 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit, | |||
| 534 | #endif | 534 | #endif |
| 535 | } | 535 | } |
| 536 | else if (new_cols != old_cols) | 536 | else if (new_cols != old_cols) |
| 537 | call2 (Qwindow_pixel_to_total, frame, Qt); | 537 | call2 (Qwindow__pixel_to_total, frame, Qt); |
| 538 | 538 | ||
| 539 | if (new_windows_height != old_windows_height | 539 | if (new_windows_height != old_windows_height |
| 540 | /* When the top margin has changed we have to recalculate the top | 540 | /* When the top margin has changed we have to recalculate the top |
| @@ -550,7 +550,7 @@ adjust_frame_size (struct frame *f, int new_width, int new_height, int inhibit, | |||
| 550 | FrameRows (FRAME_TTY (f)) = new_lines + FRAME_TOP_MARGIN (f); | 550 | FrameRows (FRAME_TTY (f)) = new_lines + FRAME_TOP_MARGIN (f); |
| 551 | } | 551 | } |
| 552 | else if (new_lines != old_lines) | 552 | else if (new_lines != old_lines) |
| 553 | call2 (Qwindow_pixel_to_total, frame, Qnil); | 553 | call2 (Qwindow__pixel_to_total, frame, Qnil); |
| 554 | 554 | ||
| 555 | frame_size_history_add | 555 | frame_size_history_add |
| 556 | (f, Qadjust_frame_size_3, new_text_width, new_text_height, | 556 | (f, Qadjust_frame_size_3, new_text_width, new_text_height, |
| @@ -3641,7 +3641,7 @@ x_set_font (struct frame *f, Lisp_Object arg, Lisp_Object oldval) | |||
| 3641 | x_new_font (f, font_object, fontset); | 3641 | x_new_font (f, font_object, fontset); |
| 3642 | store_frame_param (f, Qfont, arg); | 3642 | store_frame_param (f, Qfont, arg); |
| 3643 | #ifdef HAVE_X_WINDOWS | 3643 | #ifdef HAVE_X_WINDOWS |
| 3644 | store_frame_param (f, Qfont_param, font_param); | 3644 | store_frame_param (f, Qfont_parameter, font_param); |
| 3645 | #endif | 3645 | #endif |
| 3646 | /* Recalculate toolbar height. */ | 3646 | /* Recalculate toolbar height. */ |
| 3647 | f->n_tool_bar_rows = 0; | 3647 | f->n_tool_bar_rows = 0; |
| @@ -4884,7 +4884,7 @@ syms_of_frame (void) | |||
| 4884 | DEFSYM (Qframep, "framep"); | 4884 | DEFSYM (Qframep, "framep"); |
| 4885 | DEFSYM (Qframe_live_p, "frame-live-p"); | 4885 | DEFSYM (Qframe_live_p, "frame-live-p"); |
| 4886 | DEFSYM (Qframe_windows_min_size, "frame-windows-min-size"); | 4886 | DEFSYM (Qframe_windows_min_size, "frame-windows-min-size"); |
| 4887 | DEFSYM (Qwindow_pixel_to_total, "window--pixel-to-total"); | 4887 | DEFSYM (Qwindow__pixel_to_total, "window--pixel-to-total"); |
| 4888 | DEFSYM (Qexplicit_name, "explicit-name"); | 4888 | DEFSYM (Qexplicit_name, "explicit-name"); |
| 4889 | DEFSYM (Qheight, "height"); | 4889 | DEFSYM (Qheight, "height"); |
| 4890 | DEFSYM (Qicon, "icon"); | 4890 | DEFSYM (Qicon, "icon"); |
diff --git a/src/gnutls.c b/src/gnutls.c index 63785fea07d..57b164a270f 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -184,7 +184,7 @@ init_gnutls_functions (void) | |||
| 184 | HMODULE library; | 184 | HMODULE library; |
| 185 | int max_log_level = 1; | 185 | int max_log_level = 1; |
| 186 | 186 | ||
| 187 | if (!(library = w32_delayed_load (Qgnutls_dll))) | 187 | if (!(library = w32_delayed_load (Qgnutls))) |
| 188 | { | 188 | { |
| 189 | GNUTLS_LOG (1, max_log_level, "GnuTLS library not found"); | 189 | GNUTLS_LOG (1, max_log_level, "GnuTLS library not found"); |
| 190 | return 0; | 190 | return 0; |
| @@ -272,7 +272,7 @@ init_gnutls_functions (void) | |||
| 272 | max_log_level = global_gnutls_log_level; | 272 | max_log_level = global_gnutls_log_level; |
| 273 | 273 | ||
| 274 | { | 274 | { |
| 275 | Lisp_Object name = CAR_SAFE (Fget (Qgnutls_dll, QCloaded_from)); | 275 | Lisp_Object name = CAR_SAFE (Fget (Qgnutls, QCloaded_from)); |
| 276 | GNUTLS_LOG2 (1, max_log_level, "GnuTLS library loaded:", | 276 | GNUTLS_LOG2 (1, max_log_level, "GnuTLS library loaded:", |
| 277 | STRINGP (name) ? (const char *) SDATA (name) : "unknown"); | 277 | STRINGP (name) ? (const char *) SDATA (name) : "unknown"); |
| 278 | } | 278 | } |
| @@ -1199,8 +1199,8 @@ gnutls_verify_boot (Lisp_Object proc, Lisp_Object proplist) | |||
| 1199 | if (NILP (proplist)) | 1199 | if (NILP (proplist)) |
| 1200 | proplist = Fcdr (Fplist_get (p->childp, QCtls_parameters)); | 1200 | proplist = Fcdr (Fplist_get (p->childp, QCtls_parameters)); |
| 1201 | 1201 | ||
| 1202 | verify_error = Fplist_get (proplist, QCgnutls_bootprop_verify_error); | 1202 | verify_error = Fplist_get (proplist, QCverify_error); |
| 1203 | hostname = Fplist_get (proplist, QCgnutls_bootprop_hostname); | 1203 | hostname = Fplist_get (proplist, QChostname); |
| 1204 | 1204 | ||
| 1205 | if (EQ (verify_error, Qt)) | 1205 | if (EQ (verify_error, Qt)) |
| 1206 | verify_error_all = true; | 1206 | verify_error_all = true; |
| @@ -1245,7 +1245,7 @@ gnutls_verify_boot (Lisp_Object proc, Lisp_Object proplist) | |||
| 1245 | if (peer_verification != 0) | 1245 | if (peer_verification != 0) |
| 1246 | { | 1246 | { |
| 1247 | if (verify_error_all | 1247 | if (verify_error_all |
| 1248 | || !NILP (Fmember (QCgnutls_bootprop_trustfiles, verify_error))) | 1248 | || !NILP (Fmember (QCtrustfiles, verify_error))) |
| 1249 | { | 1249 | { |
| 1250 | emacs_gnutls_deinit (proc); | 1250 | emacs_gnutls_deinit (proc); |
| 1251 | boot_error (p, | 1251 | boot_error (p, |
| @@ -1305,7 +1305,7 @@ gnutls_verify_boot (Lisp_Object proc, Lisp_Object proplist) | |||
| 1305 | XPROCESS (proc)->gnutls_extra_peer_verification | 1305 | XPROCESS (proc)->gnutls_extra_peer_verification |
| 1306 | |= CERTIFICATE_NOT_MATCHING; | 1306 | |= CERTIFICATE_NOT_MATCHING; |
| 1307 | if (verify_error_all | 1307 | if (verify_error_all |
| 1308 | || !NILP (Fmember (QCgnutls_bootprop_hostname, verify_error))) | 1308 | || !NILP (Fmember (QChostname, verify_error))) |
| 1309 | { | 1309 | { |
| 1310 | gnutls_x509_crt_deinit (gnutls_verify_cert); | 1310 | gnutls_x509_crt_deinit (gnutls_verify_cert); |
| 1311 | emacs_gnutls_deinit (proc); | 1311 | emacs_gnutls_deinit (proc); |
| @@ -1421,13 +1421,13 @@ one trustfile (usually a CA bundle). */) | |||
| 1421 | return Qnil; | 1421 | return Qnil; |
| 1422 | } | 1422 | } |
| 1423 | 1423 | ||
| 1424 | hostname = Fplist_get (proplist, QCgnutls_bootprop_hostname); | 1424 | hostname = Fplist_get (proplist, QChostname); |
| 1425 | priority_string = Fplist_get (proplist, QCgnutls_bootprop_priority); | 1425 | priority_string = Fplist_get (proplist, QCpriority); |
| 1426 | trustfiles = Fplist_get (proplist, QCgnutls_bootprop_trustfiles); | 1426 | trustfiles = Fplist_get (proplist, QCtrustfiles); |
| 1427 | keylist = Fplist_get (proplist, QCgnutls_bootprop_keylist); | 1427 | keylist = Fplist_get (proplist, QCkeylist); |
| 1428 | crlfiles = Fplist_get (proplist, QCgnutls_bootprop_crlfiles); | 1428 | crlfiles = Fplist_get (proplist, QCcrlfiles); |
| 1429 | loglevel = Fplist_get (proplist, QCgnutls_bootprop_loglevel); | 1429 | loglevel = Fplist_get (proplist, QCloglevel); |
| 1430 | prime_bits = Fplist_get (proplist, QCgnutls_bootprop_min_prime_bits); | 1430 | prime_bits = Fplist_get (proplist, QCmin_prime_bits); |
| 1431 | 1431 | ||
| 1432 | if (!STRINGP (hostname)) | 1432 | if (!STRINGP (hostname)) |
| 1433 | { | 1433 | { |
| @@ -1477,7 +1477,7 @@ one trustfile (usually a CA bundle). */) | |||
| 1477 | check_memory_full (gnutls_certificate_allocate_credentials (&x509_cred)); | 1477 | check_memory_full (gnutls_certificate_allocate_credentials (&x509_cred)); |
| 1478 | XPROCESS (proc)->gnutls_x509_cred = x509_cred; | 1478 | XPROCESS (proc)->gnutls_x509_cred = x509_cred; |
| 1479 | 1479 | ||
| 1480 | verify_flags = Fplist_get (proplist, QCgnutls_bootprop_verify_flags); | 1480 | verify_flags = Fplist_get (proplist, QCverify_flags); |
| 1481 | if (NUMBERP (verify_flags)) | 1481 | if (NUMBERP (verify_flags)) |
| 1482 | { | 1482 | { |
| 1483 | gnutls_verify_flags = XINT (verify_flags); | 1483 | gnutls_verify_flags = XINT (verify_flags); |
| @@ -1653,7 +1653,7 @@ one trustfile (usually a CA bundle). */) | |||
| 1653 | } | 1653 | } |
| 1654 | 1654 | ||
| 1655 | XPROCESS (proc)->gnutls_complete_negotiation_p = | 1655 | XPROCESS (proc)->gnutls_complete_negotiation_p = |
| 1656 | !NILP (Fplist_get (proplist, QCgnutls_complete_negotiation)); | 1656 | !NILP (Fplist_get (proplist, QCcomplete_negotiation)); |
| 1657 | GNUTLS_INITSTAGE (proc) = GNUTLS_STAGE_CRED_SET; | 1657 | GNUTLS_INITSTAGE (proc) = GNUTLS_STAGE_CRED_SET; |
| 1658 | ret = emacs_gnutls_handshake (XPROCESS (proc)); | 1658 | ret = emacs_gnutls_handshake (XPROCESS (proc)); |
| 1659 | if (ret < GNUTLS_E_SUCCESS) | 1659 | if (ret < GNUTLS_E_SUCCESS) |
| @@ -1700,14 +1700,14 @@ DEFUN ("gnutls-available-p", Fgnutls_available_p, Sgnutls_available_p, 0, 0, 0, | |||
| 1700 | { | 1700 | { |
| 1701 | #ifdef HAVE_GNUTLS | 1701 | #ifdef HAVE_GNUTLS |
| 1702 | # ifdef WINDOWSNT | 1702 | # ifdef WINDOWSNT |
| 1703 | Lisp_Object found = Fassq (Qgnutls_dll, Vlibrary_cache); | 1703 | Lisp_Object found = Fassq (Qgnutls, Vlibrary_cache); |
| 1704 | if (CONSP (found)) | 1704 | if (CONSP (found)) |
| 1705 | return XCDR (found); | 1705 | return XCDR (found); |
| 1706 | else | 1706 | else |
| 1707 | { | 1707 | { |
| 1708 | Lisp_Object status; | 1708 | Lisp_Object status; |
| 1709 | status = init_gnutls_functions () ? Qt : Qnil; | 1709 | status = init_gnutls_functions () ? Qt : Qnil; |
| 1710 | Vlibrary_cache = Fcons (Fcons (Qgnutls_dll, status), Vlibrary_cache); | 1710 | Vlibrary_cache = Fcons (Fcons (Qgnutls, status), Vlibrary_cache); |
| 1711 | return status; | 1711 | return status; |
| 1712 | } | 1712 | } |
| 1713 | # else /* !WINDOWSNT */ | 1713 | # else /* !WINDOWSNT */ |
| @@ -1739,16 +1739,16 @@ syms_of_gnutls (void) | |||
| 1739 | DEFSYM (Qgnutls_x509pki, "gnutls-x509pki"); | 1739 | DEFSYM (Qgnutls_x509pki, "gnutls-x509pki"); |
| 1740 | 1740 | ||
| 1741 | /* The following are for the property list of 'gnutls-boot'. */ | 1741 | /* The following are for the property list of 'gnutls-boot'. */ |
| 1742 | DEFSYM (QCgnutls_bootprop_hostname, ":hostname"); | 1742 | DEFSYM (QChostname, ":hostname"); |
| 1743 | DEFSYM (QCgnutls_bootprop_priority, ":priority"); | 1743 | DEFSYM (QCpriority, ":priority"); |
| 1744 | DEFSYM (QCgnutls_bootprop_trustfiles, ":trustfiles"); | 1744 | DEFSYM (QCtrustfiles, ":trustfiles"); |
| 1745 | DEFSYM (QCgnutls_bootprop_keylist, ":keylist"); | 1745 | DEFSYM (QCkeylist, ":keylist"); |
| 1746 | DEFSYM (QCgnutls_bootprop_crlfiles, ":crlfiles"); | 1746 | DEFSYM (QCcrlfiles, ":crlfiles"); |
| 1747 | DEFSYM (QCgnutls_bootprop_min_prime_bits, ":min-prime-bits"); | 1747 | DEFSYM (QCmin_prime_bits, ":min-prime-bits"); |
| 1748 | DEFSYM (QCgnutls_bootprop_loglevel, ":loglevel"); | 1748 | DEFSYM (QCloglevel, ":loglevel"); |
| 1749 | DEFSYM (QCgnutls_complete_negotiation, ":complete-negotiation"); | 1749 | DEFSYM (QCcomplete_negotiation, ":complete-negotiation"); |
| 1750 | DEFSYM (QCgnutls_bootprop_verify_flags, ":verify-flags"); | 1750 | DEFSYM (QCverify_flags, ":verify-flags"); |
| 1751 | DEFSYM (QCgnutls_bootprop_verify_error, ":verify-error"); | 1751 | DEFSYM (QCverify_error, ":verify-error"); |
| 1752 | 1752 | ||
| 1753 | DEFSYM (Qgnutls_e_interrupted, "gnutls-e-interrupted"); | 1753 | DEFSYM (Qgnutls_e_interrupted, "gnutls-e-interrupted"); |
| 1754 | Fput (Qgnutls_e_interrupted, Qgnutls_code, | 1754 | Fput (Qgnutls_e_interrupted, Qgnutls_code, |
diff --git a/src/profiler.c b/src/profiler.c index 31bd77f00e3..844c1f21ca8 100644 --- a/src/profiler.c +++ b/src/profiler.c | |||
| @@ -224,7 +224,7 @@ static EMACS_INT current_sampling_interval; | |||
| 224 | static void | 224 | static void |
| 225 | handle_profiler_signal (int signal) | 225 | handle_profiler_signal (int signal) |
| 226 | { | 226 | { |
| 227 | if (EQ (backtrace_top_function (), Qautomatic_gc)) | 227 | if (EQ (backtrace_top_function (), QAutomatic_GC)) |
| 228 | /* Special case the time-count inside GC because the hash-table | 228 | /* Special case the time-count inside GC because the hash-table |
| 229 | code is not prepared to be used while the GC is running. | 229 | code is not prepared to be used while the GC is running. |
| 230 | More specifically it uses ASIZE at many places where it does | 230 | More specifically it uses ASIZE at many places where it does |
| @@ -418,7 +418,7 @@ Before returning, a new log is allocated for future samples. */) | |||
| 418 | cpu_log = (profiler_cpu_running | 418 | cpu_log = (profiler_cpu_running |
| 419 | ? make_log (profiler_log_size, profiler_max_stack_depth) | 419 | ? make_log (profiler_log_size, profiler_max_stack_depth) |
| 420 | : Qnil); | 420 | : Qnil); |
| 421 | Fputhash (Fmake_vector (make_number (1), Qautomatic_gc), | 421 | Fputhash (Fmake_vector (make_number (1), QAutomatic_GC), |
| 422 | make_number (cpu_gc_count), | 422 | make_number (cpu_gc_count), |
| 423 | result); | 423 | result); |
| 424 | cpu_gc_count = 0; | 424 | cpu_gc_count = 0; |
diff --git a/src/w32fns.c b/src/w32fns.c index a08474fa9c3..111f1fb6562 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -5246,7 +5246,8 @@ x_default_font_parameter (struct frame *f, Lisp_Object parms) | |||
| 5246 | { | 5246 | { |
| 5247 | /* Remember the explicit font parameter, so we can re-apply it after | 5247 | /* Remember the explicit font parameter, so we can re-apply it after |
| 5248 | we've applied the `default' face settings. */ | 5248 | we've applied the `default' face settings. */ |
| 5249 | x_set_frame_parameters (f, Fcons (Fcons (Qfont_param, font_param), Qnil)); | 5249 | x_set_frame_parameters (f, Fcons (Fcons (Qfont_parameter, font_param), |
| 5250 | Qnil)); | ||
| 5250 | } | 5251 | } |
| 5251 | x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); | 5252 | x_default_parameter (f, parms, Qfont, font, "font", "Font", RES_TYPE_STRING); |
| 5252 | } | 5253 | } |
| @@ -9711,7 +9712,7 @@ syms_of_w32fns (void) | |||
| 9711 | DEFSYM (Qctrl, "ctrl"); | 9712 | DEFSYM (Qctrl, "ctrl"); |
| 9712 | DEFSYM (Qcontrol, "control"); | 9713 | DEFSYM (Qcontrol, "control"); |
| 9713 | DEFSYM (Qshift, "shift"); | 9714 | DEFSYM (Qshift, "shift"); |
| 9714 | DEFSYM (Qfont_param, "font-parameter"); | 9715 | DEFSYM (Qfont_parameter, "font-parameter"); |
| 9715 | DEFSYM (Qgeometry, "geometry"); | 9716 | DEFSYM (Qgeometry, "geometry"); |
| 9716 | DEFSYM (Qworkarea, "workarea"); | 9717 | DEFSYM (Qworkarea, "workarea"); |
| 9717 | DEFSYM (Qmm_size, "mm-size"); | 9718 | DEFSYM (Qmm_size, "mm-size"); |
| @@ -9730,10 +9731,10 @@ syms_of_w32fns (void) | |||
| 9730 | #endif | 9731 | #endif |
| 9731 | 9732 | ||
| 9732 | /* Symbols used elsewhere, but only in MS-Windows-specific code. */ | 9733 | /* Symbols used elsewhere, but only in MS-Windows-specific code. */ |
| 9733 | DEFSYM (Qgnutls_dll, "gnutls"); | 9734 | DEFSYM (Qgnutls, "gnutls"); |
| 9734 | DEFSYM (Qlibxml2_dll, "libxml2"); | 9735 | DEFSYM (Qlibxml2, "libxml2"); |
| 9735 | DEFSYM (Qserif, "serif"); | 9736 | DEFSYM (Qserif, "serif"); |
| 9736 | DEFSYM (Qzlib_dll, "zlib"); | 9737 | DEFSYM (Qzlib, "zlib"); |
| 9737 | 9738 | ||
| 9738 | Fput (Qundefined_color, Qerror_conditions, | 9739 | Fput (Qundefined_color, Qerror_conditions, |
| 9739 | listn (CONSTYPE_PURE, 2, Qundefined_color, Qerror)); | 9740 | listn (CONSTYPE_PURE, 2, Qundefined_color, Qerror)); |
diff --git a/src/w32select.c b/src/w32select.c index 138fe853c4d..a29f5f66278 100644 --- a/src/w32select.c +++ b/src/w32select.c | |||
| @@ -256,7 +256,7 @@ render (Lisp_Object oformat) | |||
| 256 | switch (format) | 256 | switch (format) |
| 257 | { | 257 | { |
| 258 | case CF_UNICODETEXT: | 258 | case CF_UNICODETEXT: |
| 259 | htext = convert_to_handle_as_coded (QUNICODE); | 259 | htext = convert_to_handle_as_coded (Qutf_16le_dos); |
| 260 | break; | 260 | break; |
| 261 | case CF_TEXT: | 261 | case CF_TEXT: |
| 262 | case CF_OEMTEXT: | 262 | case CF_OEMTEXT: |
| @@ -1109,7 +1109,7 @@ After the communication, this variable is set to nil. */); | |||
| 1109 | current_text = Qnil; staticpro (¤t_text); | 1109 | current_text = Qnil; staticpro (¤t_text); |
| 1110 | current_coding_system = Qnil; staticpro (¤t_coding_system); | 1110 | current_coding_system = Qnil; staticpro (¤t_coding_system); |
| 1111 | 1111 | ||
| 1112 | DEFSYM (QUNICODE, "utf-16le-dos"); | 1112 | DEFSYM (Qutf_16le_dos, "utf-16le-dos"); |
| 1113 | QANSICP = Qnil; staticpro (&QANSICP); | 1113 | QANSICP = Qnil; staticpro (&QANSICP); |
| 1114 | QOEMCP = Qnil; staticpro (&QOEMCP); | 1114 | QOEMCP = Qnil; staticpro (&QOEMCP); |
| 1115 | } | 1115 | } |
| @@ -1132,7 +1132,7 @@ globals_of_w32select (void) | |||
| 1132 | QOEMCP = coding_from_cp (OEMCP); | 1132 | QOEMCP = coding_from_cp (OEMCP); |
| 1133 | 1133 | ||
| 1134 | if (os_subtype == OS_NT) | 1134 | if (os_subtype == OS_NT) |
| 1135 | Vselection_coding_system = QUNICODE; | 1135 | Vselection_coding_system = Qutf_16le_dos; |
| 1136 | else if (inhibit_window_system) | 1136 | else if (inhibit_window_system) |
| 1137 | Vselection_coding_system = QOEMCP; | 1137 | Vselection_coding_system = QOEMCP; |
| 1138 | else | 1138 | else |
diff --git a/src/window.c b/src/window.c index 8c76c1f9975..cf7fa44ae41 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -2859,9 +2859,12 @@ selected frame and no others. */) | |||
| 2859 | 2859 | ||
| 2860 | 2860 | ||
| 2861 | static Lisp_Object | 2861 | static Lisp_Object |
| 2862 | resize_root_window (Lisp_Object window, Lisp_Object delta, Lisp_Object horizontal, Lisp_Object ignore, Lisp_Object pixelwise) | 2862 | resize_root_window (Lisp_Object window, Lisp_Object delta, |
| 2863 | Lisp_Object horizontal, Lisp_Object ignore, | ||
| 2864 | Lisp_Object pixelwise) | ||
| 2863 | { | 2865 | { |
| 2864 | return call5 (Qwindow_resize_root_window, window, delta, horizontal, ignore, pixelwise); | 2866 | return call5 (Qwindow__resize_root_window, window, delta, |
| 2867 | horizontal, ignore, pixelwise); | ||
| 2865 | } | 2868 | } |
| 2866 | 2869 | ||
| 2867 | /* Placeholder used by temacs -nw before window.el is loaded. */ | 2870 | /* Placeholder used by temacs -nw before window.el is loaded. */ |
| @@ -2877,14 +2880,14 @@ DEFUN ("window--sanitize-window-sizes", Fwindow__sanitize_window_sizes, | |||
| 2877 | Lisp_Object | 2880 | Lisp_Object |
| 2878 | sanitize_window_sizes (Lisp_Object frame, Lisp_Object horizontal) | 2881 | sanitize_window_sizes (Lisp_Object frame, Lisp_Object horizontal) |
| 2879 | { | 2882 | { |
| 2880 | return call2 (Qwindow_sanitize_window_sizes, frame, horizontal); | 2883 | return call2 (Qwindow__sanitize_window_sizes, frame, horizontal); |
| 2881 | } | 2884 | } |
| 2882 | 2885 | ||
| 2883 | 2886 | ||
| 2884 | static Lisp_Object | 2887 | static Lisp_Object |
| 2885 | window_pixel_to_total (Lisp_Object frame, Lisp_Object horizontal) | 2888 | window_pixel_to_total (Lisp_Object frame, Lisp_Object horizontal) |
| 2886 | { | 2889 | { |
| 2887 | return call2 (Qwindow_pixel_to_total, frame, horizontal); | 2890 | return call2 (Qwindow__pixel_to_total, frame, horizontal); |
| 2888 | } | 2891 | } |
| 2889 | 2892 | ||
| 2890 | 2893 | ||
| @@ -4585,7 +4588,7 @@ grow_mini_window (struct window *w, int delta, bool pixelwise) | |||
| 4585 | { | 4588 | { |
| 4586 | root = FRAME_ROOT_WINDOW (f); | 4589 | root = FRAME_ROOT_WINDOW (f); |
| 4587 | r = XWINDOW (root); | 4590 | r = XWINDOW (root); |
| 4588 | height = call3 (Qwindow_resize_root_window_vertically, | 4591 | height = call3 (Qwindow__resize_root_window_vertically, |
| 4589 | root, make_number (- delta), pixelwise ? Qt : Qnil); | 4592 | root, make_number (- delta), pixelwise ? Qt : Qnil); |
| 4590 | if (INTEGERP (height) && window_resize_check (r, false)) | 4593 | if (INTEGERP (height) && window_resize_check (r, false)) |
| 4591 | { | 4594 | { |
| @@ -4642,7 +4645,7 @@ shrink_mini_window (struct window *w, bool pixelwise) | |||
| 4642 | { | 4645 | { |
| 4643 | root = FRAME_ROOT_WINDOW (f); | 4646 | root = FRAME_ROOT_WINDOW (f); |
| 4644 | r = XWINDOW (root); | 4647 | r = XWINDOW (root); |
| 4645 | delta = call3 (Qwindow_resize_root_window_vertically, | 4648 | delta = call3 (Qwindow__resize_root_window_vertically, |
| 4646 | root, make_number (height - unit), | 4649 | root, make_number (height - unit), |
| 4647 | pixelwise ? Qt : Qnil); | 4650 | pixelwise ? Qt : Qnil); |
| 4648 | if (INTEGERP (delta) && window_resize_check (r, false)) | 4651 | if (INTEGERP (delta) && window_resize_check (r, false)) |
| @@ -7309,10 +7312,11 @@ syms_of_window (void) | |||
| 7309 | DEFSYM (Qwindow_valid_p, "window-valid-p"); | 7312 | DEFSYM (Qwindow_valid_p, "window-valid-p"); |
| 7310 | DEFSYM (Qwindow_deletable_p, "window-deletable-p"); | 7313 | DEFSYM (Qwindow_deletable_p, "window-deletable-p"); |
| 7311 | DEFSYM (Qdelete_window, "delete-window"); | 7314 | DEFSYM (Qdelete_window, "delete-window"); |
| 7312 | DEFSYM (Qwindow_resize_root_window, "window--resize-root-window"); | 7315 | DEFSYM (Qwindow__resize_root_window, "window--resize-root-window"); |
| 7313 | DEFSYM (Qwindow_resize_root_window_vertically, "window--resize-root-window-vertically"); | 7316 | DEFSYM (Qwindow__resize_root_window_vertically, |
| 7314 | DEFSYM (Qwindow_sanitize_window_sizes, "window--sanitize-window-sizes"); | 7317 | "window--resize-root-window-vertically"); |
| 7315 | DEFSYM (Qwindow_pixel_to_total, "window--pixel-to-total"); | 7318 | DEFSYM (Qwindow__sanitize_window_sizes, "window--sanitize-window-sizes"); |
| 7319 | DEFSYM (Qwindow__pixel_to_total, "window--pixel-to-total"); | ||
| 7316 | DEFSYM (Qsafe, "safe"); | 7320 | DEFSYM (Qsafe, "safe"); |
| 7317 | DEFSYM (Qdisplay_buffer, "display-buffer"); | 7321 | DEFSYM (Qdisplay_buffer, "display-buffer"); |
| 7318 | DEFSYM (Qreplace_buffer_in_windows, "replace-buffer-in-windows"); | 7322 | DEFSYM (Qreplace_buffer_in_windows, "replace-buffer-in-windows"); |
diff --git a/src/xdisp.c b/src/xdisp.c index 254b97beb87..bdc8af8b5bf 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -13508,7 +13508,7 @@ redisplay_internal (void) | |||
| 13508 | specbind (Qinhibit_free_realized_faces, Qnil); | 13508 | specbind (Qinhibit_free_realized_faces, Qnil); |
| 13509 | 13509 | ||
| 13510 | /* Record this function, so it appears on the profiler's backtraces. */ | 13510 | /* Record this function, so it appears on the profiler's backtraces. */ |
| 13511 | record_in_backtrace (Qredisplay_internal, 0, 0); | 13511 | record_in_backtrace (Qredisplay_internal_xC_functionx, 0, 0); |
| 13512 | 13512 | ||
| 13513 | FOR_EACH_FRAME (tail, frame) | 13513 | FOR_EACH_FRAME (tail, frame) |
| 13514 | XFRAME (frame)->already_hscrolled_p = false; | 13514 | XFRAME (frame)->already_hscrolled_p = false; |
| @@ -31117,7 +31117,7 @@ syms_of_xdisp (void) | |||
| 31117 | /* Non-nil means don't actually do any redisplay. */ | 31117 | /* Non-nil means don't actually do any redisplay. */ |
| 31118 | DEFSYM (Qinhibit_redisplay, "inhibit-redisplay"); | 31118 | DEFSYM (Qinhibit_redisplay, "inhibit-redisplay"); |
| 31119 | 31119 | ||
| 31120 | DEFSYM (Qredisplay_internal, "redisplay_internal (C function)"); | 31120 | DEFSYM (Qredisplay_internal_xC_functionx, "redisplay_internal (C function)"); |
| 31121 | 31121 | ||
| 31122 | DEFVAR_BOOL("inhibit-message", inhibit_message, | 31122 | DEFVAR_BOOL("inhibit-message", inhibit_message, |
| 31123 | doc: /* Non-nil means calls to `message' are not displayed. | 31123 | doc: /* Non-nil means calls to `message' are not displayed. |
diff --git a/src/xfns.c b/src/xfns.c index f7779e52590..9ff77738c11 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3128,7 +3128,7 @@ x_default_font_parameter (struct frame *f, Lisp_Object parms) | |||
| 3128 | { | 3128 | { |
| 3129 | /* Remember the explicit font parameter, so we can re-apply it after | 3129 | /* Remember the explicit font parameter, so we can re-apply it after |
| 3130 | we've applied the `default' face settings. */ | 3130 | we've applied the `default' face settings. */ |
| 3131 | AUTO_FRAME_ARG (arg, Qfont_param, font_param); | 3131 | AUTO_FRAME_ARG (arg, Qfont_parameter, font_param); |
| 3132 | x_set_frame_parameters (f, arg); | 3132 | x_set_frame_parameters (f, arg); |
| 3133 | } | 3133 | } |
| 3134 | 3134 | ||
| @@ -6463,7 +6463,7 @@ nil, it defaults to the selected frame. */) | |||
| 6463 | default_name = xlispstrdup (font_param); | 6463 | default_name = xlispstrdup (font_param); |
| 6464 | else | 6464 | else |
| 6465 | { | 6465 | { |
| 6466 | font_param = Fframe_parameter (frame, Qfont_param); | 6466 | font_param = Fframe_parameter (frame, Qfont_parameter); |
| 6467 | if (STRINGP (font_param)) | 6467 | if (STRINGP (font_param)) |
| 6468 | default_name = xlispstrdup (font_param); | 6468 | default_name = xlispstrdup (font_param); |
| 6469 | } | 6469 | } |
| @@ -6795,7 +6795,7 @@ syms_of_xfns (void) | |||
| 6795 | DEFSYM (Qundefined_color, "undefined-color"); | 6795 | DEFSYM (Qundefined_color, "undefined-color"); |
| 6796 | DEFSYM (Qcompound_text, "compound-text"); | 6796 | DEFSYM (Qcompound_text, "compound-text"); |
| 6797 | DEFSYM (Qcancel_timer, "cancel-timer"); | 6797 | DEFSYM (Qcancel_timer, "cancel-timer"); |
| 6798 | DEFSYM (Qfont_param, "font-parameter"); | 6798 | DEFSYM (Qfont_parameter, "font-parameter"); |
| 6799 | DEFSYM (Qmono, "mono"); | 6799 | DEFSYM (Qmono, "mono"); |
| 6800 | DEFSYM (Qassq_delete_all, "assq-delete-all"); | 6800 | DEFSYM (Qassq_delete_all, "assq-delete-all"); |
| 6801 | 6801 | ||
| @@ -45,7 +45,7 @@ DEF_DLL_FN (void, xmlCheckVersion, (int)); | |||
| 45 | static bool | 45 | static bool |
| 46 | libxml2_loaded_p (void) | 46 | libxml2_loaded_p (void) |
| 47 | { | 47 | { |
| 48 | Lisp_Object found = Fassq (Qlibxml2_dll, Vlibrary_cache); | 48 | Lisp_Object found = Fassq (Qlibxml2, Vlibrary_cache); |
| 49 | 49 | ||
| 50 | return CONSP (found) && EQ (XCDR (found), Qt); | 50 | return CONSP (found) && EQ (XCDR (found), Qt); |
| 51 | } | 51 | } |
| @@ -96,7 +96,7 @@ init_libxml2_functions (void) | |||
| 96 | { | 96 | { |
| 97 | HMODULE library; | 97 | HMODULE library; |
| 98 | 98 | ||
| 99 | if (!(library = w32_delayed_load (Qlibxml2_dll))) | 99 | if (!(library = w32_delayed_load (Qlibxml2))) |
| 100 | { | 100 | { |
| 101 | message1 ("libxml2 library not found"); | 101 | message1 ("libxml2 library not found"); |
| 102 | return false; | 102 | return false; |
| @@ -105,12 +105,12 @@ init_libxml2_functions (void) | |||
| 105 | if (! load_dll_functions (library)) | 105 | if (! load_dll_functions (library)) |
| 106 | goto bad_library; | 106 | goto bad_library; |
| 107 | 107 | ||
| 108 | Vlibrary_cache = Fcons (Fcons (Qlibxml2_dll, Qt), Vlibrary_cache); | 108 | Vlibrary_cache = Fcons (Fcons (Qlibxml2, Qt), Vlibrary_cache); |
| 109 | return true; | 109 | return true; |
| 110 | } | 110 | } |
| 111 | 111 | ||
| 112 | bad_library: | 112 | bad_library: |
| 113 | Vlibrary_cache = Fcons (Fcons (Qlibxml2_dll, Qnil), Vlibrary_cache); | 113 | Vlibrary_cache = Fcons (Fcons (Qlibxml2, Qnil), Vlibrary_cache); |
| 114 | 114 | ||
| 115 | return false; | 115 | return false; |
| 116 | #else /* !WINDOWSNT */ | 116 | #else /* !WINDOWSNT */ |
diff --git a/src/xselect.c b/src/xselect.c index 123e46374a2..8de436f119d 100644 --- a/src/xselect.c +++ b/src/xselect.c | |||
| @@ -215,7 +215,7 @@ symbol_to_x_atom (struct x_display_info *dpyinfo, Lisp_Object sym) | |||
| 215 | if (EQ (sym, QDELETE)) return dpyinfo->Xatom_DELETE; | 215 | if (EQ (sym, QDELETE)) return dpyinfo->Xatom_DELETE; |
| 216 | if (EQ (sym, QMULTIPLE)) return dpyinfo->Xatom_MULTIPLE; | 216 | if (EQ (sym, QMULTIPLE)) return dpyinfo->Xatom_MULTIPLE; |
| 217 | if (EQ (sym, QINCR)) return dpyinfo->Xatom_INCR; | 217 | if (EQ (sym, QINCR)) return dpyinfo->Xatom_INCR; |
| 218 | if (EQ (sym, QEMACS_TMP)) return dpyinfo->Xatom_EMACS_TMP; | 218 | if (EQ (sym, Q_EMACS_TMP_)) return dpyinfo->Xatom_EMACS_TMP; |
| 219 | if (EQ (sym, QTARGETS)) return dpyinfo->Xatom_TARGETS; | 219 | if (EQ (sym, QTARGETS)) return dpyinfo->Xatom_TARGETS; |
| 220 | if (EQ (sym, QNULL)) return dpyinfo->Xatom_NULL; | 220 | if (EQ (sym, QNULL)) return dpyinfo->Xatom_NULL; |
| 221 | if (!SYMBOLP (sym)) emacs_abort (); | 221 | if (!SYMBOLP (sym)) emacs_abort (); |
| @@ -273,7 +273,7 @@ x_atom_to_symbol (struct x_display_info *dpyinfo, Atom atom) | |||
| 273 | if (atom == dpyinfo->Xatom_INCR) | 273 | if (atom == dpyinfo->Xatom_INCR) |
| 274 | return QINCR; | 274 | return QINCR; |
| 275 | if (atom == dpyinfo->Xatom_EMACS_TMP) | 275 | if (atom == dpyinfo->Xatom_EMACS_TMP) |
| 276 | return QEMACS_TMP; | 276 | return Q_EMACS_TMP_; |
| 277 | if (atom == dpyinfo->Xatom_TARGETS) | 277 | if (atom == dpyinfo->Xatom_TARGETS) |
| 278 | return QTARGETS; | 278 | return QTARGETS; |
| 279 | if (atom == dpyinfo->Xatom_NULL) | 279 | if (atom == dpyinfo->Xatom_NULL) |
| @@ -2679,7 +2679,7 @@ A value of 0 means wait as long as necessary. This is initialized from the | |||
| 2679 | DEFSYM (QDELETE, "DELETE"); | 2679 | DEFSYM (QDELETE, "DELETE"); |
| 2680 | DEFSYM (QMULTIPLE, "MULTIPLE"); | 2680 | DEFSYM (QMULTIPLE, "MULTIPLE"); |
| 2681 | DEFSYM (QINCR, "INCR"); | 2681 | DEFSYM (QINCR, "INCR"); |
| 2682 | DEFSYM (QEMACS_TMP, "_EMACS_TMP_"); | 2682 | DEFSYM (Q_EMACS_TMP_, "_EMACS_TMP_"); |
| 2683 | DEFSYM (QTARGETS, "TARGETS"); | 2683 | DEFSYM (QTARGETS, "TARGETS"); |
| 2684 | DEFSYM (QATOM, "ATOM"); | 2684 | DEFSYM (QATOM, "ATOM"); |
| 2685 | DEFSYM (QCLIPBOARD_MANAGER, "CLIPBOARD_MANAGER"); | 2685 | DEFSYM (QCLIPBOARD_MANAGER, "CLIPBOARD_MANAGER"); |