aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman1993-02-11 23:21:01 +0000
committerRichard M. Stallman1993-02-11 23:21:01 +0000
commit3fff2dfa0c5af85ef4fc02216d3224243391ffd6 (patch)
tree1265a3dc1cefa44d72d1d78bfdbc3a1e3e42d394 /src/editfns.c
parente9cf2084dd2528ba64186835a3e6fdeeffbf4466 (diff)
downloademacs-3fff2dfa0c5af85ef4fc02216d3224243391ffd6.tar.gz
emacs-3fff2dfa0c5af85ef4fc02216d3224243391ffd6.zip
(Finsert_buffer_substring): Proper error for non-ex buffer.
(Fcompare_buffer_substrings): Likewise.
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 1e23171984e..8c09c5554b2 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -763,9 +763,12 @@ They default to the beginning and the end of BUFFER.")
763{ 763{
764 register int beg, end, temp, len, opoint, start; 764 register int beg, end, temp, len, opoint, start;
765 register struct buffer *bp; 765 register struct buffer *bp;
766 Lisp_Object buffer;
766 767
767 buf = Fget_buffer (buf); 768 buffer = Fget_buffer (buf);
768 bp = XBUFFER (buf); 769 if (NILP (buffer))
770 nsberror (buf);
771 bp = XBUFFER (buffer);
769 772
770 if (NILP (b)) 773 if (NILP (b))
771 beg = BUF_BEGV (bp); 774 beg = BUF_BEGV (bp);
@@ -842,8 +845,11 @@ determines whether case is significant or ignored.")
842 bp1 = current_buffer; 845 bp1 = current_buffer;
843 else 846 else
844 { 847 {
845 buffer1 = Fget_buffer (buffer1); 848 Lisp_Object buf1;
846 bp1 = XBUFFER (buffer1); 849 buf1 = Fget_buffer (buffer1);
850 if (NILP (buf1))
851 nsberror (buffer1);
852 bp1 = XBUFFER (buf1);
847 } 853 }
848 854
849 if (NILP (start1)) 855 if (NILP (start1))
@@ -875,7 +881,10 @@ determines whether case is significant or ignored.")
875 bp2 = current_buffer; 881 bp2 = current_buffer;
876 else 882 else
877 { 883 {
878 buffer2 = Fget_buffer (buffer2); 884 Lisp_Object buf2;
885 buf2 = Fget_buffer (buffer2);
886 if (NILP (buf2))
887 nsberror (buffer2);
879 bp2 = XBUFFER (buffer2); 888 bp2 = XBUFFER (buffer2);
880 } 889 }
881 890