From: martin rudalics <rudalics@gmx.at>
To: Bruno CHARRON <bruno@charron.email>, Noam Postavsky <npostavs@gmail.com>
Cc: 33230@debbugs.gnu.org
Subject: bug#33230: 26.1; Soft-wrap issue in term.el with term-suppress-hard-newline
Date: Sun, 04 Nov 2018 10:56:20 +0100 [thread overview]
Message-ID: <5BDEC244.3040002@gmx.at> (raw)
In-Reply-To: <5BDEB6CD.2050407@gmx.at>
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
> FWIW this is Bug#32720 for which I am responsible. It will be fixed
> in Emacs 26.2 by reestablishing the behavior of Emacs 25.
Attached find a patch for this against the release branch. Please try
it.
Thanks, martin
[-- Attachment #2: run-window-configuration-change.diff --]
[-- Type: text/plain, Size: 1849 bytes --]
diff --git a/src/frame.c b/src/frame.c
index 0a6ca26..8076eba 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -779,6 +779,8 @@ struct frame *
unblock_input ();
+ run_window_configuration_change_hook (f);
+
#ifdef HAVE_WINDOW_SYSTEM
{
/* Adjust size of F's child frames. */
diff --git a/src/window.c b/src/window.c
index 9026a7b..ef88fde 100644
--- a/src/window.c
+++ b/src/window.c
@@ -57,7 +57,6 @@ static bool foreach_window_1 (struct window *,
static bool window_resize_check (struct window *, bool);
static void window_resize_apply (struct window *, bool);
static void select_window_1 (Lisp_Object, bool);
-static void run_window_configuration_change_hook (struct frame *);
static struct window *set_window_fringes (struct window *, Lisp_Object,
Lisp_Object, Lisp_Object);
@@ -3319,7 +3318,7 @@ depends on the value of (window-start WINDOW), so if calling this
Fselect_frame (frame, Qt);
}
-static void
+void
run_window_configuration_change_hook (struct frame *f)
{
ptrdiff_t count = SPECPDL_INDEX ();
diff --git a/src/window.h b/src/window.h
index 629283a..bc6d8ab 100644
--- a/src/window.h
+++ b/src/window.h
@@ -1016,6 +1016,7 @@ extern Lisp_Object window_from_coordinates (struct frame *, int, int,
extern void shrink_mini_window (struct window *, bool);
extern int window_relative_x_coord (struct window *, enum window_part, int);
+void run_window_configuration_change_hook (struct frame *f);
void run_window_size_change_functions (Lisp_Object);
/* Make WINDOW display BUFFER. RUN_HOOKS_P means it's allowed
diff --git a/src/xfns.c b/src/xfns.c
index 1381fee..574f0bb 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1599,4 +1599,5 @@ struct mouse_cursor_data {
}
#endif /* not USE_X_TOOLKIT && not USE_GTK */
adjust_frame_glyphs (f);
+ run_window_configuration_change_hook (f);
}
next prev parent reply other threads:[~2018-11-04 9:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-01 18:11 bug#33230: 26.1; Soft-wrap issue in term.el with term-suppress-hard-newline Bruno CHARRON
2018-11-01 22:53 ` Noam Postavsky
2018-11-02 0:50 ` Bruno CHARRON
2018-11-03 2:15 ` Noam Postavsky
2018-11-04 7:23 ` Bruno CHARRON
2018-11-04 9:07 ` martin rudalics
2018-11-04 9:56 ` martin rudalics [this message]
2018-11-04 11:06 ` Bruno CHARRON
2018-11-13 9:07 ` martin rudalics
2018-11-13 17:18 ` Eli Zaretskii
2018-11-14 8:32 ` martin rudalics
2018-11-14 15:36 ` Eli Zaretskii
2018-11-18 9:22 ` martin rudalics
2018-11-18 16:17 ` Bruno Charron
2018-11-18 19:40 ` martin rudalics
2022-03-22 15:42 ` Lars Ingebrigtsen
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=5BDEC244.3040002@gmx.at \
--to=rudalics@gmx.at \
--cc=33230@debbugs.gnu.org \
--cc=bruno@charron.email \
--cc=npostavs@gmail.com \
/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).