aboutsummaryrefslogtreecommitdiffstats
path: root/src/intervals.c
diff options
context:
space:
mode:
authorJoakim Verona2011-02-05 11:23:09 +0100
committerJoakim Verona2011-02-05 11:23:09 +0100
commit4bd51ad5c3445b644dfb017d5b57b10a90aa325f (patch)
tree894801e7308ce4ecc34933f959e28f4b9cff9533 /src/intervals.c
parent13cfe8df462ab8da9f0028e16cc84dcaceaca3d1 (diff)
parent9bcaafce5351d270ac514e23cb69ff1a5fd35229 (diff)
downloademacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.tar.gz
emacs-4bd51ad5c3445b644dfb017d5b57b10a90aa325f.zip
merge from upstream. currently seems to have bitroted and i get segfaults
Diffstat (limited to 'src/intervals.c')
-rw-r--r--src/intervals.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/intervals.c b/src/intervals.c
index 5e08e13d23b..ad46c17d588 100644
--- a/src/intervals.c
+++ b/src/intervals.c
@@ -1,6 +1,5 @@
1/* Code for doing intervals. 1/* Code for doing intervals.
2 Copyright (C) 1993, 1994, 1995, 1997, 1998, 2001, 2002, 2003, 2004, 2 Copyright (C) 1993-1995, 1997-1998, 2001-2011 Free Software Foundation, Inc.
3 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
4 3
5This file is part of GNU Emacs. 4This file is part of GNU Emacs.
6 5
@@ -1875,15 +1874,6 @@ lookup_char_property (Lisp_Object plist, register Lisp_Object prop, int textprop
1875} 1874}
1876 1875
1877 1876
1878/* Set point "temporarily", without checking any text properties. */
1879
1880INLINE void
1881temp_set_point (struct buffer *buffer, EMACS_INT charpos)
1882{
1883 temp_set_point_both (buffer, charpos,
1884 buf_charpos_to_bytepos (buffer, charpos));
1885}
1886
1887/* Set point in BUFFER "temporarily" to CHARPOS, which corresponds to 1877/* Set point in BUFFER "temporarily" to CHARPOS, which corresponds to
1888 byte position BYTEPOS. */ 1878 byte position BYTEPOS. */
1889 1879
@@ -1906,6 +1896,15 @@ temp_set_point_both (struct buffer *buffer,
1906 BUF_PT (buffer) = charpos; 1896 BUF_PT (buffer) = charpos;
1907} 1897}
1908 1898
1899/* Set point "temporarily", without checking any text properties. */
1900
1901INLINE void
1902temp_set_point (struct buffer *buffer, EMACS_INT charpos)
1903{
1904 temp_set_point_both (buffer, charpos,
1905 buf_charpos_to_bytepos (buffer, charpos));
1906}
1907
1909/* Set point in BUFFER to CHARPOS. If the target position is 1908/* Set point in BUFFER to CHARPOS. If the target position is
1910 before an intangible character, move to an ok place. */ 1909 before an intangible character, move to an ok place. */
1911 1910
@@ -2565,5 +2564,3 @@ set_intervals_multibyte (int multi_flag)
2565 BEG, BEG_BYTE, Z, Z_BYTE); 2564 BEG, BEG_BYTE, Z, Z_BYTE);
2566} 2565}
2567 2566
2568/* arch-tag: 3d402b60-083c-4271-b4a3-ebd9a74bfe27
2569 (do not change this comment) */