emacs-circe / circe

Circe, a Client for IRC in Emacs
GNU General Public License v3.0
395 stars 51 forks source link

Don't log tracking-ignored-buffers #313

Open vyp opened 7 years ago

vyp commented 7 years ago

So I'm trying to selectively log only buffers that are tracked by doing the following, but it's not working, the ignored buffers are still being logged. 😞 I'm not sure what I'm doing wrong. 😕

(setq tracking-ignored-buffers
      (mapcar (lambda (channel) (list channel 'circe-highlight-nick-face))
              '("#emacs$" "#haskell$" "irc.freenode.net" "nickserv"
                "#vim$")))

(load "lui-logging" nil t)

(defun my/lui-enable-tracked-logging ()
  (unless (tracking-ignored-p (current-buffer) '(circe-highlight-nick-face))
    (enable-lui-logging)))

(add-hook 'lui-mode-hook 'my/lui-enable-tracked-logging)

So just to clarify for example. #emacs, #haskell, irc.freenode.net:6667, nickserv etc. are all still being logged.

jorgenschaefer commented 7 years ago

Hello, and sorry for the late reply. I can confirm that this is broken, but I do not quite understand why. This should work. :-(

vyp commented 7 years ago

Oh, no sweat about the late reply, it's not that late. :+1: And I was busy anyway! :stuck_out_tongue_closed_eyes: