summaryrefslogtreecommitdiff
path: root/lisp/cus-edit.el
diff options
context:
space:
mode:
authorF. Jason Park <jp@neverwas.me>2021-06-14 23:40:45 -0700
committerF. Jason Park <jp@neverwas.me>2022-06-30 15:03:26 -0700
commitde53d18a4d81e8b49d1dfecaf5481382a0ad8d08 (patch)
treebbc557e6a8dd364087c492c1b7972461841a6290 /lisp/cus-edit.el
parent873499ce065144682852643b7d0e04cd45f7eac3 (diff)
downloademacs-de53d18a4d81e8b49d1dfecaf5481382a0ad8d08.tar.gz
emacs-de53d18a4d81e8b49d1dfecaf5481382a0ad8d08.tar.bz2
emacs-de53d18a4d81e8b49d1dfecaf5481382a0ad8d08.zip
Don't set erc-server-announced-name unless known
* lisp/erc/erc.el (erc-open): whenever this function is called, the variable `erc-server-announced-name' may be set locally in the calling server buffer. However, if that buffer's dialed server matches that of the one being created, the announced name is copied over on faith. But there's no guarantee that the name will match the one ultimately emitted by the server during its introductory burst. Beyond potentially causing confusion in protocol logs, this behavior may complicate debugging efforts. Setting the variable to nil helps ensure a consistent environment when preparing a buffer for all newly dialed connections. This commit also simplifies the setting of `erc-server-connected', which is always nil when connecting and vice-versa.
Diffstat (limited to 'lisp/cus-edit.el')
0 files changed, 0 insertions, 0 deletions