Giter VIP home page Giter VIP logo

Comments (4)

djcb avatar djcb commented on August 27, 2024

Hmm... I think the advice-code was a mistake, and as you've noticed it's rather error-prone for mu4e to have such code-paths since I won't notice any problem until it's too late.

I see two ways:

  • somehow ensure that message-pop-to-buffer honors display-alist / display-buffer
  • if that's not (yet) possible, document the add-advice;

Looking at the current implementation, it seems message-pop-to-buffer does support a switch-function (and I guess display-buffer could be used for that)... but we don't control how various function call message-pop-to-buffer. So perhaps lobby the Gnus people to make this configurable, don't think I want mu4e trying to hack around that.

Or perhaps I'm totally wrong and am overlooking some simple solution :)

from mu.

malb avatar malb commented on August 27, 2024

Maybe a slightly less brittle option would be to cl-letf message-pop-to-buffer to mu4e--fake-pop-to-buffer?

(cl-letf (((symbol-function 'message-pop-to-buffer) mu4e--fake-pop-to-buffer))           

from mu.

djcb avatar djcb commented on August 27, 2024

Yeah, that's indeed slightly less brittle, but the add-advice has the advantage that it can be set outside mu4e.

from mu.

djcb avatar djcb commented on August 27, 2024

Anyway, I brought back mu4e--fake-pop-to-buffer, since all the other non-default mu4e-compose-switch such frame and window also had problems without. Guess we'll have to live with it...

from mu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.