comparison src/buffer.c @ 83556:07774e5c3ff5

Merged from emacs@sv.gnu.org Patches applied: * emacs@sv.gnu.org/emacs--devo--0--patch-619 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-620 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-621 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-622 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-623 Remove RCS keywords * emacs@sv.gnu.org/emacs--devo--0--patch-624 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-625 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-626 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-627 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-628 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-629 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-630 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-631 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-632 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-633 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-634 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-635 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-636 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-637 Remove RCS keywords * emacs@sv.gnu.org/emacs--devo--0--patch-638 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-639 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-640 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-641 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-642 Merge from gnus--rel--5.10 * emacs@sv.gnu.org/emacs--devo--0--patch-643 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-644 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-645 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-646 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-647 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-648 Update from CVS * emacs@sv.gnu.org/emacs--devo--0--patch-649 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-197 Merge from emacs--devo--0 * emacs@sv.gnu.org/gnus--rel--5.10--patch-198 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-199 Update from CVS * emacs@sv.gnu.org/gnus--rel--5.10--patch-200 Merge from emacs--devo--0 * emacs@sv.gnu.org/gnus--rel--5.10--patch-201 Update from CVS: lisp/nnweb.el (nnweb-google-parse-1): Update parser. * emacs@sv.gnu.org/gnus--rel--5.10--patch-202 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-596
author Karoly Lorentey <karoly@lorentey.hu>
date Sat, 24 Feb 2007 19:26:54 +0000
parents b8d9a391daf3 ea846c2df7e0
children 738ce3540ffb
comparison
equal deleted inserted replaced
83555:053bf1a38bfa 83556:07774e5c3ff5
430 430
431 /* Put this in the alist of all live buffers. */ 431 /* Put this in the alist of all live buffers. */
432 XSETBUFFER (buf, b); 432 XSETBUFFER (buf, b);
433 Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil)); 433 Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil));
434 434
435 /* An error in calling the function here (should someone redfine it) 435 /* An error in calling the function here (should someone redefine it)
436 can lead to infinite regress until you run out of stack. rms 436 can lead to infinite regress until you run out of stack. rms
437 says that's not worth protecting against. */ 437 says that's not worth protecting against. */
438 if (!NILP (Ffboundp (Qucs_set_table_for_input))) 438 if (!NILP (Ffboundp (Qucs_set_table_for_input)))
439 /* buf is on buffer-alist, so no gcpro. */ 439 /* buf is on buffer-alist, so no gcpro. */
440 call1 (Qucs_set_table_for_input, buf); 440 call1 (Qucs_set_table_for_input, buf);
802 1, 2, 0, 802 1, 2, 0,
803 doc: /* Return a string that is the name of no existing buffer based on NAME. 803 doc: /* Return a string that is the name of no existing buffer based on NAME.
804 If there is no live buffer named NAME, then return NAME. 804 If there is no live buffer named NAME, then return NAME.
805 Otherwise modify name by appending `<NUMBER>', incrementing NUMBER 805 Otherwise modify name by appending `<NUMBER>', incrementing NUMBER
806 \(starting at 2) until an unused name is found, and then return that name. 806 \(starting at 2) until an unused name is found, and then return that name.
807 Optional second argument IGNORE specifies a name that is okay to use 807 Optional second argument IGNORE specifies a name that is okay to use (if
808 \(if it is in the sequence to be tried) 808 it is in the sequence to be tried) even if a buffer with that name exists. */)
809 even if a buffer with that name exists. */)
810 (name, ignore) 809 (name, ignore)
811 register Lisp_Object name, ignore; 810 register Lisp_Object name, ignore;
812 { 811 {
813 register Lisp_Object gentemp, tem; 812 register Lisp_Object gentemp, tem;
814 int count; 813 int count;
1143 } 1142 }
1144 1143
1145 DEFUN ("buffer-modified-tick", Fbuffer_modified_tick, Sbuffer_modified_tick, 1144 DEFUN ("buffer-modified-tick", Fbuffer_modified_tick, Sbuffer_modified_tick,
1146 0, 1, 0, 1145 0, 1, 0,
1147 doc: /* Return BUFFER's tick counter, incremented for each change in text. 1146 doc: /* Return BUFFER's tick counter, incremented for each change in text.
1148 Each buffer has a tick counter which is incremented each time the text in 1147 Each buffer has a tick counter which is incremented each time the
1149 that buffer is changed. It wraps around occasionally. 1148 text in that buffer is changed. It wraps around occasionally.
1150 No argument or nil as argument means use current buffer as BUFFER. */) 1149 No argument or nil as argument means use current buffer as BUFFER. */)
1151 (buffer) 1150 (buffer)
1152 register Lisp_Object buffer; 1151 register Lisp_Object buffer;
1153 { 1152 {
1154 register struct buffer *buf; 1153 register struct buffer *buf;