aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.h
diff options
context:
space:
mode:
authorJan Djärv2011-01-03 22:26:22 +0100
committerJan Djärv2011-01-03 22:26:22 +0100
commit0ad254447b7542284a2eb3c63b0732edb9409af7 (patch)
tree09481b752b098e6f79ba91c715d561e873a25de9 /src/coding.h
parentfb724e553757e9d3344be443ab5f329afc9bf91c (diff)
downloademacs-0ad254447b7542284a2eb3c63b0732edb9409af7.tar.gz
emacs-0ad254447b7542284a2eb3c63b0732edb9409af7.zip
Backport bug 7517 fixes from trunk.
* coding.h (ENCODE_UTF_8): Remove "Used by ..." comment. * nsfns.m (ns_set_name_iconic): Remove. (ns_get_screen): Don't assign integer to f. (ns_set_name_internal): New function. (Vicon_title_format): Extern declare. (ns_set_name): Call ns_set_name_internal. (x_explicitly_set_name): Remove call to ns_set_name_iconic. (x_implicitly_set_name): Ditto. (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal. (ns_set_name_as_filename): Encode name with ENCODE_UTF_8. Always use buffer name for title and buffer filename only for RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
Diffstat (limited to 'src/coding.h')
-rw-r--r--src/coding.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/coding.h b/src/coding.h
index 22944091896..c2884a559d6 100644
--- a/src/coding.h
+++ b/src/coding.h
@@ -686,8 +686,7 @@ struct coding_system
686 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \ 686 ? code_convert_string_norecord (str, Vlocale_coding_system, 0) \
687 : str) 687 : str)
688 688
689/* Used by the gtk menu code. Note that this encodes utf-8, not 689/* Note that this encodes utf-8, not utf-8-emacs, so it's not a no-op. */
690 utf-8-emacs, so it's not a no-op. */
691#define ENCODE_UTF_8(str) code_convert_string_norecord (str, Qutf_8, 1) 690#define ENCODE_UTF_8(str) code_convert_string_norecord (str, Qutf_8, 1)
692 691
693/* Extern declarations. */ 692/* Extern declarations. */