unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: emacs-devel@gnu.org
Subject: Re: Proposal: 'struct window' cleanup
Date: Wed, 23 May 2012 10:23:14 -0400	[thread overview]
Message-ID: <jwvobpff07m.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <4FBC6C3E.6010909@yandex.ru> (Dmitry Antipov's message of "Wed, 23 May 2012 08:49:02 +0400")

> === modified file 'src/ChangeLog'
> --- src/ChangeLog	2012-05-22 18:31:19 +0000
> +++ src/ChangeLog	2012-05-23 04:38:27 +0000
> @@ -1,3 +1,38 @@
> +2012-05-23  Dmitry Antipov  <dmantipov@yandex.ru>
> +
> +	For a 'struct window', replace some Lisp_Object fields to
> +	bitfields where appropriate, remove unused fields.
> +	* window.h (struct window): remove unused 'last_mark_x' and
> +	'last_mark_y' fields.
> +	* window.h (struct window): rename 'mini_p' field to 'mini',
> +	change it's type from Lisp_Object to bitfield.
> +	* window.h (struct window): change type of 'force_start',
> +	'optional_new_start', 'last_had_star', 'update_mode_line'
> +	and 'start_at_line_beg' fields from Lisp_Object to bitfield.

Please capitalize your sentences.  And you can merge those three:

	For a 'struct window', replace some Lisp_Object fields to
	bitfields where appropriate, remove unused fields.
	* window.h (struct window): Remove unused 'last_mark_x' and
	'last_mark_y' fields.  Rename 'mini_p' field to 'mini',
	change it's type from Lisp_Object to bitfield.
	Change type of 'force_start', 'optional_new_start',
	'last_had_star', 'update_mode_line' and 'start_at_line_beg'
	fields from Lisp_Object to bitfield.

> +	* fileio.c (Finsert_file_contents): adjusted for a new
> +	type of 'start_at_line_beg'.
> +	* frame.c (make_frame, make_minibuffer_frame): adjusted for
> +	a new type of 'mini'.
> +	* keyboard.c (command_loop_1): adjusted for a new type
> +	of 'force_start'.
> +	* window.c (Fset_window_start, window_loop)
> +	(Fdelete_other_windows_internal, set_window_buffer)
> +	(Fforce_window_update, make_window, window_scroll_pixel_based)
> +	(window_scroll_line_based, Frecenter, Fmove_to_window_line)
> +	(Fset_window_configuration, save_window_save): adjusted for
> +	a type changes in 'struct window'.
> +	* xdisp.c (update_menu_bar, update_tool_bar): adjusted for
> +	a new type of 'last_had_star' and 'update_mode_line'.
> +	* xdisp.c (redisplay_internal): adjusted for a new type
> +	of 'update_mode_line', 'force_start' and 'optional_new_start'.
> +	* xdisp.c (mark_window_display_accurate_1): adjusted for
> +	a new type of 'last_had_star' and 'update_mode_line'.
> +	* xdisp.c (redisplay_window): adjusted for
> +	a type changes in 'struct window'.
> +	* xdisp.c (try_window): adjusted for a new type of 'update_mode_line'.
> +	* xfns.c (x_set_menu_bar_lines): adjusted for a new type
> +	of 'update_mode_line'.

All these can be summarized by "Adjust users accordingly" in the
"* window.h (struct window):" entry.

The rest of the patch looks ready for installation.  IOW, please install
it, and thank you,


        Stefan



  reply	other threads:[~2012-05-23 14:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-21 14:25 Proposal: 'struct window' cleanup Dmitry Antipov
2012-05-21 14:37 ` Davis Herring
2012-05-22  3:30 ` Stefan Monnier
2012-05-22  7:08   ` Dmitry Antipov
2012-05-22  7:40     ` Thien-Thi Nguyen
2012-05-22 12:39     ` Stefan Monnier
2012-05-23  4:49       ` Dmitry Antipov
2012-05-23 14:23         ` Stefan Monnier [this message]
2012-06-01  3:46           ` Dmitry Antipov
2012-06-01 17:29             ` Stefan Monnier
2012-05-22 16:15     ` Eli Zaretskii

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=jwvobpff07m.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=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).