aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley2016-02-15 14:09:12 -0800
committerJohn Wiegley2016-02-15 14:09:12 -0800
commita644fa367504c4587c1b9e5fc20b7af79e6e99a0 (patch)
tree4647c040ba7c430db2d102e39180950ffd90e49f /src
parent8c4e041bdbc07a159305b41e1bcb64f1d301b99f (diff)
parentf5d6b9bb5b307067547f0b26c74e9f538464bfc6 (diff)
downloademacs-a644fa367504c4587c1b9e5fc20b7af79e6e99a0.tar.gz
emacs-a644fa367504c4587c1b9e5fc20b7af79e6e99a0.zip
Merge from origin/emacs-25
f5d6b9b Revert "Support integer image rotation and respect EXIF rotations" afe7d1f Revert "Document EXIF image rotation" c6f377c Document OS X LANG default eb4a18c Set locale when run from OS X GUI 456c0a3 make-docfile cleanup for I/O, etc. 25ec995 Memory-management cleanup in make-docfile 02d925e Kevin Gallagher has new email address 4ef153b Improve doc strings of 'forward/backward-word-strictly' 3ad05a0 Describe Makefile test targets in test/README
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c5
-rw-r--r--src/image.c2
-rw-r--r--src/nsterm.h2
-rw-r--r--src/nsterm.m21
-rw-r--r--src/syntax.c12
5 files changed, 38 insertions, 4 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 540bf736fec..628b9be3131 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1315,6 +1315,11 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem
1315 init_ntproc (dumping); /* must precede init_editfns. */ 1315 init_ntproc (dumping); /* must precede init_editfns. */
1316#endif 1316#endif
1317 1317
1318#ifdef HAVE_NS
1319 /* Initialise the locale from user defaults. */
1320 ns_init_locale();
1321#endif
1322
1318 /* Initialize and GC-protect Vinitial_environment and 1323 /* Initialize and GC-protect Vinitial_environment and
1319 Vprocess_environment before set_initial_environment fills them 1324 Vprocess_environment before set_initial_environment fills them
1320 in. */ 1325 in. */
diff --git a/src/image.c b/src/image.c
index f22394fb7cb..af65fdec7dc 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8672,7 +8672,7 @@ imagemagick_load_image (struct frame *f, struct image *img,
8672 image_spec_value (img->spec, QCbackground, NULL); if (!STRINGP 8672 image_spec_value (img->spec, QCbackground, NULL); if (!STRINGP
8673 (specified_bg). */ 8673 (specified_bg). */
8674 value = image_spec_value (img->spec, QCrotation, NULL); 8674 value = image_spec_value (img->spec, QCrotation, NULL);
8675 if (FLOATP (value) || INTEGERP (value)) 8675 if (FLOATP (value))
8676 { 8676 {
8677 rotation = extract_float (value); 8677 rotation = extract_float (value);
8678 status = MagickRotateImage (image_wand, bg_wand, rotation); 8678 status = MagickRotateImage (image_wand, bg_wand, rotation);
diff --git a/src/nsterm.h b/src/nsterm.h
index 6ca584e6774..fa5399c7f90 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -1141,6 +1141,8 @@ extern void ns_retain_object (void *obj);
1141extern void *ns_alloc_autorelease_pool (void); 1141extern void *ns_alloc_autorelease_pool (void);
1142extern void ns_release_autorelease_pool (void *); 1142extern void ns_release_autorelease_pool (void *);
1143extern const char *ns_get_defaults_value (const char *key); 1143extern const char *ns_get_defaults_value (const char *key);
1144extern void ns_init_locale (void);
1145
1144 1146
1145/* in nsmenu */ 1147/* in nsmenu */
1146extern void update_frame_tool_bar (struct frame *f); 1148extern void update_frame_tool_bar (struct frame *f);
diff --git a/src/nsterm.m b/src/nsterm.m
index f77aadba67c..43d1377f8a7 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -586,6 +586,27 @@ ns_load_path (void)
586 586
587 587
588void 588void
589ns_init_locale (void)
590/* OS X doesn't set any environment variables for the locale when run
591 from the GUI. Get the locale from the OS and set LANG. */
592{
593 NSLocale *locale = [NSLocale currentLocale];
594
595 NSTRACE ("ns_init_locale");
596
597 @try
598 {
599 /* Set LANG to locale, but not if LANG is already set. */
600 setenv("LANG", [[locale localeIdentifier] UTF8String], 0);
601 }
602 @catch (NSException *e)
603 {
604 NSLog (@"Locale detection failed: %@: %@", [e name], [e reason]);
605 }
606}
607
608
609void
589ns_release_object (void *obj) 610ns_release_object (void *obj)
590/* -------------------------------------------------------------------------- 611/* --------------------------------------------------------------------------
591 Release an object (callable from C) 612 Release an object (callable from C)
diff --git a/src/syntax.c b/src/syntax.c
index db5a99d4cdf..249d0d58bc6 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1536,9 +1536,15 @@ DEFUN ("forward-word", Fforward_word, Sforward_word, 0, 1, "^p",
1536 doc: /* Move point forward ARG words (backward if ARG is negative). 1536 doc: /* Move point forward ARG words (backward if ARG is negative).
1537If ARG is omitted or nil, move point forward one word. 1537If ARG is omitted or nil, move point forward one word.
1538Normally returns t. 1538Normally returns t.
1539If an edge of the buffer or a field boundary is reached, point is left there 1539If an edge of the buffer or a field boundary is reached, point is
1540and the function returns nil. Field boundaries are not noticed if 1540left there and the function returns nil. Field boundaries are not
1541`inhibit-field-text-motion' is non-nil. */) 1541noticed if `inhibit-field-text-motion' is non-nil.
1542
1543The word boundaries are normally determined by the buffer's syntax
1544table, but `find-word-boundary-function-table', such as set up
1545by `subword-mode', can change that. If a Lisp program needs to
1546move by words determined strictly by the syntax table, it should
1547use `forward-word-strictly' instead. */)
1542 (Lisp_Object arg) 1548 (Lisp_Object arg)
1543{ 1549{
1544 Lisp_Object tmp; 1550 Lisp_Object tmp;