From: Dmitry Antipov <dmantipov@yandex.ru>
To: emacs-devel@gnu.org
Subject: [PATCH] buffer name assignment
Date: Tue, 10 Jan 2012 17:38:16 +0400 [thread overview]
Message-ID: <4F0C3F48.6050807@yandex.ru> (raw)
[-- 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);
reply other threads:[~2012-01-10 13:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F0C3F48.6050807@yandex.ru \
--to=dmantipov@yandex.ru \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).