After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 653693 - Handle newcommands
Handle newcommands
Status: RESOLVED FIXED
Product: gedit-latex
Classification: Core
Component: General
unspecified
Other All
: Normal normal
: ---
Assigned To: José Aliste
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2011-06-30 00:35 UTC by John Stowers
Modified: 2019-02-22 03:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Handle newcommands (5.58 KB, patch)
2011-06-30 00:35 UTC, John Stowers
committed Details | Review

Description John Stowers 2011-06-30 00:35:00 UTC
This extends the language model / outliner to recognise the common
case of a \newcommand (with one argument) simply redefining another
existing command, for example \newcommand{\Secref}[1]{Section \ref{#1}}.

In this case the completion for the original \ref command is offered
Comment 1 John Stowers 2011-06-30 00:35:03 UTC
Created attachment 190974 [details] [review]
Handle newcommands
Comment 2 Ignacio Casal Quinteiro (nacho) 2011-06-30 08:38:23 UTC
Review of attachment 190974 [details] [review]:

It looks good to me, although double check that this for loops aren't a performance problem
Comment 3 John Stowers 2011-07-07 11:56:06 UTC
Attachment 190974 [details] pushed as 024688b - Handle newcommands