GNU bug report logs - #17603
completion of previous input

Previous Next

Package: emacs;

Reported by: Danny Nguyen <anuindale <at> gmail.com>

Date: Mon, 26 May 2014 19:57:02 UTC

Severity: wishlist

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17603 in the body.
You can then email your comments to 17603 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17603; Package emacs. (Mon, 26 May 2014 19:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Danny Nguyen <anuindale <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 26 May 2014 19:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Danny Nguyen <anuindale <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Emacs enhancement request
Date: Mon, 26 May 2014 12:44:31 -0700
[Message part 1 (text/plain, inline)]
Hi Emacs support team,

I am an avid user of GNU Emacs and I love using Tex mode to write my
documents. However one of the features that I find lacking in Emacs is
*auto-complete*. By that I don't mean the common feature found in other IDE
for programmers but the following. Suppose I already typed up a formula

*\int_{\mathbb{R}} e^{2 \pi i x^2} dx = 1*

And after paragraph or so I want to repeat the same thing all over again
(and maybe modify *x* to *y*). Of course I can search+save region+yank but
that's too manual. What I wish to have is if I typed *\int* and then
invoked the *auto-complete *command, Emacs would move the point to the
previous instance of *\int* and allow me to mark a region around it. After
marking I could hit *Enter* and Emacs would copy the highlighted part and
put it to the partially completed *\int* below. I also want to be able to
cycle through previous instances of *\int* with the up and down arrow keys,
much like using *isearch*.

This could be also useful outside the scope of Tex mode. I realize this
sounds more like a minor mode rather than a macro.

Thanks,
Danny
[Message part 2 (text/html, inline)]

Changed bug title to 'completion of previous input' from 'Emacs enhancement request' Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 27 May 2014 00:29:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17603; Package emacs. (Wed, 28 May 2014 01:11:02 GMT) Full text and rfc822 format available.

Message #10 received at 17603 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Danny Nguyen <anuindale <at> gmail.com>
Cc: 17603 <at> debbugs.gnu.org
Subject: Re: bug#17603: Emacs enhancement request
Date: Tue, 27 May 2014 21:10:41 -0400
> I am an avid user of GNU Emacs and I love using Tex mode to write my
> documents. However one of the features that I find lacking in Emacs is
> *auto-complete*. By that I don't mean the common feature found in other IDE
> for programmers but the following. Suppose I already typed up a formula

> *\int_{\mathbb{R}} e^{2 \pi i x^2} dx = 1*

> And after paragraph or so I want to repeat the same thing all over again
> (and maybe modify *x* to *y*). Of course I can search+save region+yank but
> that's too manual. What I wish to have is if I typed *\int* and then
> invoked the *auto-complete *command, Emacs would move the point to the
> previous instance of *\int* and allow me to mark a region around it. After
> marking I could hit *Enter* and Emacs would copy the highlighted part and
> put it to the partially completed *\int* below. I also want to be able to
> cycle through previous instances of *\int* with the up and down arrow keys,
> much like using *isearch*.

What you describe (including letting you mark the region around the
previous match) sounds sufficiently complex (UI-wise) that using

  C-SPC C-r *\int ..copy text.. C-u C-SPC C-y

wouldn't be noticeably more complex.
So I think it only makes sense to provide such a feature if the choice
of the amount to copy can be made somewhat automatic.

Maybe hippie-expand's try-expand-line would work for you?


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17603; Package emacs. (Wed, 14 Jul 2021 15:07:02 GMT) Full text and rfc822 format available.

Message #13 received at 17603 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Danny Nguyen <anuindale <at> gmail.com>, 17603 <at> debbugs.gnu.org
Subject: Re: bug#17603: completion of previous input
Date: Wed, 14 Jul 2021 17:06:17 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> What you describe (including letting you mark the region around the
> previous match) sounds sufficiently complex (UI-wise) that using
>
>   C-SPC C-r *\int ..copy text.. C-u C-SPC C-y
>
> wouldn't be noticeably more complex.
> So I think it only makes sense to provide such a feature if the choice
> of the amount to copy can be made somewhat automatic.
>
> Maybe hippie-expand's try-expand-line would work for you?

Emacs (now) has a number of different completion libraries and
frameworks, so I don't think there's anything specific to be done in
this bug report, and I'm closing it.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




bug closed, send any further explanations to 17603 <at> debbugs.gnu.org and Danny Nguyen <anuindale <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 14 Jul 2021 15:07:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 12 Aug 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 251 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.