Giter Site home page Giter Site logo

frame-bufs's People

Contributors

alpaker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

emacsmirror

frame-bufs's Issues

Update documentation to provide a workound for current versions of Emacs.

The workaround to use Frame-Bufs with a current version of Emacs is as follows: obtain source for Emacs; remove contents of buff-menu.el (so that it doesn't get hard-wired into the executable during the build); build the application; obtain an older version of buff-menu.el that works with Frame-Bufs (tell users about specific Emacs version numbers that work with Frame-Bufs and provide a link to the download); put a provide statement at the bottom of the old version of buff-menu.el (place it in the load path) and then require it when loading Emacs.

[patch] emacs 23 (and 22) compatibility

Some of the machines I use emacs on only have version 23, and running the latest frame-bufs version there caused "Wrong type argument: window-live-p, nil" errors all over the place.

I fixed it by revising my fix for #2, simply replacing nil with (selected-window) on line 538.

Just for fun I tested that version with the emacs 22.1.1 shipped with OS X, and it even worked there.

diff --git a/frame-bufs.el b/frame-bufs.el
index 43dcd9a..ebb57f1 100644
--- a/frame-bufs.el
+++ b/frame-bufs.el
@@ -180,8 +180,8 @@

 ;;; Code:

-(when (< emacs-major-version 24)
-  (error "Frame-Bufs requires version 24 or later"))
+(when (< emacs-major-version 22)
+  (error "Frame-Bufs requires version 22 or later"))

 ;;; ---------------------------------------------------------------------
 ;;; User Options
@@ -535,7 +535,7 @@ variables `frame-bufs-associated-buffer-bit', `frame-bufs-use-buffer-predicate',
 ;;; ---------------------------------------------------------------------

 (defadvice select-window (after frame-bufs)
-  (frame-bufs--add-buffer (window-buffer) (window-frame nil)))
+  (frame-bufs--add-buffer (window-buffer) (window-frame (selected-window))))

 ;; Called by window-configuration-change-hook to update the associated-buffer
 ;; list.

Question: Frame-bufs operation with pop-up frames.

From the commentary section of frame-bufs.el
;; It is not
;; compatible with non-nil values of `pop-up-frames'.

I use the icicles library one-on-one which provides a frame oriented user experience, along with a stand alone mini buffer and sets pop-up-frames to t.

What issues are caused by setting non-nil values of pop-up frames?

Thanks
Mike

Wrong number of arguments: window-frame, 0

Enabling frame-bufs in emacs 24.3.1 on OSX resulted in the above error message on startup and when trying to complete a buffer name.

Adding a nil argument to window-frame in the defadvice on line 538 seems to have solved the problem.

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.