unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ryan Yeske <ryan@ryanyeske.com>
To: Dave Barker <kzar@kzar.co.uk>
Cc: Leo Liu <sdl.web@gmail.com>,
	Artur Malabarba <bruce.connor.am@gmail.com>,
	emacs-devel@gnu.org
Subject: Re: PATCH: Add the ability to give rcirc servers an alias name
Date: Thu, 17 Dec 2015 10:40:27 -0800	[thread overview]
Message-ID: <1450377627.2542222.470336049.757BB9A6@webmail.messagingengine.com> (raw)
In-Reply-To: <CAH+bdfRjsKX3jNSM_0vjbOT8KQXOQq-gyxq2MxFGstFbCjXLNQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2270 bytes --]

Thanks for all your patience with this Dave.

I think you are right on both counts.  Creating a helper function
doesn't really work.  And creating multiple connections to one server is
almost never what we would want.

I approve this patch.  What is the next step to getting this merged
into emacs?

Ryan


On Wed, Dec 16, 2015, at 04:29 AM, Dave Barker wrote:

> Thanks for taking a look Ryan.
>
> I agree that `(or server-alias server)` shows up quite frequently.
>
> I don't think creating a function server-or-alias would help however
> as in all cases both the `server` and `server-alias` variables are
> local to the function (`rcirc` and `rcirc-connect`), so we would have
> to pass them through. In other words we would be replacing `(or server-
> alias server)` with something like `(server-or-alias server server-
> alias)`! I could let a new local variable `server-or-alias` in both
> functions if you think that would look nicer?
>
> As for the automatic server alias, I'm undecided. I think _usually_
> the desired behaviour is to just warn the user that server X is
> already connected if she/he attempt to connect again. That's certainly
> how I use rcric, for example I might have only lost connection to one
> of four servers but I would still just call `rcirc` to reconnect to
> that one. I'm struggling to think of many use cases where connecting
> multiple times is required, and perhaps it's good for those that the
> alias needs to be defined manually?
>
> Cheers, Dave.
>
> On Wed, Dec 16, 2015 at 6:16 AM, Ryan Yeske
> <ryan@ryanyeske.com> wrote:
>> __
>> Hi Dave,
>>
>> I got a chance to review this.  It works fine for me here.
>>
>> I think it might be good to replace the several instances of `(or server-
>> alias server)' with calls to a new function `rcirc-server-or-alias`.
>>
>> Also, what about automatically creating this alias when connecting to
>> a server multiple times, without requiring the user to come up with
>> an alias?  Like automatically creating the server name
>> `*irc.freenode.net*' and `*irc.freenode.net<1>'.  This would only
>> happen if disambiguating aliases were not provided via your new
>> mechanism.
>>
>> What do you think?
>>
>>
>> Ryan
>>
>>
>>

[-- Attachment #2: Type: text/html, Size: 3604 bytes --]

  reply	other threads:[~2015-12-17 18:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-07 23:00 PATCH: Add the ability to give rcirc servers an alias name Dave Barker
2015-11-08 17:45 ` Dave Barker
2015-11-08 19:22   ` Artur Malabarba
2015-11-08 18:52     ` Ryan Yeske
2015-11-08 19:01       ` Dave Barker
2015-11-18 11:20         ` Dave Barker
2015-12-13 18:23           ` Dave Barker
2015-12-16  6:16             ` Ryan Yeske
2015-12-16 12:29               ` Dave Barker
2015-12-17 18:40                 ` Ryan Yeske [this message]
2015-12-18 10:46                   ` Dave Barker
2015-12-18 13:34                     ` Artur Malabarba
2015-12-18 14:52                       ` Dave Barker
2016-01-03 23:11                         ` Artur Malabarba
2016-01-07 11:52                           ` Dave Barker
2016-01-07 16:12                             ` Eli Zaretskii
2016-01-07 19:23                               ` Artur Malabarba
2016-01-08  5:57                             ` Richard Stallman
2016-01-08 11:07                               ` Dave Barker
2016-01-09  3:23                                 ` Richard Stallman
2016-01-31 14:05                                   ` Dave Barker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1450377627.2542222.470336049.757BB9A6@webmail.messagingengine.com \
    --to=ryan@ryanyeske.com \
    --cc=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=kzar@kzar.co.uk \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).