unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] buffer name assignment
@ 2012-01-10 13:38 Dmitry Antipov
  0 siblings, 0 replies; only message in thread
From: Dmitry Antipov @ 2012-01-10 13:38 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 47 bytes --]

These two assignments looks redundant.

Dmitry

[-- Attachment #2: buffer_name_assignment.patch --]
[-- Type: text/plain, Size: 1034 bytes --]

=== modified file 'src/ChangeLog'
--- src/ChangeLog	2012-01-10 03:00:28 +0000
+++ src/ChangeLog	2012-01-10 13:35:16 +0000
@@ -1,3 +1,8 @@
+2012-01-10  Dmitry Antipov  <dmantipov@yandex.ru>
+
+	* buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Remove
+	duplicated buffer name assignment.
+
 2012-01-10  Glenn Morris  <rgm@gnu.org>
 
 	* epaths.in (PATH_LOADSEARCH, PATH_DUMPLOADSEARCH, PATH_EXEC)

=== modified file 'src/buffer.c'
--- src/buffer.c	2012-01-05 09:46:05 +0000
+++ src/buffer.c	2012-01-10 13:25:03 +0000
@@ -389,7 +389,6 @@
 
   BVAR (b, mark) = Fmake_marker ();
   BUF_MARKERS (b) = NULL;
-  BVAR (b, name) = name;
 
   /* Put this in the alist of all live buffers.  */
   XSETBUFFER (buffer, b);
@@ -616,7 +615,6 @@
   Vbuffer_alist = nconc2 (Vbuffer_alist, Fcons (Fcons (name, buf), Qnil));
 
   BVAR (b, mark) = Fmake_marker ();
-  BVAR (b, name) = name;
 
   /* The multibyte status belongs to the base buffer.  */
   BVAR (b, enable_multibyte_characters) = BVAR (b->base_buffer, enable_multibyte_characters);


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

only message in thread, other threads:[~2012-01-10 13:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-10 13:38 [PATCH] buffer name assignment Dmitry Antipov

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).