mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-26 08:41:47 -07:00
Don't create an automatic cross-reference if the source already exists (in particular, don't send "mapped" to "mapping" since we already have an entry for "mapped").
Copied from Perforce Change: 181086 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
a8745f6701
commit
dbbbd3778d
1 changed files with 6 additions and 4 deletions
|
|
@ -157,14 +157,14 @@ all_admonitions = [
|
|||
AkaDirective,
|
||||
BibrefDirective,
|
||||
DeprecatedDirective,
|
||||
HistoricalDirective,
|
||||
HistoricalDirective,
|
||||
LinkDirective,
|
||||
NoteDirective,
|
||||
OppositeDirective,
|
||||
RelevanceDirective,
|
||||
SeeDirective,
|
||||
SimilarDirective,
|
||||
SpecificDirective,
|
||||
SpecificDirective,
|
||||
TopicsDirective]
|
||||
|
||||
class GlossaryTransform(transforms.Transform):
|
||||
|
|
@ -248,7 +248,7 @@ class GlossaryTransform(transforms.Transform):
|
|||
if m:
|
||||
old_fullname = m.group(1)
|
||||
sense = ' ' + m.group(2)
|
||||
else:
|
||||
else:
|
||||
old_fullname = fullname
|
||||
sense = ''
|
||||
if any(old_fullname.endswith(e) for _, e in endings):
|
||||
|
|
@ -257,7 +257,9 @@ class GlossaryTransform(transforms.Transform):
|
|||
if not old_fullname.endswith(old_ending):
|
||||
continue
|
||||
new_fullname = '{}{}{}'.format(old_fullname[:len(old_fullname) - len(old_ending)], new_ending, sense)
|
||||
objects[(name, new_fullname)] = value
|
||||
new_key = name, new_fullname
|
||||
if new_key not in objects:
|
||||
objects[new_key] = value
|
||||
|
||||
def warn_indirect_terms(app, exception):
|
||||
if not exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue