paepcke%hplap@HPLABS.HP.COM (Andreas Paepcke) (09/30/89)
I want a function of mine called whenever a GnuEmacs user enters a new buffer. I have been looking at the various available hooks, but can't find one that is suitable. The best would be a function *list*, so that I don't step on other people's toes. The functions would have to be called with the new buffer as an argument (or have some other way of finding the new buffer). Reason: I have developed a softkey facility that handles toggling softkeys. One such toggle is `buffer-read-only'. If a user pushes it, a little star appears in the softkey label and the buffer is made `read-only'. BUT when he switches to another buffer, I don't get a chance to update that label which at that time conveys incorrect information. I have come across several other cases where a switch-buffer-hook would be very important to have. Does anyone have a suggestion? Thanks, Andreas