Discussion:
Posting with long lines
(too old to reply)
Richmond
2024-03-12 12:02:30 UTC
Permalink
When posting an article with long lines (usually urls or quoted text)
gnus says the article contains long lines and asks if I really want to
post. It doesn't say exactly where the line is, but I think it knows,
because when I do post the cursor moves to the offending line briefly,
and then off the article goes. Is there a way to highlight the line?
perhaps gnus can be fixed to do this?

Is there anyone there? If you are there and nobody has replied, reply
saying "I don't know." so I know this group isn't dead, if you
would. Thanks in advance...
Mattor
2024-03-12 15:28:45 UTC
Permalink
Post by Richmond
When posting an article with long lines (usually urls or quoted text)
[..]
Post by Richmond
and then off the article goes. Is there a way to highlight the line?
perhaps gnus can be fixed to do this?
Is there anyone there? If you are there and nobody has replied, reply
saying "I don't know." so I know this group isn't dead, if you
would. Thanks in advance...
This group is not dead. But there isn't much traffic.

Best regards,

MattoF
Thomas Dupond
2024-03-19 15:43:12 UTC
Permalink
Post by Richmond
When posting an article with long lines (usually urls or quoted text)
gnus says the article contains long lines and asks if I really want to
post. It doesn't say exactly where the line is, but I think it knows,
because when I do post the cursor moves to the offending line briefly,
and then off the article goes. Is there a way to highlight the line?
perhaps gnus can be fixed to do this?
Is there anyone there? If you are there and nobody has replied, reply
saying "I don't know." so I know this group isn't dead, if you
would. Thanks in advance...
Looking at message.el.gz, the function message-check-news-body-syntax is
likely to be the culprit.

This function checks if a line length is higher than 80 characters long
and warns you with the following:

"You have lines longer than 79 characters. Really post?"

To detect lines longer than 80 characters you can use whitespace-mode
which will highlight lines longer than the value held by the variable
whitespace-line-column.

The default value of whitespace-line-column is 80.

Regards,
--
Thomas
Richmond
2024-03-22 12:10:39 UTC
Permalink
Le 2024-03-12 à 13:02, Richmond a écrit : > When posting an article
with long lines (usually urls or quoted text) > gnus says the article
contains long lines and asks if I really want to > post. It doesn't say
exactly where the line is, but I think it knows, > because when I do
post the cursor moves to the offending line briefly, > and then off the
article goes. Is there a way to highlight the line? > perhaps gnus can
be fixed to do this? > Is there anyone there? If you are there and
nobody has replied, > reply > saying "I don't know." so I know this
group isn't dead, if you > would. Thanks in advance...
Looking at message.el.gz, the function message-check-news-body-syntax
is likely to be the culprit.
This function checks if a line length is higher than 80 characters
"You have lines longer than 79 characters. Really post?"
To detect lines longer than 80 characters you can use whitespace-mode
which will highlight lines longer than the value held by the variable
whitespace-line-column.
The default value of whitespace-line-column is 80.
Regards,
Thanks, this works. It is usually urls which cause the notice but now I
at least know it is the url only.
Thomas Dupond
2024-03-22 14:23:39 UTC
Permalink
Post by Richmond
Le 2024-03-12 à 13:02, Richmond a écrit : > When posting an article
with long lines (usually urls or quoted text) > gnus says the article
contains long lines and asks if I really want to > post. It doesn't say
exactly where the line is, but I think it knows, > because when I do
post the cursor moves to the offending line briefly, > and then off the
article goes. Is there a way to highlight the line? > perhaps gnus can
be fixed to do this? > Is there anyone there? If you are there and
nobody has replied, > reply > saying "I don't know." so I know this
group isn't dead, if you > would. Thanks in advance...
Looking at message.el.gz, the function message-check-news-body-syntax
is likely to be the culprit.
This function checks if a line length is higher than 80 characters
"You have lines longer than 79 characters. Really post?"
To detect lines longer than 80 characters you can use whitespace-mode
which will highlight lines longer than the value held by the variable
whitespace-line-column.
The default value of whitespace-line-column is 80.
Regards,
Thanks, this works. It is usually urls which cause the notice but now I
at least know it is the url only.
Hi,

I looked into it a bit more and on the info node (emacs) Displaying
Boundaries you will find more functions to display which text is above
the limit.

By doing M-x display-fill-column-indicator-mode you will get a fine mark
for every character above the value held by fill-column (default is 70).

You could add this function in the message-mode-hook, you would be able
to see the lines which are too long without being bothered by all the
excess informations of whitespace-mode.
--
Thomas
Loading...