Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ things like frame morphing, window moving, frame reversing and other operations.
## Getting Workgroups

The latest version of Workgroups can always be found
[here](http://github.com/tlh/workgroups.el). You can clone the repo by running:
[here](http://github.com/workgroups/workgroups.el). You can clone the repo by running:

git clone git://github.com/tlh/workgroups.el
git clone git://github.com/workgroups/workgroups.el

Workgroups is being actively developed. Later on, when you want to update to
the latest:
Expand Down Expand Up @@ -366,13 +366,13 @@ To bring up a help buffer listing all the commands and their bindings, hit
## Feature Requests

Feature requests, like other parameters you'd like Workgroups to persist, should
be added to the [wiki](http://github.com/tlh/workgroups.el/wiki)
be added to the [wiki](http://github.com/workgroups/workgroups.el/wiki)


## Reporting Bugs

If you encounter a bug in Workgroups, please file an issue
[here](http://github.com/tlh/workgroups.el/issues). If possible, please include
[here](http://github.com/workgroups/workgroups.el/issues). If possible, please include
a stack-trace and the value of `wg-list`.


Expand Down
16 changes: 11 additions & 5 deletions workgroups.el
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ EWIN should be an Emacs window object."
`((type . window)
(edges . ,(window-edges ewin))
(bname . ,(buffer-name))
(fname . ,(buffer-file-name))
(fname . ,(or (buffer-file-name) default-directory))
(point . ,(wg-window-point ewin))
(mark . ,(mark))
(markx . ,mark-active)
Expand Down Expand Up @@ -1003,7 +1003,7 @@ Return the buffer if it was found, nil otherwise."
(wg-abind win (fname bname)
(cond ((and fname (file-exists-p fname))
(find-file fname)
(rename-buffer bname)
(rename-buffer bname t)
(current-buffer))
((wg-awhen (get-buffer bname) (switch-to-buffer it)))
(t (switch-to-buffer wg-default-buffer) nil))))
Expand Down Expand Up @@ -1471,7 +1471,11 @@ Query to overwrite if a workgroup with the same name exists."
(defun wg-read-workgroup (&optional noerror)
"Read a workgroup with `wg-completing-read'."
(wg-get-workgroup
'name (wg-completing-read "Workgroup: " (wg-names))
'name (wg-completing-read "Workgroup: "
;; move previous workgroup on front of choices
(wg-aif (wg-previous-workgroup t)
(wg-move-elt (wg-name it) (wg-names) 0)
(wg-names)))
noerror))

(defun wg-read-buffer-name ()
Expand Down Expand Up @@ -2048,13 +2052,15 @@ The string is passed through a format arg to escape %'s."
(defun wg-help ()
"Display Workgroups' help buffer."
(interactive)
(with-output-to-temp-buffer "*workroups help*"
(let ((wg-help-buffer-name "*workgroups help*"))
(with-output-to-temp-buffer wg-help-buffer-name
(princ "Workgroups' keybindings:\n\n")
(dolist (elt (wg-partition wg-help 2))
(wg-dbind (cmd help-string) elt
(princ (format "%15s %s\n"
(substitute-command-keys cmd)
help-string))))))
help-string)))))
(pop-to-buffer (get-buffer wg-help-buffer-name))))


;;; keymap
Expand Down