aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2015-01-01 10:47:17 -0800
committerPaul Eggert2015-01-01 10:47:17 -0800
commit6ddd819467d1d9d0e78f13e5a15c1af9125ae67b (patch)
treebb6782a87dc52bed05166ac4ae458998c3418e70 /src
parent935fa6151b3e411c5308d62338744ff25f1a8ddb (diff)
parenta5f90a37622e9d0cb066da413846c1c3f6900b51 (diff)
downloademacs-6ddd819467d1d9d0e78f13e5a15c1af9125ae67b.tar.gz
emacs-6ddd819467d1d9d0e78f13e5a15c1af9125ae67b.zip
Merge from origin/emacs-24
a5f90a3 * .gitattributes: New file. 5a9710f Make sure tool-bar changes are reflected on display. 93796ba * autogen.sh: Port better to non-GNU 'cp'. 9758516 Fix a typo in a comment in the previous commit. aa472a3 Fix the pixel coordinates returned by pos-visible-in-window-p. (Bug#19473) d261229 * automated/tramp-tests.el (tramp--test-smb-or-windows-nt-p): New defun. (tramp-test30-special-characters): Use it. (tramp--test-check-files): Filter nil file names out. 9278f05 Omit trailing white space 1c93fd3 Sync with Tramp 2.2.11. 96ebe18 Sync with Tramp 2.2.11. e792450 Sync with Tramp 2.2.11. 2d17e12 Fix ChangeLog entry. 6444482 Fix auto-revert-tail-mode for remote files b5c9c13 Spelling fixes c5504d1 src/w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458) Conflicts: ChangeLog doc/misc/ChangeLog lisp/ChangeLog src/ChangeLog test/ChangeLog
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/ChangeLog.102
-rw-r--r--src/ChangeLog.124
-rw-r--r--src/w32proc.c7
-rw-r--r--src/xdisp.c23
5 files changed, 37 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 85eb113db82..2cf21c9b4ad 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12015-01-01 Eli Zaretskii <eliz@gnu.org>
2
3 * xdisp.c (pos_visible_p): Fix up the X coordinate for
4 right-to-left screen lines. (Bug#19473)
5
62015-01-01 Eli Zaretskii <eliz@gnu.org>
7
8 * w32proc.c (Fw32_get_codepage_charset): Doc fix. (Bug#19458)
9
12014-12-31 Paul Eggert <eggert@cs.ucla.edu> 102014-12-31 Paul Eggert <eggert@cs.ucla.edu>
2 11
3 Simplify setfattr use by assuming GNU make 12 Simplify setfattr use by assuming GNU make
diff --git a/src/ChangeLog.10 b/src/ChangeLog.10
index b6646e797e3..58a67e863bf 100644
--- a/src/ChangeLog.10
+++ b/src/ChangeLog.10
@@ -2826,7 +2826,7 @@
28262006-07-21 Eli Zaretskii <eliz@gnu.org> 28262006-07-21 Eli Zaretskii <eliz@gnu.org>
2827 2827
2828 * w32.c (convert_time): Use explicit long double constants to 2828 * w32.c (convert_time): Use explicit long double constants to
2829 ensure long double arithmetics is used throughout. 2829 ensure long double arithmetic is used throughout.
2830 2830
28312006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 28312006-07-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2832 2832
diff --git a/src/ChangeLog.12 b/src/ChangeLog.12
index 80d7460c734..60f9ea294be 100644
--- a/src/ChangeLog.12
+++ b/src/ChangeLog.12
@@ -2327,7 +2327,7 @@
2327 2327
23282012-12-08 Fabrice Popineau <fabrice.popineau@gmail.com> 23282012-12-08 Fabrice Popineau <fabrice.popineau@gmail.com>
2329 2329
2330 * w32fns.c (emacs_abort): Don't do arithmetics on void pointers. 2330 * w32fns.c (emacs_abort): Don't do arithmetic on void pointers.
2331 2331
23322012-12-08 Eli Zaretskii <eliz@gnu.org> 23322012-12-08 Eli Zaretskii <eliz@gnu.org>
2333 2333
@@ -4716,7 +4716,7 @@
4716 defining an XRectangle structure. 4716 defining an XRectangle structure.
4717 4717
4718 * w32proc.c (RVA_TO_PTR, w32_executable_type): Fix pointer 4718 * w32proc.c (RVA_TO_PTR, w32_executable_type): Fix pointer
4719 arithmetics for compatibility with x64. 4719 arithmetic for compatibility with x64.
4720 4720
4721 * w32menu.c (add_menu_item): Use UINT_PTR instead of UINT, for 4721 * w32menu.c (add_menu_item): Use UINT_PTR instead of UINT, for
4722 compatibility with x64. 4722 compatibility with x64.
diff --git a/src/w32proc.c b/src/w32proc.c
index c571726d70f..297db0e0185 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -3070,7 +3070,12 @@ If successful, the new CP is returned, otherwise nil. */)
3070DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset, 3070DEFUN ("w32-get-codepage-charset", Fw32_get_codepage_charset,
3071 Sw32_get_codepage_charset, 1, 1, 0, 3071 Sw32_get_codepage_charset, 1, 1, 0,
3072 doc: /* Return charset ID corresponding to codepage CP. 3072 doc: /* Return charset ID corresponding to codepage CP.
3073Returns nil if the codepage is not valid. */) 3073Returns nil if the codepage is not valid or its charset ID could
3074not be determined.
3075
3076Note that this function is only guaranteed to work with ANSI
3077codepages; most console codepages are not supported and will
3078yield nil. */)
3074 (Lisp_Object cp) 3079 (Lisp_Object cp)
3075{ 3080{
3076 CHARSETINFO info; 3081 CHARSETINFO info;
diff --git a/src/xdisp.c b/src/xdisp.c
index e6bbd859fe7..b72577ea079 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1406,6 +1406,7 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y,
1406 struct text_pos top; 1406 struct text_pos top;
1407 int visible_p = 0; 1407 int visible_p = 0;
1408 struct buffer *old_buffer = NULL; 1408 struct buffer *old_buffer = NULL;
1409 bool r2l = false;
1409 1410
1410 if (FRAME_INITIAL_P (XFRAME (WINDOW_FRAME (w)))) 1411 if (FRAME_INITIAL_P (XFRAME (WINDOW_FRAME (w))))
1411 return visible_p; 1412 return visible_p;
@@ -1691,6 +1692,8 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y,
1691 *rowh = max (0, (min (bottom_y, it.last_visible_y) 1692 *rowh = max (0, (min (bottom_y, it.last_visible_y)
1692 - max (top_y, window_top_y))); 1693 - max (top_y, window_top_y)));
1693 *vpos = it.vpos; 1694 *vpos = it.vpos;
1695 if (it.bidi_it.paragraph_dir == R2L)
1696 r2l = true;
1694 } 1697 }
1695 } 1698 }
1696 else 1699 else
@@ -1720,6 +1723,8 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y,
1720 - max (it2.current_y, 1723 - max (it2.current_y,
1721 WINDOW_HEADER_LINE_HEIGHT (w)))); 1724 WINDOW_HEADER_LINE_HEIGHT (w))));
1722 *vpos = it2.vpos; 1725 *vpos = it2.vpos;
1726 if (it2.bidi_it.paragraph_dir == R2L)
1727 r2l = true;
1723 } 1728 }
1724 else 1729 else
1725 bidi_unshelve_cache (it2data, 1); 1730 bidi_unshelve_cache (it2data, 1);
@@ -1729,10 +1734,20 @@ pos_visible_p (struct window *w, ptrdiff_t charpos, int *x, int *y,
1729 if (old_buffer) 1734 if (old_buffer)
1730 set_buffer_internal_1 (old_buffer); 1735 set_buffer_internal_1 (old_buffer);
1731 1736
1732 if (visible_p && w->hscroll > 0) 1737 if (visible_p)
1733 *x -= 1738 {
1734 window_hscroll_limited (w, WINDOW_XFRAME (w)) 1739 if (w->hscroll > 0)
1735 * WINDOW_FRAME_COLUMN_WIDTH (w); 1740 *x -=
1741 window_hscroll_limited (w, WINDOW_XFRAME (w))
1742 * WINDOW_FRAME_COLUMN_WIDTH (w);
1743 /* For lines in an R2L paragraph, we need to mirror the X pixel
1744 coordinate wrt the text area. For the reasons, see the
1745 commentary in buffer_posn_from_coords and the explanation of
1746 the geometry used by the move_it_* functions at the end of
1747 the large commentary near the beginning of this file. */
1748 if (r2l)
1749 *x = window_box_width (w, TEXT_AREA) - *x - 1;
1750 }
1736 1751
1737#if 0 1752#if 0
1738 /* Debugging code. */ 1753 /* Debugging code. */