-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the regex of content-type in order to accept ANSI color code #149
base: master
Are you sure you want to change the base?
Fix the regex of content-type in order to accept ANSI color code #149
Conversation
The current version of twittering-mode invokes The problem is due to inconsistency of how to determine modes related to output.
I think that replacing the condition expression |
Thank you for your explanations & suggestions. |
@JunpeiAnzai The cause of the problem may be in my code. I am sorry that my investigation of twittering-mode was not enough. Can I ask you to check whether the below patch solves the problem? diff -r 6d7303d1a7e1 twittering-mode.el
--- a/twittering-mode.el Mon May 07 23:21:48 2018 +0900
+++ b/twittering-mode.el Mon Jul 23 11:16:59 2018 +0900
@@ -952,7 +952,9 @@
This function is the same as `start-process' except that SENTINEL must
be invoked when the process is successfully started."
- (let ((proc (apply 'start-process name buffer program args)))
+ (let* (;; Ensure that the process communicates with a pipe instead of a pty.
+ (process-connection-type nil)
+ (proc (apply 'start-process name buffer program args)))
(when (and proc (functionp sentinel))
(if (twittering-process-alive-p proc)
(set-process-sentinel proc sentinel) |
@cvmat The patch works. Besides, curl has a new option |
@multiSnow Thank you for confirmation. I have committed the patch as fbdd433. As you said, this problem can be avoided by the new option |
Since curl version 7.61.0, the keys of response header are shown bold, in other words, response header contains ANSI color code [1].
For example,
\x1b[1mcontent-type\x1b[21m
instead ofcontent-type
.This PR fixes regex for detection of content-type, and resolves #148 .
[1] https://curl.haxx.se/changes.html