all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Probably fixed [Re: Crash calling md5 for a list of buffers]
@ 2004-01-20 14:33 Dmitry Antipov
  0 siblings, 0 replies; only message in thread
From: Dmitry Antipov @ 2004-01-20 14:33 UTC (permalink / raw)


Index: fns.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/fns.c,v
retrieving revision 1.354
diff -u -r1.354 fns.c
--- fns.c       29 Dec 2003 13:51:54 -0000      1.354
+++ fns.c       20 Jan 2004 13:33:17 -0000
@@ -5386,7 +5386,7 @@
   int start_char = 0, end_char = 0;
   int start_byte = 0, end_byte = 0;
   register int b, e;
-  register struct buffer *bp;
+  register struct buffer *bp, *tem;
   int temp;
 
   if (STRINGP (object))
@@ -5542,8 +5542,10 @@
                  Fsignal (Qcoding_system_error, Fcons (coding_system, 
Qnil));
            }
        }
-
+      /* At this moment, current buffer may be not equal to bp.  */
+      tem = current_buffer, current_buffer = bp;
       object = make_buffer_string (b, e, 0);
+      current_buffer = tem;
 
       if (STRING_MULTIBYTE (object))
        object = code_convert_string1 (object, coding_system, Qnil, 1);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-01-20 14:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-20 14:33 Probably fixed [Re: Crash calling md5 for a list of buffers] Dmitry Antipov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.