Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
64a67db3
Commit
64a67db3
authored
Oct 02, 2014
by
Kelvin White
Browse files
Use local variable to determine if buffers should be renamed
Fixes: debbugs:18300
parent
3af2917c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
lisp/erc/ChangeLog
lisp/erc/ChangeLog
+5
-0
lisp/erc/erc.el
lisp/erc/erc.el
+6
-1
No files found.
lisp/erc/ChangeLog
View file @
64a67db3
2014-10-02 Kelvin White <kwhite@gnu.org>
* erc.el (erc-rename-buffer-p): When set to t buffers will be
renamed to the current irc network.
(erc-format-target-and/or-network): Use `erc-rename-buffer-p' when
renaming buffers.
* erc-ring.el (erc-input-ring-setup): Fixes Bug #18599
2014-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
...
...
lisp/erc/erc.el
View file @
64a67db3
...
...
@@ -1792,6 +1792,10 @@ buffer rather than a server buffer.")
"Used to keep track of how many times an attempt at changing nick is made.")
(make-variable-buffer-local 'erc-nick-change-attempt-count)
(defvar erc-rename-buffer-p nil
"When this is set to t, buffers will be renamed to network name if available")
(make-variable-buffer-local 'erc-rename-buffer-p)
(defun erc-migrate-modules (mods)
"Migrate old names of ERC modules to new ones."
;; modify `transforms' to specify what needs to be changed
...
...
@@ -6227,7 +6231,8 @@ shortened server name instead."
"@" network-name))
((and network-name
(not (get-buffer network-name)))
(rename-buffer network-name)
(when erc-rename-buffer-p
(rename-buffer network-name))
network-name)
(t (buffer-name (current-buffer))))))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment