* bug#14382: 24.3.50; Strange display bug
@ 2013-05-10 13:31 Richard Stallman
2013-05-10 14:12 ` Eli Zaretskii
` (3 more replies)
0 siblings, 4 replies; 19+ messages in thread
From: Richard Stallman @ 2013-05-10 13:31 UTC (permalink / raw)
To: 14382
I visited the file free-sw.html, which I've edited.
I typed C-x v v as if to check in the changes.
It displayed *vc-log* in the bottom window.
In the *vc-log* buffer, I typed aaaa C-a C-o.
This made the buffer start with a blank line.
The bug is, that line is displayed in inverse video
just like the mode line above it.
I can reproduce the bug only in *vc-log*.
In *scratch*, in free-sw.html, in this mail buffer,
if I go to the beginning and type C-o, the bug does not occur.
In GNU Emacs 24.3.50.1 (mips64el-unknown-linux-gnu, GTK+ Version 2.20.1)
of 2013-05-01 on chiefs-gnewsense
Bzr revision: 112434 juri@jurta.org-20130501081012-n3c351r92cr17lu5
System Description: Debian GNU/Linux 6.0.6 (squeeze)
Configured using:
`configure CFLAGS=-g -O0'
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Log-Edit
Minor modes in effect:
gpm-mouse-mode: t
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-x C-f w w w / p h i l TAB f r e e - s w . h t m l
RET C-x v v a a a a C-a C-o ESC x r e p o r t SPC e
m a c s SPC b u g RET
Recent messages:
("emacs")
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
Press C-c C-c when you are done editing.
Enter a change comment. Type C-c C-c when done
Source file `/home/rms/emacs-bzr/trunk/lisp/gnus/message.el' newer than byte-compiled file
Load-path shadows:
None found.
Features:
(shadow sort nadvice gnus-util mail-extr emacsbug message format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils log-edit easymenu easy-mmode ring
pcvs-util add-log vc vc-dispatcher parse-time vc-cvs sgml-mode t-mouse
time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind inotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)
--
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
Use Ekiga or an ordinary phone call
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-10 13:31 bug#14382: 24.3.50; Strange display bug Richard Stallman
@ 2013-05-10 14:12 ` Eli Zaretskii
2013-05-10 22:08 ` Richard Stallman
2013-05-10 15:07 ` Dmitry Gutov
` (2 subsequent siblings)
3 siblings, 1 reply; 19+ messages in thread
From: Eli Zaretskii @ 2013-05-10 14:12 UTC (permalink / raw)
To: rms; +Cc: 14382
> Date: Fri, 10 May 2013 09:31:27 -0400
> From: Richard Stallman <rms@gnu.org>
>
> I visited the file free-sw.html, which I've edited.
> I typed C-x v v as if to check in the changes.
> It displayed *vc-log* in the bottom window.
>
> In the *vc-log* buffer, I typed aaaa C-a C-o.
> This made the buffer start with a blank line.
>
> The bug is, that line is displayed in inverse video
> just like the mode line above it.
If you go to that line and type "M-x describe-text-properties RET",
does Emacs show that it deliberately put some face there that is
displayed as inverse video?
IOW, is the bug that this line uses some face that shouldn't be there,
or is the bug that the display engine displays the line in inverse
video even though it has a different (like default) face?
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-10 14:12 ` Eli Zaretskii
@ 2013-05-10 22:08 ` Richard Stallman
0 siblings, 0 replies; 19+ messages in thread
From: Richard Stallman @ 2013-05-10 22:08 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 14382
I think you guessed it.
If you go to that line and type "M-x describe-text-properties RET",
does Emacs show that it deliberately put some face there that is
displayed as inverse video?
There are text properties here:
face (:height 0.1 :inverse-video t)
fontified t
Maybe this is a feature.
--
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
Use Ekiga or an ordinary phone call
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-10 13:31 bug#14382: 24.3.50; Strange display bug Richard Stallman
2013-05-10 14:12 ` Eli Zaretskii
@ 2013-05-10 15:07 ` Dmitry Gutov
2013-05-10 20:03 ` Glenn Morris
2013-05-10 20:22 ` Stefan Monnier
2022-05-08 11:53 ` bug#14382: bug#15979: 24.3.50; Bad display in *vc-log* buffer Lars Ingebrigtsen
3 siblings, 1 reply; 19+ messages in thread
From: Dmitry Gutov @ 2013-05-10 15:07 UTC (permalink / raw)
To: Richard Stallman; +Cc: 14382
Richard Stallman <rms@gnu.org> writes:
> I visited the file free-sw.html, which I've edited.
> I typed C-x v v as if to check in the changes.
> It displayed *vc-log* in the bottom window.
>
> In the *vc-log* buffer, I typed aaaa C-a C-o.
> This made the buffer start with a blank line.
>
> The bug is, that line is displayed in inverse video
> just like the mode line above it.
Sounds like the header separator, look at `log-edit-font-lock-keywords',
last item.
Maybe we should add a check that the header is not empty, and only show
the separator in that case.
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-10 15:07 ` Dmitry Gutov
@ 2013-05-10 20:03 ` Glenn Morris
2013-05-10 21:00 ` Stefan Monnier
0 siblings, 1 reply; 19+ messages in thread
From: Glenn Morris @ 2013-05-10 20:03 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: 14382, Richard Stallman
Dmitry Gutov wrote:
> Sounds like the header separator, look at `log-edit-font-lock-keywords',
> last item.
I mainly find this a visual annoyance.
Mail modes have been separating headers from bodies for ages.
Has any of them used such a separator?
> Maybe we should add a check that the header is not empty, and only show
> the separator in that case.
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-10 20:03 ` Glenn Morris
@ 2013-05-10 21:00 ` Stefan Monnier
2013-05-11 7:31 ` Dmitry Gutov
0 siblings, 1 reply; 19+ messages in thread
From: Stefan Monnier @ 2013-05-10 21:00 UTC (permalink / raw)
To: Glenn Morris; +Cc: 14382, Richard Stallman, Dmitry Gutov
>> Sounds like the header separator, look at `log-edit-font-lock-keywords',
>> last item.
> I mainly find this a visual annoyance.
> Mail modes have been separating headers from bodies for ages.
> Has any of them used such a separator?
I'm not wedded to the current representation.
Especially since even in GUI frames I currently see a "full height"
thick line despite the (:height 0.1 :inverse-video t) face property.
If someone could look into this bug#9787 I'd appreciate it.
> Maybe we should add a check that the header is not empty, and only show
> the separator in that case.
We could, tho normally the header should never be empty.
Stefan
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-10 21:00 ` Stefan Monnier
@ 2013-05-11 7:31 ` Dmitry Gutov
2013-05-11 14:54 ` Stefan Monnier
0 siblings, 1 reply; 19+ messages in thread
From: Dmitry Gutov @ 2013-05-11 7:31 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 14382, Richard Stallman
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>> Maybe we should add a check that the header is not empty, and only show
>> the separator in that case.
>
> We could, tho normally the header should never be empty.
It starts empty and a user may temporarily put an empty line at the
beginning of the buffer for whatever reason, like in this bug's
scenario.
Figuring out what's this black line for and how to go above it ("my
cursor disappeared!") is not effortless.
> It should normally start with a content along the lines of
> "Summary:\nAuthor:\n\n".
Huh?
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-11 7:31 ` Dmitry Gutov
@ 2013-05-11 14:54 ` Stefan Monnier
2013-05-11 16:27 ` Dmitry Gutov
2013-05-11 16:49 ` Richard Stallman
0 siblings, 2 replies; 19+ messages in thread
From: Stefan Monnier @ 2013-05-11 14:54 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: 14382, Richard Stallman
>>> Maybe we should add a check that the header is not empty, and only show
>>> the separator in that case.
>> We could, tho normally the header should never be empty.
> It starts empty
That's the problem that needs fixing. Can someone check why it doesn't
start with "Summary:\nAuthor:\n\n".
Stefan
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-11 14:54 ` Stefan Monnier
@ 2013-05-11 16:27 ` Dmitry Gutov
2013-05-11 16:32 ` Dmitry Gutov
2013-05-11 17:41 ` Stefan Monnier
2013-05-11 16:49 ` Richard Stallman
1 sibling, 2 replies; 19+ messages in thread
From: Dmitry Gutov @ 2013-05-11 16:27 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 14382, Richard Stallman
On 11.05.2013 18:54, Stefan Monnier wrote:
>>>> Maybe we should add a check that the header is not empty, and only show
>>>> the separator in that case.
>>> We could, tho normally the header should never be empty.
>> It starts empty
>
> That's the problem that needs fixing. Can someone check why it doesn't
> start with "Summary:\nAuthor:\n\n".
It doesn't seem to have ever done that.
`log-edit' inserts those lines when its second argument is t.
`vc-log-edit' passes it nil in the second argument (and has been doing
that since before rev 87525).
Having the "Author" header present by default seems to encourage the
user to leave it empty (if they're the author). `vc-git-checkin', for
example, doesn't look like it's going to handle the empty value.
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-11 16:27 ` Dmitry Gutov
@ 2013-05-11 16:32 ` Dmitry Gutov
2013-05-11 17:41 ` Stefan Monnier
1 sibling, 0 replies; 19+ messages in thread
From: Dmitry Gutov @ 2013-05-11 16:32 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 14382, Richard Stallman
Dmitry Gutov <dgutov@yandex.ru> writes:
> `log-edit' inserts those lines when its second argument is t.
Ah, and also when `log-edit-setup-invert' is t, which is not the default value.
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-11 16:27 ` Dmitry Gutov
2013-05-11 16:32 ` Dmitry Gutov
@ 2013-05-11 17:41 ` Stefan Monnier
2013-05-11 18:37 ` Dmitry Gutov
2013-05-11 21:44 ` Richard Stallman
1 sibling, 2 replies; 19+ messages in thread
From: Stefan Monnier @ 2013-05-11 17:41 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: 14382, Richard Stallman
>> That's the problem that needs fixing. Can someone check why it doesn't
>> start with "Summary:\nAuthor:\n\n".
> It doesn't seem to have ever done that.
> `log-edit' inserts those lines when its second argument is t.
> `vc-log-edit' passes it nil in the second argument (and has been doing that
> since before rev 87525).
Ah, I see. We should change it, then to always insert such lines.
> Having the "Author" header present by default seems to encourage the user to
> leave it empty (if they're the author). `vc-git-checkin', for example,
> doesn't look like it's going to handle the empty value.
No, empty header lines get stripped before passing anything to the backend.
What the "Author:" does is encourage people to indicate who's the real
author of the code.
Stefan
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-11 17:41 ` Stefan Monnier
@ 2013-05-11 18:37 ` Dmitry Gutov
2013-05-11 21:44 ` Richard Stallman
1 sibling, 0 replies; 19+ messages in thread
From: Dmitry Gutov @ 2013-05-11 18:37 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 14382, Richard Stallman
On 11.05.2013 21:41, Stefan Monnier wrote:
> What the "Author:" does is encourage people to indicate who's the real
> author of the code.
I don't like this approach. Most of the time, I'm both the author and
the committer, so the empty line will just stick out like a sore thumb.
Not to mention that VC can also be used with projects other than Emacs,
where accepting outside contributions as patch files can be a much rarer
occurrence.
--Dmitry
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-11 17:41 ` Stefan Monnier
2013-05-11 18:37 ` Dmitry Gutov
@ 2013-05-11 21:44 ` Richard Stallman
2013-05-11 22:11 ` Dmitry Gutov
1 sibling, 1 reply; 19+ messages in thread
From: Richard Stallman @ 2013-05-11 21:44 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 14382, dgutov
What the "Author:" does is encourage people to indicate who's the real
author of the code.
If the idea is to propose a general format convention for VC change
log entries, it seems to me that we should have a broader discussion
before adopting it. If the convention is not limited to Emacs, that
discussion should not be limited to Emacs either.
--
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
Use Ekiga or an ordinary phone call
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-11 21:44 ` Richard Stallman
@ 2013-05-11 22:11 ` Dmitry Gutov
2013-05-12 19:39 ` Richard Stallman
0 siblings, 1 reply; 19+ messages in thread
From: Dmitry Gutov @ 2013-05-11 22:11 UTC (permalink / raw)
To: rms; +Cc: 14382
On 12.05.2013 1:44, Richard Stallman wrote:
> What the "Author:" does is encourage people to indicate who's the real
> author of the code.
>
> If the idea is to propose a general format convention for VC change
> log entries,
Not at all. The "Format" header value is translated into the first line
of the commit message. The "Author" header value is translated into the
"--author" argument passed to the VCS program.
So, having the "Author:" header present in a new log-edit-mode buffer is
meant to encourage users to fill in its value, i.e. specify the actual
author of the code they are checking in.
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-11 22:11 ` Dmitry Gutov
@ 2013-05-12 19:39 ` Richard Stallman
2013-05-12 21:23 ` Dmitry Gutov
0 siblings, 1 reply; 19+ messages in thread
From: Richard Stallman @ 2013-05-12 19:39 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: 14382
Not at all. The "Format" header value is translated into the first line
of the commit message. The "Author" header value is translated into the
"--author" argument passed to the VCS program.
I start to understand now.
Is there a difference between "the first line of the commit message"
and "whatever I would previously have written on the first line
of *vc-log*?
--
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
Use Ekiga or an ordinary phone call
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-12 19:39 ` Richard Stallman
@ 2013-05-12 21:23 ` Dmitry Gutov
0 siblings, 0 replies; 19+ messages in thread
From: Dmitry Gutov @ 2013-05-12 21:23 UTC (permalink / raw)
To: rms; +Cc: 14382
On 12.05.2013 23:39, Richard Stallman wrote:
> Not at all. The "Format" header value is translated into the first line
> of the commit message. The "Author" header value is translated into the
> "--author" argument passed to the VCS program.
>
> I start to understand now.
>
> Is there a difference between "the first line of the commit message"
> and "whatever I would previously have written on the first line
> of *vc-log*?
Probably not.
To be more clear, before the commit happens, the value of "Summary", if
any, is inserted after the headers and, together with the text already
present there, is used as commit message. See `log-edit-extract-headers'.
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-11 14:54 ` Stefan Monnier
2013-05-11 16:27 ` Dmitry Gutov
@ 2013-05-11 16:49 ` Richard Stallman
1 sibling, 0 replies; 19+ messages in thread
From: Richard Stallman @ 2013-05-11 16:49 UTC (permalink / raw)
To: Stefan Monnier; +Cc: 14382, dgutov
That's the problem that needs fixing. Can someone check why it doesn't
start with "Summary:\nAuthor:\n\n".
I have never seen it start out as anything but empty.
What is "Summary:\nAuthor:\n\n" meant for, and why
should it appear in *vc-log* for a gnu.org web page?
--
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
Use Ekiga or an ordinary phone call
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: 24.3.50; Strange display bug
2013-05-10 13:31 bug#14382: 24.3.50; Strange display bug Richard Stallman
2013-05-10 14:12 ` Eli Zaretskii
2013-05-10 15:07 ` Dmitry Gutov
@ 2013-05-10 20:22 ` Stefan Monnier
2022-05-08 11:53 ` bug#14382: bug#15979: 24.3.50; Bad display in *vc-log* buffer Lars Ingebrigtsen
3 siblings, 0 replies; 19+ messages in thread
From: Stefan Monnier @ 2013-05-10 20:22 UTC (permalink / raw)
To: Richard Stallman; +Cc: 14382
> I visited the file free-sw.html, which I've edited.
> I typed C-x v v as if to check in the changes.
> It displayed *vc-log* in the bottom window.
Was this buffer empty? If so, that's arguably the source of the problem.
It should normally start with a content along the lines of "Summary:\nAuthor:\n\n".
> The bug is, that line is displayed in inverse video
> just like the mode line above it.
The *vc-log* buffer nowadays uses an rfc822-style format, so the
reverse-video line you saw was the representation of the separator
between the header and the body.
Stefan
^ permalink raw reply [flat|nested] 19+ messages in thread
* bug#14382: bug#15979: 24.3.50; Bad display in *vc-log* buffer
2013-05-10 13:31 bug#14382: 24.3.50; Strange display bug Richard Stallman
` (2 preceding siblings ...)
2013-05-10 20:22 ` Stefan Monnier
@ 2022-05-08 11:53 ` Lars Ingebrigtsen
3 siblings, 0 replies; 19+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-08 11:53 UTC (permalink / raw)
To: Richard Stallman; +Cc: 14382, 15979
Richard Stallman <rms@gnu.org> writes:
> I visited the file free-sw.html, which I've edited.
> I typed C-x v v as if to check in the changes.
> It displayed *vc-log* in the bottom window.
>
> In the *vc-log* buffer, I typed aaaa C-a C-o.
> This made the buffer start with a blank line.
>
> The bug is, that line is displayed in inverse video
> just like the mode line above it.
(I'm going through old bug reports that unfortunately weren't resolved
at the time.)
Skimming this bug report, it seems like this is working as designed, so
I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 19+ messages in thread
end of thread, other threads:[~2022-05-08 11:53 UTC | newest]
Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-10 13:31 bug#14382: 24.3.50; Strange display bug Richard Stallman
2013-05-10 14:12 ` Eli Zaretskii
2013-05-10 22:08 ` Richard Stallman
2013-05-10 15:07 ` Dmitry Gutov
2013-05-10 20:03 ` Glenn Morris
2013-05-10 21:00 ` Stefan Monnier
2013-05-11 7:31 ` Dmitry Gutov
2013-05-11 14:54 ` Stefan Monnier
2013-05-11 16:27 ` Dmitry Gutov
2013-05-11 16:32 ` Dmitry Gutov
2013-05-11 17:41 ` Stefan Monnier
2013-05-11 18:37 ` Dmitry Gutov
2013-05-11 21:44 ` Richard Stallman
2013-05-11 22:11 ` Dmitry Gutov
2013-05-12 19:39 ` Richard Stallman
2013-05-12 21:23 ` Dmitry Gutov
2013-05-11 16:49 ` Richard Stallman
2013-05-10 20:22 ` Stefan Monnier
2022-05-08 11:53 ` bug#14382: bug#15979: 24.3.50; Bad display in *vc-log* buffer Lars Ingebrigtsen
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).