From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Elisp to open a line-wrapped URL Date: Mon, 26 Feb 2018 12:02:21 +0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1519621271 1450 195.159.176.226 (26 Feb 2018 05:01:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2018 05:01:11 +0000 (UTC) Cc: help-gnu-emacs To: ckhan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 26 06:01:07 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eqAuQ-0008Q9-E9 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Feb 2018 06:01:06 +0100 Original-Received: from localhost ([::1]:57186 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqAwS-0007jL-UX for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Feb 2018 00:03:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqAvz-0007it-Li for help-gnu-emacs@gnu.org; Mon, 26 Feb 2018 00:02:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqAvy-00081D-Va for help-gnu-emacs@gnu.org; Mon, 26 Feb 2018 00:02:43 -0500 Original-Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:40447) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqAvy-00080x-Pm for help-gnu-emacs@gnu.org; Mon, 26 Feb 2018 00:02:42 -0500 Original-Received: by mail-oi0-x231.google.com with SMTP id c12so9757695oic.7 for ; Sun, 25 Feb 2018 21:02:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=uNdtDxkvBecH3mh6zksuNKrjZ/JdXu+cWyd1WQxcuPo=; b=BSKOPsk4Tc3OleHg7HsqCKxsCeCejUJPnnhsvWdErzHJ8m6PRpddmizXSenNTbmWGq I78zZzapbCIzDdrXD4O2ra5gCkXY3b9Bgfk1ei4uO+UP/WoDL81XsgUNyw3oOpdoTpRs ARK8mPRtCIH4ymjqj6emvzsu7mxEF8GV2lTeYzdnKFByMAUl2dVUfp/iEAbJ77fsAyQ6 Okz4N06TLaXeEPXy1GL/VDQkc70gztMllusvC1qsDN9vLupRq7aiA6vu9Is8pBN5NhBD GPmSDoWKV0flfTcpcMhouy5l39aokA2r59/NZxvSJ00EYpas9TseKY32MS1WzoDmwS5V D/nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=uNdtDxkvBecH3mh6zksuNKrjZ/JdXu+cWyd1WQxcuPo=; b=VUKUoEocQs3ncOyoQ7Uz1vMkRyRWGWWv/lP7t34QzEvNTG1XbKcF/U9I3dmg6oKI0S bfngot+fntO8H00g+wwY9Za9wittA6ZzJluvZMSOdaZxe923Jx+D43gqSSXc17fNfdgc wUqSZEbQyVyu+dxb7uPYb53b5oOsrvEojThu5sS7Fy+S6siYXT3FFMq336bWVJV3I4G4 fyTfi5YKLzv7ZdcCxhrIDpM8wgOolF/3et0OnyxdJlWjwqcr5r1jqmYhw6nXx6jdfLve TwwZBZa2jzsDmUL/RdL4nuw79d5J2u3EZHY4Q/Q67C9wDWcomj6p6LHthVwueJMZCqWr QZvA== X-Gm-Message-State: APf1xPCMTjOQnvo17RlVKj+SlTlZ5ZVCBLgsoIQ75TOAHZFfTBr9HpHj oCvdT/VL0D4YBsW2mqMkbwfm85At9OpQs0czEjU= X-Google-Smtp-Source: AG47ELtCFwhwNrl9WEYv1SQUKTCTU3SkQahEBcKk06Qsm65/1YCimGL90rBknDaWx6mzEgeWBIDfg+z0LUbMCGH+BSM= X-Received: by 10.202.88.86 with SMTP id m83mr5691498oib.221.1519621361648; Sun, 25 Feb 2018 21:02:41 -0800 (PST) Original-Received: by 10.74.211.77 with HTTP; Sun, 25 Feb 2018 21:02:21 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: LyhMZ0XHXa67WKD3oMnuh2POeQ0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::231 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:116088 Archived-At: On Sun, Feb 25, 2018 at 6:53 AM, ckhan wrote: > Say I like wrapping my code at 80cols. > But say I also occasionally include URLs in comments . > > So I might wind up with something like this > > # See also Google Drive generated py docs: > # https://developers.google.com/resources/api-libraries/ > # documentation/drive/v2/python/latest/ > # drive_v2.permissions.html#insert > > How do I teach emacs to open the URL that is near my cursor, even though = it's split across lines with comment markers in between? You might be able to solve this for yourself using Emacs. What about other people who read your code: using other editors? =E2=80=A6i= n a mail client? =E2=80=A6on the web? Do them a favor and keep your URLs unwrapped.