From unknown Sun Jun 15 13:00:21 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#27056 <27056@debbugs.gnu.org> To: bug#27056 <27056@debbugs.gnu.org> Subject: Status: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number Reply-To: bug#27056 <27056@debbugs.gnu.org> Date: Sun, 15 Jun 2025 20:00:21 +0000 retitle 27056 25.2; goto-line doesn't default to current line when used int= eractively when the cursor isn't over a number reassign 27056 emacs submitter 27056 kwc3iywb@vfemail.net severity 27056 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed May 24 11:30:15 2017 Received: (at submit) by debbugs.gnu.org; 24 May 2017 15:30:16 +0000 Received: from localhost ([127.0.0.1]:36371 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDYEp-0003IL-Bf for submit@debbugs.gnu.org; Wed, 24 May 2017 11:30:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDWHd-0000Dd-Ng for submit@debbugs.gnu.org; Wed, 24 May 2017 09:25:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDWHX-0005E6-B5 for submit@debbugs.gnu.org; Wed, 24 May 2017 09:24:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34930) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dDWHX-0005E2-77 for submit@debbugs.gnu.org; Wed, 24 May 2017 09:24:55 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDWHV-0000PS-Pj for bug-gnu-emacs@gnu.org; Wed, 24 May 2017 09:24:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDWHR-0005D0-Qc for bug-gnu-emacs@gnu.org; Wed, 24 May 2017 09:24:53 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:29692 helo=vfemail.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dDWHR-0005CX-IG for bug-gnu-emacs@gnu.org; Wed, 24 May 2017 09:24:49 -0400 Received: (qmail 19152 invoked by uid 89); 24 May 2017 13:24:43 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 24 May 2017 13:24:39 -0000 Received: (qmail 84124 invoked by uid 89); 24 May 2017 11:19:31 -0000 Received: by simscan 1.4.0 ppid: 84122, pid: 84123, t: 0.0023s scanners:none Received: from unknown (HELO smtp101-2.vfemail.net) (172.16.100.61) by FreeQueue with SMTP; 24 May 2017 11:19:31 -0000 Received: (qmail 13270 invoked by uid 89); 24 May 2017 11:19:31 -0000 Received: by simscan 1.4.0 ppid: 13241, pid: 13266, t: 2.3110s scanners:none Received: from unknown (HELO vfemail.net) (a3djM2l5d2JAdmZlbWFpbC5uZXQ=@176.67.168.210) by 172.16.100.61 with ESMTPA; 24 May 2017 11:19:29 -0000 Date: Wed, 24 May 2017 11:19:37 +0000 From: kwc3iywb@vfemail.net To: bug-gnu-emacs@gnu.org Subject: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number Message-ID: <20170524111937.GA17052@vfemail.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Bn2rw/3z4jIqBvZU" Content-Disposition: inline User-Agent: Mutt/1.8.2 (2017-04-18) X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 24 May 2017 11:30:13 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --Bn2rw/3z4jIqBvZU Content-Type: multipart/mixed; boundary="sm4nu43k4a2Rpi4c" Content-Disposition: inline --sm4nu43k4a2Rpi4c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.10) of 2017-04-22 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11903000 Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES Important settings: value of $LANG: C locale-coding-system: nil Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns help-mode easymenu cl-loaddefs pcase cl-lib mail-prsvr mail-utils time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 86260 8956) (symbols 48 19773 0) (miscs 40 46 172) (strings 32 14306 4139) (string-bytes 1 409031) (vectors 16 11746) (vector-slots 8 430626 3614) (floats 8 166 79) (intervals 56 222 112) (buffers 976 18)) When I press M-x goto-line, it asks me for a line number. There used to be a default line number, which is the current line number before a5dcc929862f6727c71db5e45d8750f8c322c53b. It looks like he forgot to remove the empty elements when calling `read-from-minibuffer' from `read-number'. I've included the patch I used to fix this problem. It's not obvious that `read-number' should be responsible for removing nil in DEFAULT, it's not documented, and I didn't find any code besides `goto-line' that relies on this behavior after grepping all the lisp files in emacs' source, so I rewrote `read-number', and made `goto-line' responsible for removing nils. By the way, when looking for uses of `read-number', I found in lisp/tar-mode.el, in lines 1023 and 1051, conversion from integer to string, which seemed unnecessary to me. >(read-number > "New UID number: " > (format "%s" (tar-header-uid descriptor))) >(read-number > "New GID number: " > (format "%s" (tar-header-gid descriptor))) --sm4nu43k4a2Rpi4c Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-index-on-master-bf4f69ab6d-vc-hg.el-Silence-byte-com.patch" --sm4nu43k4a2Rpi4c-- --Bn2rw/3z4jIqBvZU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwDlXGhappiWTpfDDYMrq6KZEr9sFAlklbEMACgkQYMrq6KZE r9t1qQ//YMXq4FT59RaqX5oWmBOEX7muw5rA1Tg2axN3UMR4OzEma+0Ee9zm4yYU nAuFqnS6kxnRfcZvzLig9jCYVRgCJbMmBu+y8MFPkKopZh6tr53FnAZB+phickiW fz6wr9jG5sMbsgzwcX4ATq86l6UEd3UarMupkqfTYRP02wQa1Zb2GpH+rCY/H+5s wY4OGDCxLCpcNrbzSXIxm/AVc3I3qG3yYQiMNhDjeJmRVdvfwadON9Zpq0joNsvS jSAmXnu3iQplNChlMw39mARaAr2gg3Cf2d7l13nowxsebqBgxH05WohVB9Ma6ow8 jFyNAAIvpSs39TtbpRan+enC/vb3OLTCDuy2LWGlHD5tS8wPAB9VSE10yytKSewG OmRwPPht0tv6UnBYfuS2v8m0VYPsR7FuzQ3trVicAlhSGBLXcStJO9zmq1B5Zc9b gs+r3skTiygP9QfVg4qsfHtBLR+zWLimRIyLsUNVXLm9ZKjlMQHv3BKO4zlPgGtt hXXwwe01JRFaVUH6xD/5SZqWwEFIFogXFsoKhvqORQPR2x4XxGce1QdCYhvEv7b4 MI7uiYIq5TUfHYEu6FE7vujvTgejDxoaM8qnMOFey4seV7KxPtTfHIN0vQWR1Eio o3iZjIEcCMfR4ISYhYC8kdjzvIz35qJLZviP3AoeAL5KaHUuS9o= =yrBQ -----END PGP SIGNATURE----- --Bn2rw/3z4jIqBvZU-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 24 14:03:27 2017 Received: (at 27056) by debbugs.gnu.org; 24 May 2017 18:03:27 +0000 Received: from localhost ([127.0.0.1]:36546 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDad5-00046O-9O for submit@debbugs.gnu.org; Wed, 24 May 2017 14:03:27 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60535) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDad4-00045x-2D for 27056@debbugs.gnu.org; Wed, 24 May 2017 14:03:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDacy-0008Lu-4w for 27056@debbugs.gnu.org; Wed, 24 May 2017 14:03:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDacv-0008II-7H; Wed, 24 May 2017 14:03:17 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dDacu-00061s-Iq; Wed, 24 May 2017 14:03:16 -0400 From: Glenn Morris To: kwc3iywb@vfemail.net Subject: Re: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number References: <20170524111937.GA17052@vfemail.net> X-Spook: propaganda halcon Aldergrove Montenegro Conventional X-Ran: 6r!bs,>e~GK6\#9E]H4oCH<|9`ZZ8hHQ)dm;51D+|Im00_^@$dCZv"trt,m4ARq-EWy3Sm X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Wed, 24 May 2017 14:03:16 -0400 In-Reply-To: <20170524111937.GA17052@vfemail.net> (kwc3iywb@vfemail.net's message of "Wed, 24 May 2017 11:19:37 +0000") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27056 Cc: 27056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) kwc3iywb@vfemail.net wrote: > `read-number'. I've included the patch I used to fix this problem. It looks to me like you attached an empty file? From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 11:31:40 2017 Received: (at 27056) by debbugs.gnu.org; 25 May 2017 15:31:40 +0000 Received: from localhost ([127.0.0.1]:37806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDujk-0002Sc-Cp for submit@debbugs.gnu.org; Thu, 25 May 2017 11:31:40 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:25715 helo=vfemail.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDshA-0007kL-FT for 27056@debbugs.gnu.org; Thu, 25 May 2017 09:20:53 -0400 Received: (qmail 68857 invoked by uid 89); 25 May 2017 13:20:45 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 25 May 2017 13:20:43 -0000 Received: (qmail 17634 invoked by uid 89); 25 May 2017 02:29:48 -0000 Received: by simscan 1.4.0 ppid: 17631, pid: 17633, t: 0.0032s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 25 May 2017 02:29:48 -0000 Received: (qmail 14409 invoked by uid 89); 25 May 2017 02:29:48 -0000 Received: by simscan 1.4.0 ppid: 14370, pid: 14403, t: 1.0306s scanners:none Received: from unknown (HELO vfemail.net) (a3djM2l5d2JAdmZlbWFpbC5uZXQ=@195.154.217.29) by 172.16.100.62 with ESMTPA; 25 May 2017 02:29:47 -0000 Date: Thu, 25 May 2017 02:29:55 +0000 From: kwc3iywb@vfemail.net To: Glenn Morris Subject: Re: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number Message-ID: <20170525022955.GA2859@vfemail.net> References: <20170524111937.GA17052@vfemail.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yEPQxsgoJgBvi8ip" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27056 X-Mailman-Approved-At: Thu, 25 May 2017 11:31:37 -0400 Cc: 27056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --yEPQxsgoJgBvi8ip Content-Type: multipart/mixed; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 24, 2017 at 02:03:16PM -0400, Glenn Morris wrote: > kwc3iywb@vfemail.net wrote: > > > `read-number'. I've included the patch I used to fix this problem. > > It looks to me like you attached an empty file? > Sorry. Here's the patch. --dDRMvlgZJXvWKvBx Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Make-goto-line-default-to-current-line-when-cursor-i.patch" Content-Transfer-Encoding: quoted-printable =46rom 0317935b8af1701de3feb8d0469e5aea17b4f38a Mon Sep 17 00:00:00 2001 =46rom: kwc3iywb Date: Thu, 25 May 2017 02:07:18 +0000 Subject: [PATCH] Make goto-line default to current line when cursor isn't o= ver a number * lisp/simple.el (goto-line): When used interactively, default to current line if the cursor isn't over a number, and remain defaulting to the number under the cursor and putting the current line in the history when the cursor is over a number. * lisp/subr.el (read-number): Add in its description that it can accept a list of default values. --- lisp/simple.el | 4 +++- lisp/subr.el | 28 +++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index ea3a495fbc..bd865288b1 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1157,7 +1157,9 @@ rather than line counts." ""))) ;; Read the argument, offering that number (if any) as default. (list (read-number (format "Goto line%s: " buffer-prompt) - (list default (line-number-at-pos))) + (if default + (list default (line-number-at-pos)) + (line-number-at-pos))) buffer)))) ;; Switch to the desired buffer, one way or another. (if buffer diff --git a/lisp/subr.el b/lisp/subr.el index 8d5d2a779c..d9cb62b2db 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2312,25 +2312,23 @@ by doing (clear-string STRING)." (defun read-number (prompt &optional default) "Read a numeric value in the minibuffer, prompting with PROMPT. DEFAULT specifies a default value to return if the user just types RET. -The value of DEFAULT is inserted into PROMPT. +The value of DEFAULT is inserted into PROMPT. DEFAULT can also be a +list of numbers, in which case all the numbers are available in the +history, and the first is the default. This function is used by the `interactive' code letter `n'." + (if (not (listp default)) + (setq default (list default))) (let ((n nil) - (default1 (if (consp default) (car default) default))) - (when default1 - (setq prompt - (if (string-match "\\(\\):[ \t]*\\'" prompt) - (replace-match (format " (default %s)" default1) t t prompt 1) - (replace-regexp-in-string "[ \t]*\\'" - (format " (default %s) " default1) - prompt t t)))) + (default1 (car default)) + (default-str (mapcar 'number-to-string default))) + (when default + (cl-assert (string-match "\\(\\)\\(:[[:blank:]]*\\)?\\'" prompt)) + (setq prompt (replace-match + (format " (default %s)" (car default-str)) + t t prompt 1))) (while (progn - (let ((str (read-from-minibuffer - prompt nil nil nil nil - (when default - (if (consp default) - (mapcar 'number-to-string (delq nil default)) - (number-to-string default)))))) + (let ((str (read-string prompt nil nil default-str))) (condition-case nil (setq n (cond ((zerop (length str)) default1) --=20 2.12.2 --dDRMvlgZJXvWKvBx-- --yEPQxsgoJgBvi8ip Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwDlXGhappiWTpfDDYMrq6KZEr9sFAlkmQaEACgkQYMrq6KZE r9suqA/8CVOt8vbK9pNDQBPtQFr7anpXGPsnc2ygWmLVEBEXEOGIGTo7eUI2ttCR 0j1EQ3nJnvgLESUl3m3ZolndpYt2d/xh18ZLie1DhzjChUl3WQtpPYez//VqtJPp fiMlDbO16vzJBPMETCX8O5SvCLofqgFbhvK0IX4RDsy2ntC+dfI9CDSZI4dvyNfn toPLqyMx1iSGuFTWTewBVBP+O7TV7PkaM3bRc7phAXJvyMs1RgSPhy9TYkDrTiEk M5hmjLJrZE1JHXKnSOulRm8YaUqtmhW/DnHM9qwKiZhSIPRHKRtU20ZEF1aPH3CM bztb4Pff2HupjXHTTCUC8vgDEEZuhKjxwzbGxyiLs9EI8P5HPfSADdOwoVFQobif h5ylpKhj5nsDpsuplEcRzzx8KlUofM3tJKTYiqFl2XBNprpA2vqIUnu/73lChD42 2VR0dGyEhtS7w2Kw+OdhCic6Ykqijs6qghDAtmNe8WIhZSpE6KgTCsDdQS3YcqAs 1199f746zUh8iWSNRBE0vZbTqM8BDQ0u/Y7cYKnwY1iQHzevlnTPOtc4RnQ928f1 jsGDcdtCCPlyy2TPd0rhq5G1mIQoP/E6XmFHL4TFMG4aT0BpXYcWsxGqnAFDN2/M dxH3YxLiLMa+fNgVVKLTMF7qC2rOIiDdp8DMP8isE9E90SLYmd8= =800f -----END PGP SIGNATURE----- --yEPQxsgoJgBvi8ip-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 11:31:42 2017 Received: (at 27056) by debbugs.gnu.org; 25 May 2017 15:31:43 +0000 Received: from localhost ([127.0.0.1]:37810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDujm-0002Sr-Jo for submit@debbugs.gnu.org; Thu, 25 May 2017 11:31:42 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:55615 helo=vfemail.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDsi8-0007ml-Ja for 27056@debbugs.gnu.org; Thu, 25 May 2017 09:21:53 -0400 Received: (qmail 72136 invoked by uid 89); 25 May 2017 13:21:46 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 25 May 2017 13:21:45 -0000 Received: (qmail 6632 invoked by uid 89); 25 May 2017 08:52:43 -0000 Received: by simscan 1.4.0 ppid: 6628, pid: 6630, t: 0.0027s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 25 May 2017 08:52:43 -0000 Received: (qmail 8958 invoked by uid 89); 25 May 2017 08:52:43 -0000 Received: by simscan 1.4.0 ppid: 8906, pid: 8951, t: 1.4515s scanners:none Received: from unknown (HELO vfemail.net) (a3djM2l5d2JAdmZlbWFpbC5uZXQ=@78.109.23.1) by 172.16.100.62 with ESMTPA; 25 May 2017 08:52:41 -0000 Date: Thu, 25 May 2017 08:52:46 +0000 From: kwc3iywb@vfemail.net To: Glenn Morris Subject: Re: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number Message-ID: <20170525085246.GA4883@vfemail.net> References: <20170524111937.GA17052@vfemail.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oC1+HKm2/end4ao3" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27056 X-Mailman-Approved-At: Thu, 25 May 2017 11:31:37 -0400 Cc: 27056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --oC1+HKm2/end4ao3 Content-Type: multipart/mixed; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 24, 2017 at 02:03:16PM -0400, Glenn Morris wrote: > kwc3iywb@vfemail.net wrote: > > > `read-number'. I've included the patch I used to fix this problem. > > It looks to me like you attached an empty file? > Sorry. Here is the patch. --TB36FDmn/VVEgNH/ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Make-goto-line-default-to-current-line-when-cursor-i.patch" Content-Transfer-Encoding: quoted-printable =46rom 0317935b8af1701de3feb8d0469e5aea17b4f38a Mon Sep 17 00:00:00 2001 =46rom: kwc3iywb Date: Thu, 25 May 2017 02:07:18 +0000 Subject: [PATCH] Make goto-line default to current line when cursor isn't o= ver a number * lisp/simple.el (goto-line): When used interactively, default to current line if the cursor isn't over a number, and remain defaulting to the number under the cursor and putting the current line in the history when the cursor is over a number. * lisp/subr.el (read-number): Add in its description that it can accept a list of default values. --- lisp/simple.el | 4 +++- lisp/subr.el | 28 +++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index ea3a495fbc..bd865288b1 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1157,7 +1157,9 @@ rather than line counts." ""))) ;; Read the argument, offering that number (if any) as default. (list (read-number (format "Goto line%s: " buffer-prompt) - (list default (line-number-at-pos))) + (if default + (list default (line-number-at-pos)) + (line-number-at-pos))) buffer)))) ;; Switch to the desired buffer, one way or another. (if buffer diff --git a/lisp/subr.el b/lisp/subr.el index 8d5d2a779c..d9cb62b2db 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2312,25 +2312,23 @@ by doing (clear-string STRING)." (defun read-number (prompt &optional default) "Read a numeric value in the minibuffer, prompting with PROMPT. DEFAULT specifies a default value to return if the user just types RET. -The value of DEFAULT is inserted into PROMPT. +The value of DEFAULT is inserted into PROMPT. DEFAULT can also be a +list of numbers, in which case all the numbers are available in the +history, and the first is the default. This function is used by the `interactive' code letter `n'." + (if (not (listp default)) + (setq default (list default))) (let ((n nil) - (default1 (if (consp default) (car default) default))) - (when default1 - (setq prompt - (if (string-match "\\(\\):[ \t]*\\'" prompt) - (replace-match (format " (default %s)" default1) t t prompt 1) - (replace-regexp-in-string "[ \t]*\\'" - (format " (default %s) " default1) - prompt t t)))) + (default1 (car default)) + (default-str (mapcar 'number-to-string default))) + (when default + (cl-assert (string-match "\\(\\)\\(:[[:blank:]]*\\)?\\'" prompt)) + (setq prompt (replace-match + (format " (default %s)" (car default-str)) + t t prompt 1))) (while (progn - (let ((str (read-from-minibuffer - prompt nil nil nil nil - (when default - (if (consp default) - (mapcar 'number-to-string (delq nil default)) - (number-to-string default)))))) + (let ((str (read-string prompt nil nil default-str))) (condition-case nil (setq n (cond ((zerop (length str)) default1) --=20 2.12.2 --TB36FDmn/VVEgNH/-- --oC1+HKm2/end4ao3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwDlXGhappiWTpfDDYMrq6KZEr9sFAlkmm14ACgkQYMrq6KZE r9uwuQ/+O28+hPfdmqqZh8m2a3r/VZEJixuVsrqywd3PpA8wuy/M6lTINHXDdZnq vfvV9KRR08mbJqGf/2K25TTqqWPGaVUYFJfKSYXx+7nSFM+7vBwlH94ArHZLdtVA PkDWkn2du1ErwiPZ8TYapVDLy0Hx2YoNNKQ8oYyT7UmktwYX3v+3x37TTgPFL+R6 vxXNihBA9mjiisWg7TOLicYbZHUBHCDiDiQdznClEdKgzo+zr8x/3bUCY23jYPQX 6M2Mh3jsPFnrmSY3mOm6tOaL0f63f+A91UH2WgyHrhl4+OD4xO9EBgo6cixhNsc6 CAsmsjCgqgksi+fIpNPmmaznmHAqLcqXiYZ2X38C4apoEP2jC+pvBlIZd1mEgpFZ VQOHzPtQ80x5QuE7KdRziqbWryRgXllNh6sFsS61/JfsNcZrZtfoHoxy4S4NJC/7 TzIMUJjPD/XJtvWSlDnlLJcf4NJctytk/cKqQabxsVKuipKElbKif1R0D8V5RAkt aY/9bXxXQW/OjtdSxJA3ii1YFhDSdIuI7m1SdFe2DRp6O0NnU53gRRYN9KOq7Kpu IDbYXTpNJFzfPCYTX6bb8swHiSiCzF77VQf+rwEMnQVfbNVD/HzbXUmV4oYiEpvo 362+YA/SNIlDINtLBtsdTXukgBo3JY6MsQcb5wwWtx17atwcF+g= =dOfl -----END PGP SIGNATURE----- --oC1+HKm2/end4ao3-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 11:31:43 2017 Received: (at 27056) by debbugs.gnu.org; 25 May 2017 15:31:43 +0000 Received: from localhost ([127.0.0.1]:37812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDujm-0002Sy-V9 for submit@debbugs.gnu.org; Thu, 25 May 2017 11:31:43 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:8002 helo=vfemail.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDsiB-0007mr-7x for 27056@debbugs.gnu.org; Thu, 25 May 2017 09:21:55 -0400 Received: (qmail 72756 invoked by uid 89); 25 May 2017 13:21:49 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 25 May 2017 13:21:49 -0000 Received: (qmail 17486 invoked by uid 89); 25 May 2017 09:41:32 -0000 Received: by simscan 1.4.0 ppid: 17482, pid: 17484, t: 0.0027s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 25 May 2017 09:41:32 -0000 Received: (qmail 19612 invoked by uid 89); 25 May 2017 09:41:32 -0000 Received: by simscan 1.4.0 ppid: 19554, pid: 19603, t: 1.4304s scanners:none Received: from unknown (HELO vfemail.net) (a3djM2l5d2JAdmZlbWFpbC5uZXQ=@194.88.143.66) by 172.16.100.62 with ESMTPA; 25 May 2017 09:41:31 -0000 Date: Thu, 25 May 2017 09:41:36 +0000 From: kwc3iywb@vfemail.net To: Glenn Morris Subject: Re: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number Message-ID: <20170525094136.GA5685@vfemail.net> References: <20170524111937.GA17052@vfemail.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cvVnyQ+4j833TQvp" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27056 X-Mailman-Approved-At: Thu, 25 May 2017 11:31:37 -0400 Cc: 27056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --cvVnyQ+4j833TQvp Content-Type: multipart/mixed; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 24, 2017 at 02:03:16PM -0400, Glenn Morris wrote: > kwc3iywb@vfemail.net wrote: > > > `read-number'. I've included the patch I used to fix this problem. > > It looks to me like you attached an empty file? > Sorry. Here is the patch. --mP3DRpeJDSE+ciuQ Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Make-goto-line-default-to-current-line-when-cursor-i.patch" Content-Transfer-Encoding: quoted-printable =46rom 0317935b8af1701de3feb8d0469e5aea17b4f38a Mon Sep 17 00:00:00 2001 =46rom: kwc3iywb Date: Thu, 25 May 2017 02:07:18 +0000 Subject: [PATCH] Make goto-line default to current line when cursor isn't o= ver a number * lisp/simple.el (goto-line): When used interactively, default to current line if the cursor isn't over a number, and remain defaulting to the number under the cursor and putting the current line in the history when the cursor is over a number. * lisp/subr.el (read-number): Add in its description that it can accept a list of default values. --- lisp/simple.el | 4 +++- lisp/subr.el | 28 +++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index ea3a495fbc..bd865288b1 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1157,7 +1157,9 @@ rather than line counts." ""))) ;; Read the argument, offering that number (if any) as default. (list (read-number (format "Goto line%s: " buffer-prompt) - (list default (line-number-at-pos))) + (if default + (list default (line-number-at-pos)) + (line-number-at-pos))) buffer)))) ;; Switch to the desired buffer, one way or another. (if buffer diff --git a/lisp/subr.el b/lisp/subr.el index 8d5d2a779c..d9cb62b2db 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2312,25 +2312,23 @@ by doing (clear-string STRING)." (defun read-number (prompt &optional default) "Read a numeric value in the minibuffer, prompting with PROMPT. DEFAULT specifies a default value to return if the user just types RET. -The value of DEFAULT is inserted into PROMPT. +The value of DEFAULT is inserted into PROMPT. DEFAULT can also be a +list of numbers, in which case all the numbers are available in the +history, and the first is the default. This function is used by the `interactive' code letter `n'." + (if (not (listp default)) + (setq default (list default))) (let ((n nil) - (default1 (if (consp default) (car default) default))) - (when default1 - (setq prompt - (if (string-match "\\(\\):[ \t]*\\'" prompt) - (replace-match (format " (default %s)" default1) t t prompt 1) - (replace-regexp-in-string "[ \t]*\\'" - (format " (default %s) " default1) - prompt t t)))) + (default1 (car default)) + (default-str (mapcar 'number-to-string default))) + (when default + (cl-assert (string-match "\\(\\)\\(:[[:blank:]]*\\)?\\'" prompt)) + (setq prompt (replace-match + (format " (default %s)" (car default-str)) + t t prompt 1))) (while (progn - (let ((str (read-from-minibuffer - prompt nil nil nil nil - (when default - (if (consp default) - (mapcar 'number-to-string (delq nil default)) - (number-to-string default)))))) + (let ((str (read-string prompt nil nil default-str))) (condition-case nil (setq n (cond ((zerop (length str)) default1) --=20 2.12.2 --mP3DRpeJDSE+ciuQ-- --cvVnyQ+4j833TQvp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwDlXGhappiWTpfDDYMrq6KZEr9sFAlkmptAACgkQYMrq6KZE r9uGQg//dCJrDckXxX3HUBebuUNpcuZ7i6cKEspiAsNuivJyCXKMIRx0PSevj4I8 VjHJjEVDv6m2Ycq+/ntwr256rnNj/n7lQwpLCX8kF4BXd4ErBEfJp3bDC91PS0GQ 2Y1OMEOGFSvMXUjpiL2DYjNsFnKb95ZVQh55ufbwvFJ255xkcAaFDl2VJUaBICvo tzkaglth6fV82SCwrx+ANGAmIx+rfWccK8WNfQLMYFY2ZcQ39xef7o/KaZxN3vS+ o39FrNhJcL5Wuv2beS112aoQUor9QKoTCsvAFPoNB1xCyTFP5TPqRqwpR5u5Q9JE gIrFogLgNbGCX5+ct5Ry5NQ6s6Aes8+M3tosZDAflq0Agk1aDf/rTnj/uAdx+uht YmXLQ/CpUni+yjh49g5Dx3/Nge2WeJSnsjY1Rs7S632KtNof3GPna6QRzIy9+KpZ nlt7mvKY+Q11ckfsGfuClzi5aROBwJI3pW6ZrWrHaJsMQECJoLzplTMDpeAjzH+F hT0gZPvLEnCKMbajBy/Q3w4f1+pbIxL4qcJ17Y5D2B73SNlT+zLqSmAkDY3qbyVO V5/z4FCVuJ9F0RtDVHxFpAu+N91e9AwbaPK8GSxgNLX3PFQtUTaztH5LZ+5clnK0 2LWcbZ4aschPATGBCXpXJnoGdx9MoVOHbCFCm64IU/tfAAeLB0o= =Io21 -----END PGP SIGNATURE----- --cvVnyQ+4j833TQvp-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 25 11:31:43 2017 Received: (at 27056) by debbugs.gnu.org; 25 May 2017 15:31:43 +0000 Received: from localhost ([127.0.0.1]:37814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDujn-0002T5-8E for submit@debbugs.gnu.org; Thu, 25 May 2017 11:31:43 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:59032 helo=vfemail.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDsiT-0007oA-Da for 27056@debbugs.gnu.org; Thu, 25 May 2017 09:22:13 -0400 Received: (qmail 73143 invoked by uid 89); 25 May 2017 13:22:06 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 25 May 2017 13:22:04 -0000 Received: (qmail 26755 invoked by uid 89); 25 May 2017 10:21:26 -0000 Received: by simscan 1.4.0 ppid: 26752, pid: 26754, t: 0.0029s scanners:none Received: from unknown (HELO smtp101-2.vfemail.net) (172.16.100.61) by FreeQueue with SMTP; 25 May 2017 10:21:26 -0000 Received: (qmail 2708 invoked by uid 89); 25 May 2017 10:21:26 -0000 Received: by simscan 1.4.0 ppid: 2689, pid: 2704, t: 1.5612s scanners:none Received: from unknown (HELO vfemail.net) (a3djM2l5d2JAdmZlbWFpbC5uZXQ=@128.52.128.105) by 172.16.100.61 with ESMTPA; 25 May 2017 10:21:25 -0000 Date: Thu, 25 May 2017 10:21:21 +0000 From: kwc3iywb@vfemail.net To: Glenn Morris Subject: Re: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number Message-ID: <20170525102033.GA6194@vfemail.net> References: <20170524111937.GA17052@vfemail.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0IvGJv3f9h+YhkrH" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27056 X-Mailman-Approved-At: Thu, 25 May 2017 11:31:37 -0400 Cc: 27056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --0IvGJv3f9h+YhkrH Content-Type: multipart/mixed; boundary="UFHRwCdBEJvubb2X" Content-Disposition: inline --UFHRwCdBEJvubb2X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 24, 2017 at 02:03:16PM -0400, Glenn Morris wrote: > kwc3iywb@vfemail.net wrote: > > > `read-number'. I've included the patch I used to fix this problem. > > It looks to me like you attached an empty file? > Sorry. Here is the patch. --UFHRwCdBEJvubb2X Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0001-Make-goto-line-default-to-current-line-when-cursor-i.patch" Content-Transfer-Encoding: quoted-printable =46rom 0317935b8af1701de3feb8d0469e5aea17b4f38a Mon Sep 17 00:00:00 2001 =46rom: kwc3iywb Date: Thu, 25 May 2017 02:07:18 +0000 Subject: [PATCH] Make goto-line default to current line when cursor isn't o= ver a number * lisp/simple.el (goto-line): When used interactively, default to current line if the cursor isn't over a number, and remain defaulting to the number under the cursor and putting the current line in the history when the cursor is over a number. * lisp/subr.el (read-number): Add in its description that it can accept a list of default values. --- lisp/simple.el | 4 +++- lisp/subr.el | 28 +++++++++++++--------------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/lisp/simple.el b/lisp/simple.el index ea3a495fbc..bd865288b1 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -1157,7 +1157,9 @@ rather than line counts." ""))) ;; Read the argument, offering that number (if any) as default. (list (read-number (format "Goto line%s: " buffer-prompt) - (list default (line-number-at-pos))) + (if default + (list default (line-number-at-pos)) + (line-number-at-pos))) buffer)))) ;; Switch to the desired buffer, one way or another. (if buffer diff --git a/lisp/subr.el b/lisp/subr.el index 8d5d2a779c..d9cb62b2db 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -2312,25 +2312,23 @@ by doing (clear-string STRING)." (defun read-number (prompt &optional default) "Read a numeric value in the minibuffer, prompting with PROMPT. DEFAULT specifies a default value to return if the user just types RET. -The value of DEFAULT is inserted into PROMPT. +The value of DEFAULT is inserted into PROMPT. DEFAULT can also be a +list of numbers, in which case all the numbers are available in the +history, and the first is the default. This function is used by the `interactive' code letter `n'." + (if (not (listp default)) + (setq default (list default))) (let ((n nil) - (default1 (if (consp default) (car default) default))) - (when default1 - (setq prompt - (if (string-match "\\(\\):[ \t]*\\'" prompt) - (replace-match (format " (default %s)" default1) t t prompt 1) - (replace-regexp-in-string "[ \t]*\\'" - (format " (default %s) " default1) - prompt t t)))) + (default1 (car default)) + (default-str (mapcar 'number-to-string default))) + (when default + (cl-assert (string-match "\\(\\)\\(:[[:blank:]]*\\)?\\'" prompt)) + (setq prompt (replace-match + (format " (default %s)" (car default-str)) + t t prompt 1))) (while (progn - (let ((str (read-from-minibuffer - prompt nil nil nil nil - (when default - (if (consp default) - (mapcar 'number-to-string (delq nil default)) - (number-to-string default)))))) + (let ((str (read-string prompt nil nil default-str))) (condition-case nil (setq n (cond ((zerop (length str)) default1) --=20 2.12.2 --UFHRwCdBEJvubb2X-- --0IvGJv3f9h+YhkrH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwDlXGhappiWTpfDDYMrq6KZEr9sFAlkmsCAACgkQYMrq6KZE r9u4vxAAkpq/kjoYpq1XunD4fWSYkLj1n7QrVnABzG9f/ffX5IMkRgxC/+5bR9uR u91ZCyzERMc8opMG6iJhfHZOGosv4/vULeVau63WTcTQOamMLkfFXZW7gKBARCqn Gjiy4jJE22IeTV1+sVCYC+MNm7TY9mrSp8fyPWhgdCQIC44Xwu7rCsrTiaygodVQ v38g15Tdr/B8oPDZP2ES7AJFcPkIgEACDHrdcJTasLoqFrtaAHDJnVNO0+9MRwZk OzASjRoSwkym3Lz17pKsNQ5JN/GrbxdScKLoxiAMiE2sjCVDdXrXmRORXRgi8ekz D2s0RjIC6uDYbe9guyWEPOygYKKAygvj9wjxLgzNHBOA6qFNmZxv4hKI1gNdxn/x yBQedjbu0wlVRBFw3hmAlvYvEHFcfN0P3dAtMOPNO/DP41afqZSYKED7soiRpv/U F0pnr7iF39RYtNrjP83pRI9JfwmaVaIwNRgw4hqdm7zfqwr3I++yTsL2Zi7u26eQ ZoZLvjaGvPUOdjhYzh43yr4cqcbuc2fIcTAV0oOD/qOcpH0sSmkQ9I2UOwlX4OZa 0A6sRTu34umzBs8AvbAh/kHCfp+O3d0iBP9O5aN5/KDzgvp3y54oHdYtobAFU9Tt 2tyUq80VpsH5ycV4VCiFrG03Dev9uOisDHF1L1ccYZQxiI/9NxY= =hCUw -----END PGP SIGNATURE----- --0IvGJv3f9h+YhkrH-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 26 22:38:48 2017 Received: (at 27056) by debbugs.gnu.org; 27 May 2017 02:38:48 +0000 Received: from localhost ([127.0.0.1]:39774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dERcu-0001Lf-Aa for submit@debbugs.gnu.org; Fri, 26 May 2017 22:38:48 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:37299 helo=vfemail.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dERcq-0001LR-GS for 27056@debbugs.gnu.org; Fri, 26 May 2017 22:38:44 -0400 Received: (qmail 2717 invoked by uid 89); 27 May 2017 02:38:38 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 27 May 2017 02:38:38 -0000 Received: (qmail 2687 invoked by uid 89); 27 May 2017 02:38:21 -0000 Received: by simscan 1.4.0 ppid: 2683, pid: 2685, t: 0.1014s scanners:none Received: from unknown (HELO smtp101-2.vfemail.net) (172.16.100.61) by FreeQueue with SMTP; 27 May 2017 02:38:20 -0000 Received: (qmail 18932 invoked by uid 89); 27 May 2017 02:38:20 -0000 Received: by simscan 1.4.0 ppid: 18917, pid: 18928, t: 0.8837s scanners:none Received: from unknown (HELO vfemail.net) (a3djM2l5d2JAdmZlbWFpbC5uZXQ=@128.52.128.105) by 172.16.100.61 with ESMTPA; 27 May 2017 02:38:19 -0000 Date: Sat, 27 May 2017 02:38:26 +0000 From: kwc3iywb@vfemail.net To: Glenn Morris Subject: Re: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number Message-ID: <20170527023825.GA1806@vfemail.net> References: <20170524111937.GA17052@vfemail.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.2 (2017-04-18) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27056 Cc: 27056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, May 24, 2017 at 02:03:16PM -0400, Glenn Morris wrote: > kwc3iywb@vfemail.net wrote: > > > `read-number'. I've included the patch I used to fix this problem. > > It looks to me like you attached an empty file? > I sent the patch. Does it work? --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwDlXGhappiWTpfDDYMrq6KZEr9sFAlko5qEACgkQYMrq6KZE r9sfbA/9H7Bcjr5MlByO2Su/lIvUzwCGLlIu2Ieu+XuAjxKP8LnS+Y69CdIbcOcF b97gd9MN9+hLOjI3G/9W1W6bxSTH0z8Ghy5UYfOpm1IhYNEcT0rxRb8apDinewZ2 +P4DoOWDK7W0fHgIFwnrlsvVUm+zsK2jT4BBLgBKdLZPrvFSGHsTDp2kE8XqLUOd R46Roio5IwScvGz2FsFTOKiDiMgMzNhJMafe8Gv1UUzuX2WEbjogmphEArbuOLCJ 5uaJiActoamYynBOkJAaZUHWXbHxiH9CgLnvSBmTi+N2RBHxPho0708AIt/gAHoO MMKYLAsAZR+PtO6Wn+xx6MktcHEhOquwzV16/Q68gIoJSbPmd8eSP1nZKrzOStiF yAE8n6WaK7iQgYgL5TWTeEOpy2WeEjU9ZHOR4fmVU5dknujI7K2HIml/+Z9LBQLU N0axMTN1oTCNcEZfHbD41Rg+tHnFaOtH3XFtL+cQHj450XhD5Xn8aRuHLfaOyRu2 Y+UGsgCDFA3s5gLazKgMRUFO0GXDCsTK3NnHKteeMMWGKROHmDhMvt+DyIBBgkqx ESASWOqm+gQCh1gicOg5Zs0SxSMcfNuC2NSwDKojFu7TEUGDIUJMBBuszedc0nja 5xMrG5Z80822NC8ewzTFyPaDz8u3pV8vNH2VVU9p2jJ7A9/dTis= =Hj/R -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 27 09:13:46 2017 Received: (at 27056) by debbugs.gnu.org; 27 May 2017 13:13:46 +0000 Received: from localhost ([127.0.0.1]:40028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEbXN-0002jp-W0 for submit@debbugs.gnu.org; Sat, 27 May 2017 09:13:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEbXM-0002ja-GL for 27056@debbugs.gnu.org; Sat, 27 May 2017 09:13:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEbXD-0004th-21 for 27056@debbugs.gnu.org; Sat, 27 May 2017 09:13:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEbXC-0004td-VI; Sat, 27 May 2017 09:13:34 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2886 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dEbXC-00019q-8S; Sat, 27 May 2017 09:13:34 -0400 Date: Sat, 27 May 2017 16:13:34 +0300 Message-Id: <8337bqigsh.fsf@gnu.org> From: Eli Zaretskii To: kwc3iywb@vfemail.net In-reply-to: <20170524111937.GA17052@vfemail.net> (kwc3iywb@vfemail.net) Subject: Re: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number References: <20170524111937.GA17052@vfemail.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27056 Cc: 27056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Wed, 24 May 2017 11:19:37 +0000 > From: kwc3iywb@vfemail.net > > When I press M-x goto-line, it asks me for a line number. There used to > be a default line number, which is the current line number before > a5dcc929862f6727c71db5e45d8750f8c322c53b. It looks like he forgot to > remove the empty elements when calling `read-from-minibuffer' from > `read-number'. Sorry, I don't think I understand the problem. AFAIU, the default was taken from the number at point, if any, when the command is invoked. So I tried this: emacs -Q Type "2" and then move point back so the cursor is on "2" M-g M-g This prompts in the echo area: Goto line (default 2): OTOH, if cursor isn't over a number, I get no default at all, even if I try Emacs versions before that change, like Emacs 23.1 and 23.2 (or even 22.1). So it looks like the feature works as expected. What am I missing? From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 04:19:20 2017 Received: (at 27056) by debbugs.gnu.org; 28 May 2017 08:19:20 +0000 Received: from localhost ([127.0.0.1]:41229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEtQ0-0002St-Hg for submit@debbugs.gnu.org; Sun, 28 May 2017 04:19:20 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:57036 helo=vfemail.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEtPy-0002Sf-OO for 27056@debbugs.gnu.org; Sun, 28 May 2017 04:19:19 -0400 Received: (qmail 37331 invoked by uid 89); 28 May 2017 08:19:12 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 28 May 2017 08:19:12 -0000 Received: (qmail 37263 invoked by uid 89); 28 May 2017 08:18:55 -0000 Received: by simscan 1.4.0 ppid: 37259, pid: 37261, t: 0.0025s scanners:none Received: from unknown (HELO smtp101-2.vfemail.net) (172.16.100.61) by FreeQueue with SMTP; 28 May 2017 08:18:55 -0000 Received: (qmail 3809 invoked by uid 89); 28 May 2017 08:18:55 -0000 Received: by simscan 1.4.0 ppid: 3786, pid: 3805, t: 1.0720s scanners:none Received: from unknown (HELO vfemail.net) (a3djM2l5d2JAdmZlbWFpbC5uZXQ=@91.223.82.156) by 172.16.100.61 with ESMTPA; 28 May 2017 08:18:54 -0000 Date: Sun, 28 May 2017 08:18:53 +0000 From: kwc3iywb@vfemail.net To: Eli Zaretskii Subject: Re: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number Message-ID: <20170528081853.GA17956@vfemail.net> References: <20170524111937.GA17052@vfemail.net> <8337bqigsh.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <8337bqigsh.fsf@gnu.org> User-Agent: Mutt/1.8.2 (2017-04-18) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27056 Cc: 27056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, May 27, 2017 at 04:13:34PM +0300, Eli Zaretskii wrote: > > Date: Wed, 24 May 2017 11:19:37 +0000 > > From: kwc3iywb@vfemail.net > > > > When I press M-x goto-line, it asks me for a line number. There used to > > be a default line number, which is the current line number before > > a5dcc929862f6727c71db5e45d8750f8c322c53b. It looks like he forgot to > > remove the empty elements when calling `read-from-minibuffer' from > > `read-number'. > > Sorry, I don't think I understand the problem. AFAIU, the default was > taken from the number at point, if any, when the command is invoked. > So I tried this: > > emacs -Q > Type "2" and then move point back so the cursor is on "2" > M-g M-g > > This prompts in the echo area: > > Goto line (default 2): > > OTOH, if cursor isn't over a number, I get no default at all, even if > I try Emacs versions before that change, like Emacs 23.1 and 23.2 (or > even 22.1). > > So it looks like the feature works as expected. What am I missing? > Now, I understand that it's not a bug. Thanks for your patience and sorry for wasting your time. How do I close this bug report? When the cursor isn't on a number, invoke `goto-line', press , you'll get the current line number in the minibuffer. The problem is that I thought I should press instead of , so I thought there was a bug. --liOOAslEiF7prFVr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwDlXGhappiWTpfDDYMrq6KZEr9sFAlkqh+0ACgkQYMrq6KZE r9s1fw/9ET+0dCwVbr6eHSNmp5c2ghGARx9acRSdY16REc2hjtKY0xmmB5uepp3T vAQHNPh/Q5HN3cGGvgnKoVfQlN1mmT7g8FWWCuO7uAzMM1PZmYfzillsjBXA0w4T fgju78YsRPh+ex8tlwgr3GXPQ0is7ctcVVaIYlzAnDeeM916ddfEl53jZzVIa1Hb U7KdnWLTc+gQ3hrAVw41Eib7XtfAjXg5w0JArnWWbctDmwsr9PGUgyeCaNOoC+NW +mOM0LDm/+wU2CuQ46x7MHV2VwKYN2theSTK+Pi4Zfn9imxHGRg9MxG3MRkHSotN CnKN4eRZoMrCHbPNzIVhNavaieKpgVev5uG3MPmAM7Pgz33NqWDUL51c6DnoBYye JWKvbCxqLjrO7Jbp1docMr7ToBiPbH+DOdejq1puFWJO7C+iRS0xF0aO0DUCKqYC cweZV2n5rnCshRVNNJ006mU5rMrXmPKdJNPNB+r3J50U3p3aPyC3rSL5h0bIKqOZ aBHa/3COh8z15wOn1ZLLEpjvgAuHfBxhyObyxLHdWT5eZ+/V9mpJGbagbbcpV52E vCJ5fwPK9s5DvykeAHwhH6YoRZ8vlz8yxUhKzOzRM8dMTmdrbUTbCrMTw+zEjj5D 2Ild6igLC7SRZeIKZTLuCyKcsyHBCVFep8uRK8yEXZi+ELWiC/s= =BnEL -----END PGP SIGNATURE----- --liOOAslEiF7prFVr-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 04:25:34 2017 Received: (at 27056) by debbugs.gnu.org; 28 May 2017 08:25:34 +0000 Received: from localhost ([127.0.0.1]:41233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEtW2-0002bZ-8z for submit@debbugs.gnu.org; Sun, 28 May 2017 04:25:34 -0400 Received: from onethreetwo.vfemail.net ([199.16.11.132]:1746 helo=vfemail.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEtW1-0002bO-3D for 27056@debbugs.gnu.org; Sun, 28 May 2017 04:25:33 -0400 Received: (qmail 39515 invoked by uid 89); 28 May 2017 08:25:27 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 28 May 2017 08:25:27 -0000 Received: (qmail 39473 invoked by uid 89); 28 May 2017 08:25:10 -0000 Received: by simscan 1.4.0 ppid: 39469, pid: 39471, t: 0.0023s scanners:none Received: from unknown (HELO smtp101-2.vfemail.net) (172.16.100.61) by FreeQueue with SMTP; 28 May 2017 08:25:10 -0000 Received: (qmail 4350 invoked by uid 89); 28 May 2017 08:25:10 -0000 Received: by simscan 1.4.0 ppid: 3148, pid: 3163, t: 837.2097s scanners:none Received: from unknown (HELO vfemail.net) (a3djM2l5d2JAdmZlbWFpbC5uZXQ=@178.217.187.39) by 172.16.100.61 with ESMTPA; 28 May 2017 08:11:12 -0000 Date: Sun, 28 May 2017 08:11:19 +0000 From: kwc3iywb@vfemail.net To: Eli Zaretskii Subject: Re: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number Message-ID: <20170528081117.GA17810@vfemail.net> References: <20170524111937.GA17052@vfemail.net> <8337bqigsh.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ReaqsoxgOBHFXBhH" Content-Disposition: inline In-Reply-To: <8337bqigsh.fsf@gnu.org> User-Agent: Mutt/1.8.2 (2017-04-18) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 27056 Cc: 27056@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, May 27, 2017 at 04:13:34PM +0300, Eli Zaretskii wrote: > > Date: Wed, 24 May 2017 11:19:37 +0000 > > From: kwc3iywb@vfemail.net > > > > When I press M-x goto-line, it asks me for a line number. There used to > > be a default line number, which is the current line number before > > a5dcc929862f6727c71db5e45d8750f8c322c53b. It looks like he forgot to > > remove the empty elements when calling `read-from-minibuffer' from > > `read-number'. > > Sorry, I don't think I understand the problem. AFAIU, the default was > taken from the number at point, if any, when the command is invoked. > So I tried this: > > emacs -Q > Type "2" and then move point back so the cursor is on "2" > M-g M-g > > This prompts in the echo area: > > Goto line (default 2): > > OTOH, if cursor isn't over a number, I get no default at all, even if > I try Emacs versions before that change, like Emacs 23.1 and 23.2 (or > even 22.1). > > So it looks like the feature works as expected. What am I missing? > Now, I understand. So there is no such bug. Thanks for your patience and sorry for wasting your time. How do I close this bug report? I tried again, the feature introduced in a5dcc929862f6727c71db5e45d8750f8c322c53b works. When the cursor isn't on a number, invoke `goto-line', press , you get the current line number in the minibuffer. I thought I was supposed to press instead of , so I there was a bug. And I know that I can use C-a or . --ReaqsoxgOBHFXBhH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEwDlXGhappiWTpfDDYMrq6KZEr9sFAlkqhiQACgkQYMrq6KZE r9uq9w/+Mz/xZRL5yFL2BmM8RnawZaTRwr/E0ZhVBqfxpk4aXbKTtCIJ0T1SZtxd 9jjwpL2iM5+O9KOLhwlvxs5NkRjKFkvVYAarQhWnh6OV88ZhtZbivGirHKXIKIsD 8qmdS5dSAO4EDK2JE4qfREQmaaTni7XMiI+i3nulwcItIBIXELePEJJmmPUSMvxV M/SxkQpf2ksMq7zkdKSrEjFUdK+HRnbiay4yqnT8MWU4SKKjGGEikZJUwPgjiYI4 s9L3Gh+QNEpGTBWdvsLxcSsbb0s912xSlr44oqrHsK0gCzzQDmzE/NmmLJL1ov1U s6peEGbK6XpUW07kbGbE5hlIG468ScjHXXLkT3wqt0ZlqKt/4YhS9Wy68L5vhWzs 1+Fr9Yknbl5De9xxohUzRN2TILc/ytj9bAgnmKlqUzOiPuf02aEQtOQjHCGgowEf AQyvsRdxizpGTA6xaaA20iEAC7HXyjhU59+wuHgHi5hDXhba6U+2MKwpZBUx7it2 OgxgN5ATxu5nxiZl7YN5Gsbzb8zzNbjPpGFWSk/xtUDuHheNy6wTizNvrCuwxkwd 1WxNWeGPFv9M6DXQfae5GbT8jDR20xCznSQ6+YDZr72B0CebqGiMIYvr9g2a6J8T Ofs/drD/fw/82ixk2atBkyum+sfuKXrx/hdq3Ij/z2KTM2ejOgo= =7Fia -----END PGP SIGNATURE----- --ReaqsoxgOBHFXBhH-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 28 11:03:30 2017 Received: (at 27056-done) by debbugs.gnu.org; 28 May 2017 15:03:30 +0000 Received: from localhost ([127.0.0.1]:41825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEzj8-0006rE-KO for submit@debbugs.gnu.org; Sun, 28 May 2017 11:03:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49550) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dEzj7-0006r2-4A for 27056-done@debbugs.gnu.org; Sun, 28 May 2017 11:03:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEziy-0005C4-Ok for 27056-done@debbugs.gnu.org; Sun, 28 May 2017 11:03:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46145) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEziy-0005C0-LM; Sun, 28 May 2017 11:03:20 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4182 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dEzix-00016D-Ru; Sun, 28 May 2017 11:03:20 -0400 Date: Sun, 28 May 2017 18:03:22 +0300 Message-Id: <83h905gh1h.fsf@gnu.org> From: Eli Zaretskii To: kwc3iywb@vfemail.net In-reply-to: <20170528081853.GA17956@vfemail.net> (kwc3iywb@vfemail.net) Subject: Re: bug#27056: 25.2; goto-line doesn't default to current line when used interactively when the cursor isn't over a number References: <20170524111937.GA17052@vfemail.net> <8337bqigsh.fsf@gnu.org> <20170528081853.GA17956@vfemail.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 27056-done Cc: 27056-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Date: Sun, 28 May 2017 08:18:53 +0000 > From: kwc3iywb@vfemail.net > Cc: 27056@debbugs.gnu.org > > Now, I understand that it's not a bug. Thanks for your patience and > sorry for wasting your time. No sweat, and thanks for confirming. > How do I close this bug report? When you reply, change the bug address to NNNNN-done. Like I did now. From unknown Sun Jun 15 13:00:21 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 26 Jun 2017 11:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator