aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/editfns.c b/src/editfns.c
index a14e043c1bf..c6744648bc5 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -21,7 +21,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
21#include <config.h> 21#include <config.h>
22#include <sys/types.h> 22#include <sys/types.h>
23#include <stdio.h> 23#include <stdio.h>
24#include <setjmp.h>
25 24
26#ifdef HAVE_PWD_H 25#ifdef HAVE_PWD_H
27#include <pwd.h> 26#include <pwd.h>
@@ -2613,7 +2612,7 @@ They default to the values of (point-min) and (point-max) in BUFFER. */)
2613 if (NILP (buf)) 2612 if (NILP (buf))
2614 nsberror (buffer); 2613 nsberror (buffer);
2615 bp = XBUFFER (buf); 2614 bp = XBUFFER (buf);
2616 if (NILP (BVAR (bp, name))) 2615 if (!BUFFER_LIVE_P (bp))
2617 error ("Selecting deleted buffer"); 2616 error ("Selecting deleted buffer");
2618 2617
2619 if (NILP (start)) 2618 if (NILP (start))
@@ -2677,7 +2676,7 @@ determines whether case is significant or ignored. */)
2677 if (NILP (buf1)) 2676 if (NILP (buf1))
2678 nsberror (buffer1); 2677 nsberror (buffer1);
2679 bp1 = XBUFFER (buf1); 2678 bp1 = XBUFFER (buf1);
2680 if (NILP (BVAR (bp1, name))) 2679 if (!BUFFER_LIVE_P (bp1))
2681 error ("Selecting deleted buffer"); 2680 error ("Selecting deleted buffer");
2682 } 2681 }
2683 2682
@@ -2715,7 +2714,7 @@ determines whether case is significant or ignored. */)
2715 if (NILP (buf2)) 2714 if (NILP (buf2))
2716 nsberror (buffer2); 2715 nsberror (buffer2);
2717 bp2 = XBUFFER (buf2); 2716 bp2 = XBUFFER (buf2);
2718 if (NILP (BVAR (bp2, name))) 2717 if (!BUFFER_LIVE_P (bp2))
2719 error ("Selecting deleted buffer"); 2718 error ("Selecting deleted buffer");
2720 } 2719 }
2721 2720
@@ -2783,8 +2782,8 @@ determines whether case is significant or ignored. */)
2783 2782
2784 if (!NILP (trt)) 2783 if (!NILP (trt))
2785 { 2784 {
2786 c1 = CHAR_TABLE_TRANSLATE (trt, c1); 2785 c1 = char_table_translate (trt, c1);
2787 c2 = CHAR_TABLE_TRANSLATE (trt, c2); 2786 c2 = char_table_translate (trt, c2);
2788 } 2787 }
2789 if (c1 < c2) 2788 if (c1 < c2)
2790 return make_number (- 1 - chars); 2789 return make_number (- 1 - chars);
@@ -4263,7 +4262,7 @@ usage: (format STRING &rest OBJECTS) */)
4263 } 4262 }
4264 4263
4265 if (bufsize < p - buf) 4264 if (bufsize < p - buf)
4266 abort (); 4265 emacs_abort ();
4267 4266
4268 if (maybe_combine_byte) 4267 if (maybe_combine_byte)
4269 nchars = multibyte_chars_in_text ((unsigned char *) buf, p - buf); 4268 nchars = multibyte_chars_in_text ((unsigned char *) buf, p - buf);
@@ -4603,7 +4602,7 @@ Transposing beyond buffer boundaries is an error. */)
4603 len1_byte, end2, start2_byte + len2_byte) 4602 len1_byte, end2, start2_byte + len2_byte)
4604 || count_combining_after (BYTE_POS_ADDR (start1_byte), 4603 || count_combining_after (BYTE_POS_ADDR (start1_byte),
4605 len1_byte, end2, start2_byte + len2_byte)) 4604 len1_byte, end2, start2_byte + len2_byte))
4606 abort (); 4605 emacs_abort ();
4607 } 4606 }
4608 else 4607 else
4609 { 4608 {
@@ -4615,7 +4614,7 @@ Transposing beyond buffer boundaries is an error. */)
4615 len2_byte, end1, start1_byte + len1_byte) 4614 len2_byte, end1, start1_byte + len1_byte)
4616 || count_combining_after (BYTE_POS_ADDR (start1_byte), 4615 || count_combining_after (BYTE_POS_ADDR (start1_byte),
4617 len1_byte, end2, start2_byte + len2_byte)) 4616 len1_byte, end2, start2_byte + len2_byte))
4618 abort (); 4617 emacs_abort ();
4619 } 4618 }
4620#endif 4619#endif
4621 4620