bmag / emacs-purpose

Manage Windows and Buffers According to Purposes
GNU General Public License v3.0
498 stars 23 forks source link

purpose--alist not reset when display-buffer called recursively #140

Open bmag opened 5 years ago

bmag commented 5 years ago

When display-buffer is called recursively, the value of purpose--alist in the outer call is used in the inner call as well, instead of not affecting it. Possible bugs include infinite recursion if the action argument of display-buffer contains a display function that calls switch-to-buffer (which in itself is wrong coding, but still can happen), seen in #139.