lokedhs / gnus-outlook-style

Outlook style quoting for Gnus and mu4e
18 stars 3 forks source link

Unable to disable outlook-style for specific groups #12

Open amittendulkar opened 8 years ago

amittendulkar commented 8 years ago

I don't have onekey and also I wanted to disable outlook-style only for specific groups (especially newsgroups). So I put the following in .gnus.el

(setq gnus-posting-styles '((".*gmane.*" (eval (my--set-style-traditional)))))

However, I got the following message while following a sample article on one of the gmane newsgroup. Am I doing something wrong?

Also in the message composition buffer I get the outlook-style section without any original post content. message-position-on-field: Search failed: "^--text follows this line--$"

lokedhs commented 8 years ago

I don't use the dynamic selection myself. The instructions on how to do that were written by @mgalgs. Perhaps he can provide more information?

mgalgs commented 8 years ago

However, I got the following message while following a sample article on one of the gmane newsgroup. Am I doing something wrong?

What's the actual error message?

amittendulkar commented 8 years ago

This is the message I got (captured from the Messages buffer),

message-position-on-field: Search failed: "^--text follows this line--$"

amittendulkar commented 8 years ago

Here is the detailed error message (this time I configured my gmail Inbox for traditional style email message),

Debugger entered--Lisp error: (wrong-type-argument symbolp (quote outlook-style-inhibit))
  make-local-variable((quote outlook-style-inhibit))
  (set (make-local-variable (quote (quote outlook-style-inhibit))) t)
  my--set-style-traditional()
  eval((my--set-style-traditional))
  gnus-configure-posting-styles("nnimap+gmail:INBOX")
  #[nil "\301!\207" [gnus-setup-message-group gnus-configure-posting-styles] 2]()
  run-hooks(change-major-mode-after-body-hook text-mode-hook message-mode-hook)
  apply(run-hooks (change-major-mode-after-body-hook text-mode-hook message-mode-hook))
  run-mode-hooks(message-mode-hook)
  message-mode()
  message-pop-to-buffer("*unsent wide reply to Chen Bin*" nil)
  message-reply(nil t)
  message-wide-reply(nil)
  ad-Orig-gnus-post-news(nil "nnimap+gmail:INBOX" [15195 "Re: [redguardtoo/emacs.d] Not able to edit org table cell with C-c ` (backquote) (#473)" "Chen Bin <notifications@github.com>" #("Tue, 26 Jul 2016 03:40:43 -0700" 0 1 (gnus-time (22423 15915))) "<redguardtoo/emacs.d/issues/473/235232184@github.com>" "<redguardtoo/emacs.d/issues/473@github.com>" 4748 5 nil ((Cc . "Amit Tendulkar <amit.tendulkar@gmail.com>, Author <author@noreply.github.com>") (To . "\"redguardtoo/emacs.d\" <emacs.d@noreply.github.com>"))] "*Article nnimap+gmail:INBOX*" (15195) nil nil)
  gnus-post-news(nil "nnimap+gmail:INBOX" [15195 "Re: [redguardtoo/emacs.d] Not able to edit org table cell with C-c ` (backquote) (#473)" "Chen Bin <notifications@github.com>" #("Tue, 26 Jul 2016 03:40:43 -0700" 0 1 (gnus-time (22423 15915))) "<redguardtoo/emacs.d/issues/473/235232184@github.com>" "<redguardtoo/emacs.d/issues/473@github.com>" 4748 5 nil ((Cc . "Amit Tendulkar <amit.tendulkar@gmail.com>, Author <author@noreply.github.com>") (To . "\"redguardtoo/emacs.d\" <emacs.d@noreply.github.com>"))] "*Article nnimap+gmail:INBOX*" (15195) nil nil)
  gnus-summary-followup((15195) nil)
  ad-Orig-gnus-summary-followup-with-original(nil nil)
  gnus-summary-followup-with-original(nil)
  ad-Orig-call-interactively(gnus-summary-followup-with-original nil nil)
  (with-no-warnings (ad-Orig-call-interactively function record-flag keys))
  (setq ad-return-value (with-no-warnings (ad-Orig-call-interactively function record-flag keys)))
  (let ((ido-ubiquitous-next-override override)) (setq ad-return-value (with-no-warnings (ad-Orig-call-interactively function record-flag keys))))
  (ido-ubiquitous-with-override override (setq ad-return-value (with-no-warnings (ad-Orig-call-interactively function record-flag keys))))
  (let* ((cmd function) (override (ido-ubiquitous-get-command-override cmd))) (when override (ido-ubiquitous--debug-message "Using override `%s' for command `%s'" override cmd)) (ido-ubiquitous-with-override override (setq ad-return-value (with-no-warnings (ad-Orig-call-interactively function record-flag keys)))))
  (let (ad-return-value) (let* ((cmd function) (override (ido-ubiquitous-get-command-override cmd))) (when override (ido-ubiquitous--debug-message "Using override `%s' for command `%s'" override cmd)) (ido-ubiquitous-with-override override (setq ad-return-value (with-no-warnings (ad-Orig-call-interactively function record-flag keys))))) ad-return-value)
  call-interactively(gnus-summary-followup-with-original nil nil)
lokedhs commented 8 years ago

That's weird. What version of Emacs are you using?

amittendulkar commented 8 years ago

Upon running M-x emacs-version I am getting the below.

GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-17 on lgw01-04, modified by Debian

By the way I upgraded from Ubuntu 14.04 to 16.04 after logging the above issue and still getting the same error. The above version string is upgrade the distro upgrade.