* bug#31351: 27.0; Cannot send bug report with Outlook if text includes backquoted sexps
[not found] ` <<8336z8ppz3.fsf@gnu.org>
@ 2018-05-03 18:24 ` Drew Adams
2018-05-03 18:59 ` Eli Zaretskii
0 siblings, 1 reply; 12+ messages in thread
From: Drew Adams @ 2018-05-03 18:24 UTC (permalink / raw)
To: Eli Zaretskii, Drew Adams; +Cc: 31351
> I see the problem, but I'm not sure it's the same problem, because it
> doesn't fit your description in two details: (a) the problem I see is
> not caused by anything in the message body -- in fact, I can reproduce
> the problem with a "bug report" whose body consists of just "foo", in
> addition to the details collected by the command about my system; and
> (b) sending that problematic bug report works just fine in Emacs 25
> and all older versions, and is broken only in Emacs 26 and later.
>
> The problem I see is not caused by backticks in the body, it is caused
> by quotes ".." in the Subject of the bug. (I don't see how the body
> could have any effect on launching Outlook, since we pass the body
> through the system clipboard, and Outlook doesn't see it until you
> paste the body into Outlook. So it cannot possibly prevent Outlook
> from starting correctly.)
>
> To fix the problem I see, I installed on the release branch a fix,
> which is reproduced below. Please re-verify that you indeed see a
> different problem -- I expect the patch below not to solve the problem
> if so.
>
> Thanks.
Great. Thanks for taking a closer look.
It's funny though. Before I tried simplifying the body, I did
try simplifying the Subject line, by removing the backquote,
the single quote, and the double-quotes. That didn't fix it
for me. But perhaps I didn't do what I thought I did.
Anyway, if you've found a fix, that's great.
BTW, it wasn't about having an effect on launching Outlook.
I already had Outlook open. It was only about not creating
a new Outlook message with the header filled and the body
ready to be pasted as the bug-report text.
(I don't want to try testing this, as that will likely create
a useless bug report. If you feel this fixes the problem
that's good enough for me, until/unless I run into it again.)
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#31351: 27.0; Cannot send bug report with Outlook if text includes backquoted sexps
2018-05-03 18:24 ` bug#31351: 27.0; Cannot send bug report with Outlook if text includes backquoted sexps Drew Adams
@ 2018-05-03 18:59 ` Eli Zaretskii
0 siblings, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2018-05-03 18:59 UTC (permalink / raw)
To: Drew Adams; +Cc: 31351
> Date: Thu, 3 May 2018 11:24:39 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
> Cc: 31351@debbugs.gnu.org
>
> Anyway, if you've found a fix, that's great.
I'd like to close this bug, but it would be good for you to try the
fixed browse-url.el and see if you can still trigger the problem with
that particular bug report.
> BTW, it wasn't about having an effect on launching Outlook.
> I already had Outlook open. It was only about not creating
> a new Outlook message with the header filled and the body
> ready to be pasted as the bug-report text.
That's an implementation detail. From Emacs point of view, it
launches Outlook, passing it the addressee and the subject of the bug.
That the running Outlook intercepts the command and opens a new window
in the same executable is out of Emacs control.
> (I don't want to try testing this, as that will likely create
> a useless bug report.
I don't see why you should worry about that: you can always close the
new Outlook window without clicking "Send". IOW, if you get an
Outlook window with the bug address and the bug title, and can paste
the body with "Ctrl-v", then the bug is fixed, and you don't need to
send anything anywhere (but if you do want to send, you can edit the
addressee).
^ permalink raw reply [flat|nested] 12+ messages in thread
[parent not found: <<<<<43b34fd6-291d-475d-8c8d-65c58dd0f316@default>]
[parent not found: <<<<43b34fd6-291d-475d-8c8d-65c58dd0f316@default>]
[parent not found: <<<43b34fd6-291d-475d-8c8d-65c58dd0f316@default>]
* bug#31351: 27.0; Cannot send bug report with Outlook if text includes backquoted sexps
@ 2018-05-03 0:55 Drew Adams
2018-05-03 1:02 ` Noam Postavsky
2018-05-03 18:13 ` Eli Zaretskii
0 siblings, 2 replies; 12+ messages in thread
From: Drew Adams @ 2018-05-03 0:55 UTC (permalink / raw)
To: 31351
I tried several times to send the bug report that you find in bug
#31350. I could not do so with Emacs 25 or later. My mail client is
Outlook 2016.
Each time I tried, I got this Outlook error message:
The command line argument is not valid.
Verify the switch you are using.
I have no idea what the command line is that is sent to Outlook.
I finally succeeded in sending the bug report by deleting the two code
lines from it that you see in bug #31350 after this line of text:
These are the two clauses in question:
Please refer to that bug for the two lines of code.
I deleted those two lines and was able to get the bug report from Emacs
to a new Outlook message, and I inserted the two code lines into that
Outlook message, then sent it.
Something seems wrong in Emacs (or Outlook?) if Emacs cannot get Outlook
to create a message that includes such simple text.
In GNU Emacs 27.0.50 (build 3, x86_64-w64-mingw32)
of 2018-03-21
Repository revision: e70d0c9e66d7a8609450b2889869d16aeb0363b5
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install -C 'CFLAGS=-O2 -static -g3''
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#31351: 27.0; Cannot send bug report with Outlook if text includes backquoted sexps
2018-05-03 0:55 Drew Adams
@ 2018-05-03 1:02 ` Noam Postavsky
2018-05-03 1:18 ` Drew Adams
2018-05-03 18:13 ` Eli Zaretskii
1 sibling, 1 reply; 12+ messages in thread
From: Noam Postavsky @ 2018-05-03 1:02 UTC (permalink / raw)
To: Drew Adams; +Cc: 31351
merge 31351 29074
quit
Drew Adams <drew.adams@oracle.com> writes:
> I tried several times to send the bug report that you find in bug
> #31350. I could not do so with Emacs 25 or later. My mail client is
> Outlook 2016.
>
> Each time I tried, I got this Outlook error message:
>
> The command line argument is not valid.
> Verify the switch you are using.
>
> I have no idea what the command line is that is sent to Outlook.
I guess the request in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=29074#11 would be
relevant.
^ permalink raw reply [flat|nested] 12+ messages in thread
* bug#31351: 27.0; Cannot send bug report with Outlook if text includes backquoted sexps
2018-05-03 0:55 Drew Adams
2018-05-03 1:02 ` Noam Postavsky
@ 2018-05-03 18:13 ` Eli Zaretskii
1 sibling, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2018-05-03 18:13 UTC (permalink / raw)
To: Drew Adams; +Cc: 31351
> Date: Wed, 2 May 2018 17:55:14 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
>
> I tried several times to send the bug report that you find in bug
> #31350. I could not do so with Emacs 25 or later. My mail client is
> Outlook 2016.
>
> Each time I tried, I got this Outlook error message:
>
> The command line argument is not valid.
> Verify the switch you are using.
>
> I have no idea what the command line is that is sent to Outlook.
>
> I finally succeeded in sending the bug report by deleting the two code
> lines from it that you see in bug #31350 after this line of text:
>
> These are the two clauses in question:
>
> Please refer to that bug for the two lines of code.
>
> I deleted those two lines and was able to get the bug report from Emacs
> to a new Outlook message, and I inserted the two code lines into that
> Outlook message, then sent it.
I see the problem, but I'm not sure it's the same problem, because it
doesn't fit your description in two details: (a) the problem I see is
not caused by anything in the message body -- in fact, I can reproduce
the problem with a "bug report" whose body consists of just "foo", in
addition to the details collected by the command about my system; and
(b) sending that problematic bug report works just fine in Emacs 25
and all older versions, and is broken only in Emacs 26 and later.
The problem I see is not caused by backticks in the body, it is caused
by quotes ".." in the Subject of the bug. (I don't see how the body
could have any effect on launching Outlook, since we pass the body
through the system clipboard, and Outlook doesn't see it until you
paste the body into Outlook. So it cannot possibly prevent Outlook
from starting correctly.)
To fix the problem I see, I installed on the release branch a fix,
which is reproduced below. Please re-verify that you indeed see a
different problem -- I expect the patch below not to solve the problem
if so.
Thanks.
diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index 98b0acf..a84a7b1 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -878,7 +878,21 @@ browse-url-default-windows-browser
(error "Browsing URLs is not supported on this system")))
((eq system-type 'cygwin)
(call-process "cygstart" nil nil nil url))
- (t (w32-shell-execute "open" (url-unhex-string url)))))
+ (t
+ (w32-shell-execute "open"
+ ;; w32-shell-execute passes file:// URLs
+ ;; to APIs that expect file names, so we
+ ;; need to unhex any %nn encoded
+ ;; characters in the URL. We don't do
+ ;; that for other URLs; in particular,
+ ;; default Windows mail client barfs on
+ ;; quotes in the MAILTO URLs, so we prefer
+ ;; to leave the URL with its embedded %nn
+ ;; encoding intact.
+ (if (eq t (compare-strings url nil 7
+ "file://" nil nil))
+ (url-unhex-string url)
+ url)))))
(defun browse-url-default-macosx-browser (url &optional _new-window)
"Invoke the macOS system's default Web browser.
^ permalink raw reply related [flat|nested] 12+ messages in thread
end of thread, other threads:[~2018-05-04 17:35 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <<43b34fd6-291d-475d-8c8d-65c58dd0f316@default>
[not found] ` <<8336z8ppz3.fsf@gnu.org>
2018-05-03 18:24 ` bug#31351: 27.0; Cannot send bug report with Outlook if text includes backquoted sexps Drew Adams
2018-05-03 18:59 ` Eli Zaretskii
[not found] <<<<<43b34fd6-291d-475d-8c8d-65c58dd0f316@default>
[not found] ` <<<<<8336z8ppz3.fsf@gnu.org>
[not found] ` <<<<d4fa0a90-631b-444a-abe7-0beed40aecf1@default>
[not found] ` <<<<83y3h0o9a7.fsf@gnu.org>
[not found] ` <<<1d1d9379-4d74-4171-baf6-cead40e47c1d@default>
[not found] ` <<<83tvroo6ea.fsf@gnu.org>
[not found] ` <<3b184f18-5afe-46fa-a4c7-4cc74d08be57@default>
[not found] ` <<83efirtx8q.fsf@gnu.org>
2018-05-04 15:30 ` Drew Adams
2018-05-04 17:35 ` Eli Zaretskii
[not found] <<<<43b34fd6-291d-475d-8c8d-65c58dd0f316@default>
[not found] ` <<<<8336z8ppz3.fsf@gnu.org>
[not found] ` <<<d4fa0a90-631b-444a-abe7-0beed40aecf1@default>
[not found] ` <<<83y3h0o9a7.fsf@gnu.org>
[not found] ` <<1d1d9379-4d74-4171-baf6-cead40e47c1d@default>
[not found] ` <<83tvroo6ea.fsf@gnu.org>
2018-05-03 20:11 ` Drew Adams
2018-05-04 12:35 ` Eli Zaretskii
[not found] <<<43b34fd6-291d-475d-8c8d-65c58dd0f316@default>
[not found] ` <<<8336z8ppz3.fsf@gnu.org>
[not found] ` <<d4fa0a90-631b-444a-abe7-0beed40aecf1@default>
[not found] ` <<83y3h0o9a7.fsf@gnu.org>
2018-05-03 19:41 ` Drew Adams
2018-05-03 20:01 ` Eli Zaretskii
2018-05-03 0:55 Drew Adams
2018-05-03 1:02 ` Noam Postavsky
2018-05-03 1:18 ` Drew Adams
2018-05-03 18:13 ` Eli Zaretskii
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).