summaryrefslogtreecommitdiff
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-09-26 13:35:56 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-09-26 13:35:56 -0700
commitfffa49b136b02052073fa584cf7b9fe99b1bf951 (patch)
tree6065ab2578cfdd73012045e8911a065ab9e0fe0c /lib-src
parent2914d52129032c471a6754f4a3961a9dffdc7b18 (diff)
parentcf9e174ae1d3b1428982204b0786a7db13d94ab7 (diff)
downloademacs-fffa49b136b02052073fa584cf7b9fe99b1bf951.tar.gz
Merge from origin/emacs-25
cf9e174 Document the optional zlib library in MS-Windows builds 84eb144 ; * admin/notes/unicode: Mention BidiCharacterTest.txt. 73c67dd Fix tagging of DEFUN by etags ea1960b Avoid resetting track-mouse by mouse clicks 505fef3 Improve nt/README.W32 instructions 1229cc4 Document that desktop file overrides frame parameters f0eb70d ; Update ChangeLog.2 and ldef-boot.el for Emacs 25.1 release # Conflicts: # ChangeLog.2 # admin/notes/unicode # lisp/ldefs-boot.el
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 3620b0fd321..a81b46d2e07 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -3595,13 +3595,27 @@ C_entries (int c_ext, FILE *inf)
int off = tokoff;
int len = toklen;
- /* Rewrite the tag so that emacs lisp DEFUNs
- can be found by their elisp name */
if (defun)
{
off += 1;
len -= 1;
+
+ /* First, tag it as its C name */
+ linebuffer_setlen (&token_name, toklen);
+ memcpy (token_name.buffer,
+ newlb.buffer + tokoff, toklen);
+ token_name.buffer[toklen] = '\0';
+ token.named = true;
+ token.lineno = lineno;
+ token.offset = tokoff;
+ token.length = toklen;
+ token.line = newlb.buffer;
+ token.linepos = newlinepos;
+ token.valid = true;
+ make_C_tag (funorvar);
}
+ /* Rewrite the tag so that emacs lisp DEFUNs
+ can be found also by their elisp name */
linebuffer_setlen (&token_name, len);
memcpy (token_name.buffer,
newlb.buffer + off, len);