Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Renamed rudel-unpublish-buffer to rudel-unsubscribe

* rudel.el (rudel-attach-to-buffer): changed
  rudel-unpublish-buffer to rudel-unsubscribe
  (rudel-detach-from-buffer): likewise
  (rudel-unsubscribe): likewise
* rudel-mode.el (rudel-minor-keymap): likewise
* rudel-interactive.el (rudel-allocate-buffer-clear-existing):
  likewise
  • Loading branch information...
commit beca8308404d754540252a04454356dba8ce3369 1 parent 7d37e44
@holtzermann17 holtzermann17 authored
Showing with 19 additions and 8 deletions.
  1. +10 −1 ChangeLog
  2. +1 −1  rudel-interactive.el
  3. +1 −1  rudel-mode.el
  4. +7 −5 rudel.el
View
11 ChangeLog
@@ -1,4 +1,13 @@
-2010-07-25 Joseph Corneli <jac2349@dhcp-pub-248.open.pub>
+2010-07-25 Joseph Corneli <holtzermann17@gmail.com>
+
+ Renamed rudel-unpublish-buffer to rudel-unsubscribe
+ * rudel.el (rudel-attach-to-buffer): changed
+ rudel-unpublish-buffer to rudel-unsubscribe
+ (rudel-detach-from-buffer): likewise
+ (rudel-unsubscribe): likewise
+ * rudel-mode.el (rudel-minor-keymap): likewise
+ * rudel-interactive.el (rudel-allocate-buffer-clear-existing):
+ likewise
Updates to INSTALL file.
* INSTALL: Rearranged and updated instructions so they make more
View
2  rudel-interactive.el
@@ -205,7 +205,7 @@ sources for a matching password entry."
(error "Buffer `%s' already attached to a document" name)))
;; Delete buffer contents; maybe detach buffer first.
(when (rudel-buffer-has-document-p buffer)
- (rudel-unpublish-buffer buffer))
+ (rudel-unsubscribe buffer))
(with-current-buffer buffer
(erase-buffer)))
(setq buffer (get-buffer-create name)))
View
2  rudel-mode.el
@@ -556,7 +556,7 @@ line publish state mode; otherwise, turn it off."
[ "Publish current Buffer" rudel-publish-buffer
(and rudel-current-session
(not (rudel-buffer-has-document-p))) ]
- [ "Unpublish current Buffer" rudel-unpublish-buffer
+ [ "Unsubscribe from current Buffer" rudel-unpublish-buffer
(rudel-buffer-has-document-p) ]
[ "Subscribe to Document" rudel-subscribe
rudel-current-session ]
View
12 rudel.el
@@ -465,7 +465,7 @@ collaborative editing session can subscribe to."
;; Add a handler to the kill-buffer hook to unsubscribe from the
;; document when the buffer gets killed.
(add-hook 'kill-buffer-hook
- #'rudel-unpublish-buffer
+ #'rudel-unsubscribe
nil t)
;;
@@ -486,7 +486,7 @@ Do nothing, if THIS is not attached to any buffer."
(with-current-buffer buffer
;; Remove our handler function from the kill-buffer hook.
(remove-hook 'kill-buffer-hook
- #'rudel-unpublish-buffer
+ #'rudel-unsubscribe
t)
;; Remove our handler function from the after-change hook.
@@ -1046,9 +1046,11 @@ If BUFFER is nil, the current buffer is used."
)
;;;###autoload
-(defun rudel-unpublish-buffer (&optional buffer)
- "Deny peers access to BUFFER in a collaborative editing session.
-If BUFFER is nil, the current is used."
+(defun rudel-unsubscribe (&optional buffer)
+ "Detaches BUFFER from the collaborative editing session.
+The most recent version of the content will remain in the
+buffer but not be affected by future changes from other
+peers. If BUFFER is nil, the current is used."
(interactive)
;; Make sure we have a session.
Please sign in to comment.
Something went wrong with that request. Please try again.