Skip to content

Loading…

use (completing-read) instead of (display-completion-list) to complete. #15

Closed
wants to merge 118 commits into from

3 participants

@jixiuf

use (completing-read) instead of (display-completion-list) to complete.
so anything.el can benefit from it .
and erl-service.el needn't handle the detail of completing .
(completing-read) can do it itself . for example scroll the *Completetion* buffer
the suggested keybinding is bind erl-complete on TAB
(completing-read) using TAB to scroll *Completetion* buffer ,so you just need press TAB TAB TAB ..

Robin Osterberg and others added some commits
Robin Osterberg initial import of erlookup 493766a
Robin Osterberg fixed error where old function finding function wasn't found 5195cde
@jixiuf jixiuf erl-service.el ---
use (completing-read) instead of (display-completion-list) to complete.
so anything.el can benefit from it .
and erl-service.el needn't handle the detail of completing .
completing-read can do it itself . for example scroll the *Completetion*
662dd7b
Robin Osterberg fixed error not finding definitions in same file a1643e2
Robin Osterberg added possibility to do 'M-.' on a path in an -include("/path") to op…
…en header

file directly
4f87e13
Robin Osterberg made the lookups case-sensitive 71f3399
Robin Osterberg fixed multiple marks in history ring error, fixed a M-. on an include…
… path error
e4875b8
Robin Osterberg added "./" to list of lookup paths so we can find .hrl files placed i…
…n the same

dir as the current source file
fa78395
Robin Österberg updated the comments 2586d4a
Robin Osterberg new regex that works better 76e426b
Robin Osterberg changed regexp again fb43aef
Robin Osterberg no need to set erlookup-roots manually anymore, the paths are now loo…
…ked up on the fly
877a6af
Robin Osterberg general cleanup bcfda8f
Robin Osterberg did some refactoring and general cleanup, added and updated some comm…
…ents
fb44df9
Robin Österberg this reverse is better, just move around pointers instead of copying …
…everything
e678e08
Robin Österberg erl-find-module was broken since it tried to use the old erl-find-sou…
…rce. This solution doesn't feel very good, calling erl-find-function when looking up a module? Not very intuitive.
1f06bd7
Robin Osterberg Some convenient bindings when jumping between caller functions. d3521e4
Robin Osterberg Exit erl-who-calls minor mode buffer with "q" binding. 84fd27c
Robin Osterberg Add erlang.el and distel.el as dependencies. 2ac0df4
Robin Osterberg Remove unnecessary function. 330cf37
Robin Osterberg Make erl-find-includes simpler. 413b392
Robin Osterberg Rename erl-find-includes to erl-extract-include-paths-from-buffer. 2c2ccc7
Robin Osterberg Rename find-file-paths to compose-include-file-paths. Cleanup. d6be73a
Robin Osterberg Rebuild erl-find-pattern-in-file and rename to erl-find-pattern-in-bu…
…ffer.
22d6855
Robin Osterberg Send pattern in directly when calling under-point function. e62c07b
Robin Osterberg Documentation fix. c0bf0b9
Robin Osterberg Ripped erl-find-source-pattern apart. Created two separate functions for
searching though open buffers and files on disk respectively.
89d8869
Robin Osterberg Preparing for building lookup of variable declarations and such. 703ae23
Robin Osterberg This is one of those p functions f4d14ec
Robin Osterberg Added erl-find-variable-binding to be able to jump to first occurance of
a variable in a function clause
8fce2d4
Robin Osterberg Some more p functions to determine where the pointer is
located. Preparing for jumping around using erl-who-calls.
d32a1db
Robin Osterberg The original version didn't match correctly, this should, even if it's
really ugly.
98b99af
Robin Osterberg Added ido support for erl-find-module e54575e
Robin Osterberg Add n/p keybindings for navigating process-list-mode. 5c748bd
Robin Osterberg Added possibility to grab list of include paths for all modules loaded
into the node.
f63d646
Robin Osterberg Added possibility to jump to individual fields in a record definition,
e.g. M-. on field in #record.field.

Changed the way the regex patterns are retrieved and passed around.

Too much happening here, hope nothing is broken.
120b136
Robin Osterberg Perhaps YAGNI, but we might want to pass in a list sooner or later. d3addcd
Robin Osterberg hopefully fixed oldstyle backquotes message, pmatch-test still seems …
…to work correctly
37d3218
@danielwhite danielwhite Use `set-buffer-multibyte` instead of binding an obselete variable
This should remain backwards compatible to at least Emacs 21 (at least
the manual indicates that it existed back then), and we can do this
because we're opening a temporary buffer to do our work in, so a
temporary binding isn't really necessary.
28fc639
@danielwhite danielwhite Extend `erl-choose-nodename' to better support being called programma…
…tically
0907bf3
@jixiuf jixiuf privide bf868d8
@jixiuf jixiuf add find_header_files/2
find_header_file2/1
find_header_file/2
f3772b7
@jixiuf jixiuf fix doc for erl-find-source-under-point in erlookup.el 02c188a
@jixiuf jixiuf if lookup macro or record or header file failed ,pop up the marker 5ee4628
@jixiuf jixiuf erl-complete support completing header-file in include_lib
 eg:
 -include_lib("kernel/include/-|-"). call ` erl-complete'
 then ,it list
        kernel/include/
       kernel/include/dist.hrl
       kernel/include/dist_util.hrl
       kernel/include/file.hrl
       kernel/include/inet.hrl
       kernel/include/inet_sctp.hrl
       kernel/include/net_address.hrl
ae0dae6
@jixiuf jixiuf %% distel:find_matched_system_header_files("file"). c57ddc4
@jixiuf jixiuf (defun erl-find-source-pattern-under-point(pattern)
  "pattern can be a '#str','?str',means finding a record or macro  "

  also search current buffer ,not only the header file in current buffer
af3b287
@jixiuf jixiuf just comment 24ceeca
@jixiuf jixiuf delete function erl-complete-thing and some other unuesd functions 049ccc4
@jixiuf jixiuf indent tab space dd723ac
@jixiuf jixiuf (set-process-query-on-exit-flag fsm-process nil)
when kill buffer ,don't ask me,maybe new bug will in
ddc10ec
@jixiuf jixiuf fix erl-find-mode ,add erl-loaded-modes erl-loaded-modules-helper 37a68d4
@jixiuf jixiuf merge rost's version (erl-find-variable-binding) de627af
@jixiuf jixiuf merge rost's version (erl-find-variable-binding)
    M-.
        find the first         occurance of a variable
        (defun erlang-in-arglist-p ()
5b9bc52
@jixiuf jixiuf (with-current-buffer buffer
 instead of set-buffer
70f0ba6
@jixiuf jixiuf switch name of find_header_file find_header_file2 acfb255
@jixiuf jixiuf rewrite (defun find-header-file-by-include-lib-under-point()
open header-file under point
ab72e08
@jixiuf jixiuf rm unused import function lists:member/2 8f8b1ae
@jixiuf jixiuf comment fix 134e420
@jixiuf jixiuf no code change ,just change the position of
(defvar erl-node-name nil        ; initialised below

go get rid of some byte compile waring

and replace Tab with space
indent
98f705a
@jixiuf jixiuf no code change ,just indent code ,
rm some byte compile waring
e71f329
@jixiuf jixiuf comment unused
 find_includes([all])
7ae4899
@jixiuf jixiuf if only one candidate ,just insert it ,without using
completing-read
ea1d0b1
@jixiuf jixiuf add Emakefile fa21d7b
@jixiuf jixiuf ;; Local Variables:
;; coding: utf-8
;; indent-tabs-mode: nil
;; End:
no code change
be6c870
@jixiuf jixiuf ;; Local Variables:
;; coding: utf-8
;; indent-tabs-mode: nil
;; End:
no code change
b641ce4
@jixiuf jixiuf ;; Local Variables:
;; coding: utf-8
;; indent-tabs-mode: nil
;; End:
no code change
aa73ab6
@jixiuf jixiuf ;; Local Variables:
;; coding: utf-8
;; indent-tabs-mode: nil
;; End:
no code change
c500dc7
@jixiuf jixiuf rewrite
        (defun erl-find-module (&optional use-symbol-under-point-as-default-p)
9e5e2d0
@jixiuf jixiuf indent ,no code change d51d3d2
@jixiuf jixiuf indent ,no code change 183000d
@jixiuf jixiuf fix ,using save-excursion ,
when searching ?macro #record faild in header file or current buffer ,
keep point where it is
5f9d6c2
@jixiuf jixiuf don't use
        (save-excursion
      (set-buffer buffer)
      )
7a27021
@jixiuf jixiuf rewrite (defun erl-extract-include-lib-paths-from-buffer (buffer hook) b7a787d
@jixiuf jixiuf rewrite find_header_files(HeaderPathsInSrc)
bugfix for rename fun
4fea1bb
@jixiuf jixiuf some bug fix ,by adding (save-excursion)
rewrite some boring function though it still boring
569e60d
@jixiuf jixiuf fix doc of
(defun erl-find-pattern-in-buffer (buffer pattern)

  "find pattern in buffer  return '(ok newposition) ,or nil"
09609ec
@jixiuf jixiuf ;; FIXME: if a header file include another header file ,it failed e9fc69a
@jixiuf jixiuf rewrite (defun erl-complete (node)
no new feature ,just make
(defun erl-complete (node)
easy to understand
fb7564c
@jixiuf jixiuf delete the commented
;; (defun erl-complete-thing (what  beg end pattern completions sole)
55c4cc3
@jixiuf jixiuf delete the commented
;; (defun erl-make-completion-alist (list)
fb97319
@jixiuf jixiuf rm debug info
(print completions)
d1f243d
@jixiuf jixiuf erl-complete ,if no complete ,don't delete the region 57a1e77
@jixiuf jixiuf rewrite distel:functions("code","roo").
using Mod:module_info(exported) ,to get all exported function name
01e9cb1
@jixiuf jixiuf (completing-read "complete:" completions nil nil prefix)
no match
846b62d
@jixiuf jixiuf %% distel:functions(code,"roo").
functions(Mod,Prefix)when is_atom(Mod),is_list(Prefix)->
380ca0b
@jixiuf jixiuf Special notes for Gentoo Users 25a2e51
@jixiuf jixiuf Dir = "/usr/share/doc/erlang-15.2/html",
  %% Dir =  proplists:get_value(root_dir, Props, code:root_dir()),
05a6dd3
@jixiuf jixiuf Dir = proplists:get_value(root_dir, Props, code:root_dir()), 974eff9
@jixiuf jixiuf regiex fix 6d528a8
@jixiuf jixiuf fix bug for can't find erlang.html on erts-5.9 9b5a497
@jixiuf jixiuf fix bug for can't find erlang.html on erts-5.9 714e3fa
@jixiuf jixiuf on some linux like gentoo , erlang doc is installed in /usr/share/doc/ 9c2aeda
@jixiuf jixiuf ["a name=",FA,"/a","span class=" ,"bold_code",Sig,"span class=","bol…
…d_code"|_] -> % R15 filename:join

      a_line(M,fa(FA),Sig),[];			% R12-
aa1d331
@jixiuf jixiuf (erl-find-doc-under-point)
can now find out io:format
%% rp(string:tokens("a name='fwrite-1'></a><span class='bold_code'>fwrite(Format) -&gt; ok</span><br><a name='fwrite-2'></a><span class='bold_code'>fwrite(Format, Data) -&gt; ok</span><br><a name='fwrite-3'></a><span class='bold_code'>fwrite(IoDevice, Format, Data) -&gt; ok</span><br><a name='format-1'></a><span class='bold_code'>format(Format) -&gt; ok</span><br><a name='format-2'></a><span class='bold_code'>format(Format, Data) -&gt; ok</span><br><a name='format-3'></a><span class='bold_code'>format(IoDevice, Format, Data) -&gt; ok</span><br><div class='REFBODY'>","<>'")).
    ["a name=",FA,"/a","span class=","bold_code",Sig,"/span", "br"|Tail] ->  % R15 io:format(a,2)
9491989
@jixiuf jixiuf rewrite (defun erl-find-module (&optional arg)
(defun erl-find-module (&optional arg)
  "find the source file of a module,with prefix `C-u' use symbol
 under point as default module to find,if not lists all modules
 for you to choose"
12ae8cf
@jixiuf jixiuf (defun erl-do-find-doc-of-module ()
  "completing read modules  ,and find document of a module with w3m"
40da8c7
@jixiuf jixiuf erl-find-doc
      erl-do-find-doc-of-module
f2f1705
@jixiuf jixiuf erl-find-doc
      erl-do-find-doc-of-module
3cdb3c8
@jixiuf jixiuf find header file in ./../include ,not just in current dir afbe77d
@jixiuf jixiuf rewrite (erl-find-source-pattern-under-point) ,rm unnessary variable
-(defvar erl-erlookup-pattern nil "private variable")
3bbc09f
@jixiuf jixiuf C-c C-d F - Find a module(with prefix ,find module under point). b8ffb4d
@jixiuf jixiuf C-c C-d h - Show the html documentation for the module under point(ma…
…ybe a function)

C-c C-d H - Show the html documentation for a module(with completion support).
ece51c3
@jixiuf jixiuf erlookup include or include_lib regexp with [ \t]* c3fc7ea
@jixiuf jixiuf erlookup include or include_lib regexp with [ \t]* d459f05
@jixiuf jixiuf all_modules()-> 75fe3b1
@jixiuf jixiuf erl-find-module-1 completing-read modules 6789c7b
@jixiuf jixiuf prompt: "find src of module: " 0be42df
@jixiuf jixiuf guess_source_file b5ab97e
@jixiuf jixiuf erl-locate-header-file add (erl-guess-app-dir) 6d0e63b
@jixiuf jixiuf rewrite erl-guess-app-dir 439d7d7
@jixiuf jixiuf erl-extract-include-paths-from-buffer 0ac2e62
@jixiuf jixiuf fix bug go to the definition of a macro or record even it is included…
… in another header file.
d5c45c0
@jixiuf jixiuf guess_source_file fix typo 7e5f5f8
@jixiuf jixiuf erl-complete modules use prefix_matched_modules/1 no xref 77c5b50
@jixiuf jixiuf erl-complete modules use prefix_matched_modules/1 no xref c34bae5
@jixiuf jixiuf otp_doc on windows 6235149
@jixiuf jixiuf [纪秀峰]:fix bug of C-cC-dh otp_doc on windows
受影响的文件:
    otp_doc.erl
a07e49a
@massemanet
Owner

this is just too big for me to process.
please resubmit in more digestible chunks...

@massemanet massemanet closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 20, 2012
  1. @jixiuf

    initial import of erlookup

    Robin Osterberg committed with jixiuf
  2. @jixiuf

    fixed error where old function finding function wasn't found

    Robin Osterberg committed with jixiuf
  3. @jixiuf

    erl-service.el ---

    jixiuf committed
    use (completing-read) instead of (display-completion-list) to complete.
    so anything.el can benefit from it .
    and erl-service.el needn't handle the detail of completing .
    completing-read can do it itself . for example scroll the *Completetion*
  4. @jixiuf

    fixed error not finding definitions in same file

    Robin Osterberg committed with jixiuf
  5. @jixiuf

    added possibility to do 'M-.' on a path in an -include("/path") to op…

    Robin Osterberg committed with jixiuf
    …en header
    
    file directly
  6. @jixiuf

    made the lookups case-sensitive

    Robin Osterberg committed with jixiuf
  7. @jixiuf

    fixed multiple marks in history ring error, fixed a M-. on an include…

    Robin Osterberg committed with jixiuf
    … path error
  8. @jixiuf

    added "./" to list of lookup paths so we can find .hrl files placed i…

    Robin Osterberg committed with jixiuf
    …n the same
    
    dir as the current source file
  9. @jixiuf

    updated the comments

    Robin Österberg committed with jixiuf
  10. @jixiuf

    new regex that works better

    Robin Osterberg committed with jixiuf
  11. @jixiuf

    changed regexp again

    Robin Osterberg committed with jixiuf
  12. @jixiuf

    no need to set erlookup-roots manually anymore, the paths are now loo…

    Robin Osterberg committed with jixiuf
    …ked up on the fly
  13. @jixiuf

    general cleanup

    Robin Osterberg committed with jixiuf
  14. @jixiuf

    did some refactoring and general cleanup, added and updated some comm…

    Robin Osterberg committed with jixiuf
    …ents
  15. @jixiuf

    this reverse is better, just move around pointers instead of copying …

    Robin Österberg committed with jixiuf
    …everything
  16. @jixiuf

    erl-find-module was broken since it tried to use the old erl-find-sou…

    Robin Österberg committed with jixiuf
    …rce. This solution doesn't feel very good, calling erl-find-function when looking up a module? Not very intuitive.
  17. @jixiuf

    Some convenient bindings when jumping between caller functions.

    Robin Osterberg committed with jixiuf
  18. @jixiuf

    Exit erl-who-calls minor mode buffer with "q" binding.

    Robin Osterberg committed with jixiuf
  19. @jixiuf

    Add erlang.el and distel.el as dependencies.

    Robin Osterberg committed with jixiuf
  20. @jixiuf

    Remove unnecessary function.

    Robin Osterberg committed with jixiuf
  21. @jixiuf

    Make erl-find-includes simpler.

    Robin Osterberg committed with jixiuf
  22. @jixiuf
  23. @jixiuf

    Rename find-file-paths to compose-include-file-paths. Cleanup.

    Robin Osterberg committed with jixiuf
  24. @jixiuf

    Rebuild erl-find-pattern-in-file and rename to erl-find-pattern-in-bu…

    Robin Osterberg committed with jixiuf
    …ffer.
  25. @jixiuf

    Send pattern in directly when calling under-point function.

    Robin Osterberg committed with jixiuf
  26. @jixiuf

    Documentation fix.

    Robin Osterberg committed with jixiuf
  27. @jixiuf

    Ripped erl-find-source-pattern apart. Created two separate functions for

    Robin Osterberg committed with jixiuf
    searching though open buffers and files on disk respectively.
  28. @jixiuf

    Preparing for building lookup of variable declarations and such.

    Robin Osterberg committed with jixiuf
  29. @jixiuf

    This is one of those p functions

    Robin Osterberg committed with jixiuf
  30. @jixiuf

    Added erl-find-variable-binding to be able to jump to first occurance of

    Robin Osterberg committed with jixiuf
    a variable in a function clause
  31. @jixiuf

    Some more p functions to determine where the pointer is

    Robin Osterberg committed with jixiuf
    located. Preparing for jumping around using erl-who-calls.
  32. @jixiuf

    The original version didn't match correctly, this should, even if it's

    Robin Osterberg committed with jixiuf
    really ugly.
  33. @jixiuf

    Added ido support for erl-find-module

    Robin Osterberg committed with jixiuf
  34. @jixiuf

    Add n/p keybindings for navigating process-list-mode.

    Robin Osterberg committed with jixiuf
  35. @jixiuf

    Added possibility to grab list of include paths for all modules loaded

    Robin Osterberg committed with jixiuf
    into the node.
  36. @jixiuf

    Added possibility to jump to individual fields in a record definition,

    Robin Osterberg committed with jixiuf
    e.g. M-. on field in #record.field.
    
    Changed the way the regex patterns are retrieved and passed around.
    
    Too much happening here, hope nothing is broken.
  37. @jixiuf
  38. @jixiuf

    hopefully fixed oldstyle backquotes message, pmatch-test still seems …

    Robin Osterberg committed with jixiuf
    …to work correctly
  39. @danielwhite @jixiuf

    Use `set-buffer-multibyte` instead of binding an obselete variable

    danielwhite committed with jixiuf
    This should remain backwards compatible to at least Emacs 21 (at least
    the manual indicates that it existed back then), and we can do this
    because we're opening a temporary buffer to do our work in, so a
    temporary binding isn't really necessary.
  40. @danielwhite @jixiuf
  41. @jixiuf

    privide

    jixiuf committed
  42. @jixiuf

    add find_header_files/2

    jixiuf committed
    find_header_file2/1
    find_header_file/2
  43. @jixiuf
  44. @jixiuf
  45. @jixiuf

    erl-complete support completing header-file in include_lib

    jixiuf committed
     eg:
     -include_lib("kernel/include/-|-"). call ` erl-complete'
     then ,it list
            kernel/include/
           kernel/include/dist.hrl
           kernel/include/dist_util.hrl
           kernel/include/file.hrl
           kernel/include/inet.hrl
           kernel/include/inet_sctp.hrl
           kernel/include/net_address.hrl
  46. @jixiuf
  47. @jixiuf

    (defun erl-find-source-pattern-under-point(pattern)

    jixiuf committed
      "pattern can be a '#str','?str',means finding a record or macro  "
    
      also search current buffer ,not only the header file in current buffer
  48. @jixiuf

    just comment

    jixiuf committed
  49. @jixiuf
  50. @jixiuf

    indent tab space

    jixiuf committed
  51. @jixiuf

    (set-process-query-on-exit-flag fsm-process nil)

    jixiuf committed
    when kill buffer ,don't ask me,maybe new bug will in
  52. @jixiuf
  53. @jixiuf
  54. @jixiuf

    merge rost's version (erl-find-variable-binding)

    jixiuf committed
        M-.
            find the first         occurance of a variable
            (defun erlang-in-arglist-p ()
  55. @jixiuf

    (with-current-buffer buffer

    jixiuf committed
     instead of set-buffer
  56. @jixiuf
  57. @jixiuf

    rewrite (defun find-header-file-by-include-lib-under-point()

    jixiuf committed
    open header-file under point
  58. @jixiuf
  59. @jixiuf

    comment fix

    jixiuf committed
  60. @jixiuf

    no code change ,just change the position of

    jixiuf committed
    (defvar erl-node-name nil        ; initialised below
    
    go get rid of some byte compile waring
    
    and replace Tab with space
    indent
  61. @jixiuf

    no code change ,just indent code ,

    jixiuf committed
    rm some byte compile waring
  62. @jixiuf

    comment unused

    jixiuf committed
     find_includes([all])
  63. @jixiuf

    if only one candidate ,just insert it ,without using

    jixiuf committed
    completing-read
  64. @jixiuf

    add Emakefile

    jixiuf committed
  65. @jixiuf

    ;; Local Variables:

    jixiuf committed
    ;; coding: utf-8
    ;; indent-tabs-mode: nil
    ;; End:
    no code change
  66. @jixiuf

    ;; Local Variables:

    jixiuf committed
    ;; coding: utf-8
    ;; indent-tabs-mode: nil
    ;; End:
    no code change
  67. @jixiuf

    ;; Local Variables:

    jixiuf committed
    ;; coding: utf-8
    ;; indent-tabs-mode: nil
    ;; End:
    no code change
  68. @jixiuf

    ;; Local Variables:

    jixiuf committed
    ;; coding: utf-8
    ;; indent-tabs-mode: nil
    ;; End:
    no code change
  69. @jixiuf

    rewrite

    jixiuf committed
            (defun erl-find-module (&optional use-symbol-under-point-as-default-p)
  70. @jixiuf

    indent ,no code change

    jixiuf committed
  71. @jixiuf

    indent ,no code change

    jixiuf committed
  72. @jixiuf

    fix ,using save-excursion ,

    jixiuf committed
    when searching ?macro #record faild in header file or current buffer ,
    keep point where it is
  73. @jixiuf

    don't use

    jixiuf committed
            (save-excursion
          (set-buffer buffer)
          )
  74. @jixiuf
  75. @jixiuf

    rewrite find_header_files(HeaderPathsInSrc)

    jixiuf committed
    bugfix for rename fun
  76. @jixiuf

    some bug fix ,by adding (save-excursion)

    jixiuf committed
    rewrite some boring function though it still boring
  77. @jixiuf

    fix doc of

    jixiuf committed
    (defun erl-find-pattern-in-buffer (buffer pattern)
    
      "find pattern in buffer  return '(ok newposition) ,or nil"
  78. @jixiuf
  79. @jixiuf

    rewrite (defun erl-complete (node)

    jixiuf committed
    no new feature ,just make
    (defun erl-complete (node)
    easy to understand
  80. @jixiuf

    delete the commented

    jixiuf committed
    ;; (defun erl-complete-thing (what  beg end pattern completions sole)
  81. @jixiuf

    delete the commented

    jixiuf committed
    ;; (defun erl-make-completion-alist (list)
  82. @jixiuf

    rm debug info

    jixiuf committed
    (print completions)
  83. @jixiuf
  84. @jixiuf

    rewrite distel:functions("code","roo").

    jixiuf committed
    using Mod:module_info(exported) ,to get all exported function name
  85. @jixiuf
  86. @jixiuf

    %% distel:functions(code,"roo").

    jixiuf committed
    functions(Mod,Prefix)when is_atom(Mod),is_list(Prefix)->
  87. @jixiuf

    Special notes for Gentoo Users

    jixiuf committed
  88. @jixiuf

    Dir = "/usr/share/doc/erlang-15.2/html",

    jixiuf committed
      %% Dir =  proplists:get_value(root_dir, Props, code:root_dir()),
  89. @jixiuf
  90. @jixiuf

    regiex fix

    jixiuf committed
  91. @jixiuf
  92. @jixiuf
  93. @jixiuf
  94. @jixiuf

    ["a name=",FA,"/a","span class=" ,"bold_code",Sig,"span class=","bol…

    jixiuf committed
    …d_code"|_] -> % R15 filename:join
    
          a_line(M,fa(FA),Sig),[];			% R12-
  95. @jixiuf

    (erl-find-doc-under-point)

    jixiuf committed
    can now find out io:format
    %% rp(string:tokens("a name='fwrite-1'></a><span class='bold_code'>fwrite(Format) -&gt; ok</span><br><a name='fwrite-2'></a><span class='bold_code'>fwrite(Format, Data) -&gt; ok</span><br><a name='fwrite-3'></a><span class='bold_code'>fwrite(IoDevice, Format, Data) -&gt; ok</span><br><a name='format-1'></a><span class='bold_code'>format(Format) -&gt; ok</span><br><a name='format-2'></a><span class='bold_code'>format(Format, Data) -&gt; ok</span><br><a name='format-3'></a><span class='bold_code'>format(IoDevice, Format, Data) -&gt; ok</span><br><div class='REFBODY'>","<>'")).
        ["a name=",FA,"/a","span class=","bold_code",Sig,"/span", "br"|Tail] ->  % R15 io:format(a,2)
  96. @jixiuf

    rewrite (defun erl-find-module (&optional arg)

    jixiuf committed
    (defun erl-find-module (&optional arg)
      "find the source file of a module,with prefix `C-u' use symbol
     under point as default module to find,if not lists all modules
     for you to choose"
  97. @jixiuf

    (defun erl-do-find-doc-of-module ()

    jixiuf committed
      "completing read modules  ,and find document of a module with w3m"
  98. @jixiuf

    erl-find-doc

    jixiuf committed
          erl-do-find-doc-of-module
  99. @jixiuf

    erl-find-doc

    jixiuf committed
          erl-do-find-doc-of-module
  100. @jixiuf
  101. @jixiuf

    rewrite (erl-find-source-pattern-under-point) ,rm unnessary variable

    jixiuf committed
    -(defvar erl-erlookup-pattern nil "private variable")
  102. @jixiuf
  103. @jixiuf

    C-c C-d h - Show the html documentation for the module under point(ma…

    jixiuf committed
    …ybe a function)
    
    C-c C-d H - Show the html documentation for a module(with completion support).
  104. @jixiuf
  105. @jixiuf
  106. @jixiuf

    all_modules()->

    jixiuf committed
  107. @jixiuf
  108. @jixiuf

    prompt: "find src of module: "

    jixiuf committed
  109. @jixiuf

    guess_source_file

    jixiuf committed
  110. @jixiuf
  111. @jixiuf

    rewrite erl-guess-app-dir

    jixiuf committed
  112. @jixiuf
  113. @jixiuf

    fix bug go to the definition of a macro or record even it is included…

    jixiuf committed
    … in another header file.
  114. @jixiuf

    guess_source_file fix typo

    jixiuf committed
Commits on Oct 14, 2012
  1. @jixiuf
  2. @jixiuf
Commits on Dec 19, 2012
  1. @jixiuf

    otp_doc on windows

    jixiuf committed
  2. @jixiuf

    [纪秀峰]:fix bug of C-cC-dh otp_doc on windows

    jixiuf committed
    受影响的文件:
        otp_doc.erl
Something went wrong with that request. Please try again.