aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/emacs/erlang.el
AgeCommit message (Collapse)Author
2017-09-06Merge branch 'maint' into john/erts/merge-zlib-and-vector-qJohn Högberg
2017-09-06Merge branch 'lukas/erts/nif_vector_q/OTP-14598' into maintJohn Högberg
OTP-14520
2017-09-05erts: Add erlang:iolist_to_iovecLukas Larsson
OTP-14520
2017-08-28Merge branch 'rickard/dist/OTP-14459' into rickard/dist/master/OTP-14459Rickard Green
Conflicts: erts/emulator/beam/bif.c erts/emulator/beam/dist.c erts/emulator/beam/dist.h erts/emulator/beam/erl_bif_info.c erts/emulator/beam/erl_node_tables.c erts/emulator/beam/erl_node_tables.h erts/emulator/beam/external.c
2017-08-28Support for distribution controller processesRickard Green
2017-08-23Emacs: Fix default target for xref-find-referencesJohan Claesson
The default target is changed to be just the name at point when xref-find-references is invoked. Previously the default was the same as for xref-find-definitions. This included arity and other things that do not make sense for xref-find-references.
2017-05-09[emacs] fixup Forgot prognDan Gudmundsson
2017-05-09[emacs] Fix paranthesis error advice-addSiri Hansen
2017-05-04Update copyright yearRaimo Niskanen
2017-04-28Merge branch 'dgud/emacs/update-bifs'Lukas Larsson
* dgud/emacs/update-bifs: Update available bifs for 20
2017-04-28Update available bifs for 20Dan Gudmundsson
2017-04-27Restore Emacs 25 supportJohan Claesson
Fix loading of byte-compiled erlang.elc on Emacs 25 and the erlang shell.
2017-04-25Merge pull request #1411 from bbatsov/drop-legacy-codeDan Gudmundsson
Drop some legacy Emacs compatibility code
2017-04-25erts: Add erlang:list_to_port/1 debug bifLukas Larsson
2017-04-25erts: Auto-import port_to_list for consistencyLukas Larsson
Follow the same pattern as pid_to_list
2017-04-21erts: Polish off erlang:list_to_ref/1Lukas Larsson
2017-04-17Remove a bunch of redundant feature and function checksBozhidar Batsov
All of those are present on the target Emacs 24.1.
2017-04-17Drop the redundant erlang-uncomment-region commandBozhidar Batsov
2017-04-16Drop some legacy compatibility codeBozhidar Batsov
This commit removes some compatibility for old GNU Emacs releases and XEmacs. erlang-mode didn't really work on them for a while now, so this is just a cleanup, nothing actually changes. It's part of the ongoing effort to clean up and modernize the codebase of erlang-mode.
2017-02-08Emacs: Consider arity when jumping to definitionsJohan Claesson
Only the xref front-end introduced in Emacs 25 consider arity. It is not implemented for older emacsen. Look for manual page files in lib/erlang/man in erlang-root-dir. Also do not give up in erlang-man-module when not finding the manual page file. Call manual-entry as a fallback. Do not bother to populate menu-bar with man pages when menu-bar-mode is nil. Add erlang extensions also to dired-omit-extensions. Remove some support for Emacs 18 and 19.
2017-02-08Fix a command's nameBozhidar Batsov
2017-02-08Set erlang-mode's encoding to utf-8Bozhidar Batsov
2017-02-08Remove redundant wrappers around Emacs version constantsBozhidar Batsov
2017-02-08Convert some defvars to defcustoms and fix some docstringsBozhidar Batsov
2017-02-08Remove some unneeded backward compatibility codeBozhidar Batsov
2017-02-08Remove redundant erlang-interactive-pBozhidar Batsov
2017-02-08Remove redundant function prog-modeBozhidar Batsov
2017-02-08Remove redundant function erlang-string-to-intBozhidar Batsov
2017-02-08Require Emacs 24.1 in erlang-modeBozhidar Batsov
2017-02-08Fix some whitespace in erlang-modeBozhidar Batsov
2016-11-28Merge branch 'maint'Dan Gudmundsson
* maint: Add an option erlang-icr-indent
2016-11-19Add an option erlang-icr-indentVictor Ren
The option makes it possible to customize the indention of if/case/recieve patterns. Before the change, the indentation of 'if' patterns is 3 steps and 'case' patterns is 4 steps. It cannot be changed alone. Some people prefer other styles, for example, zero indentation. case a of true -> do_something(); false -> do_something_else() end. This patch just adds an option `erlang-icr-indent'. Its default value is `nil' which means keeping the legacy behavior. When non-nil, the pattens of if/case/receive are indented according to `erlang-icr-indent'. "(setq erlang-icr-indent 0)" will keep if/case/receive at the same column of the sub-clauses. Change-Id: I10c32e42dbf69cbe187f55223b9aa7824853e493
2016-11-08Merge branch 'maint'Dan Gudmundsson
* maint: New commands to ease looking up OTP documentation
2016-10-25New commands to ease looking up OTP documentationLeo Liu
- erldoc-browse: open the manual entry for an MFA in the browser - erldoc-apropos: list MFAs containing a substring - erldoc-browse-topic: open user guides in the browser
2016-10-24Merge branch 'maint'Dan Gudmundsson
* maint: Fix whitespace setting in test files Avoid some error reports when stopping mnesia wx: Improve error handling Fix all whitespace-related issues in erlang.el mnesia: Fix double blocked tables which could cause a crash wx: Add wxWindow:getContentScaleFactor
2016-10-11Fix all whitespace-related issues in erlang.elBozhidar Batsov
Having a consistent whitespace usage in the source makes it easier for future contributors to send patches. This commit does the following: * Replace tabs with spaces * Kill trailing whitespace * Disable indent-tabs-mode for erlang.el to prevent tabs from creeping in
2016-10-07Merge branch 'maint'Dan Gudmundsson
* maint: New file erlang-edoc.el to support EDoc in erlang-mode Allow reusing mnesia select continuations Fix guard test for chardata
2016-10-07Merge branch 'dgud/tools/emacs/edoc-support/PR-1195/OTP-13945' into maintDan Gudmundsson
* dgud/tools/emacs/edoc-support/PR-1195/OTP-13945: New file erlang-edoc.el to support EDoc in erlang-mode
2016-10-06New file erlang-edoc.el to support EDoc in erlang-modeLeo Liu
- EDoc markup font-locking and tag completion - EDoc comment indentation
2016-10-05Merge branch 'maint'Dan Gudmundsson
* maint: erlang-mode: do not configure require-final-newline
2016-10-05Merge branch 'dgud/emacs/do-not-require-final-newline/PR-1130' into maintDan Gudmundsson
* dgud/emacs/do-not-require-final-newline/PR-1130: erlang-mode: do not configure require-final-newline
2016-09-05Implement the new ceil/1 and floor/1 guard BIFsBjörn Gustavsson
Implement as ceil/1 and floor/1 as new guard BIFs (essentially part of Erlang language). They are guard BIFs because trunc/1 is a guard BIF. It would be strange to have trunc/1 as a part of the language, but not ceil/1 and floor/1.
2016-08-31Emacs: extend support for compile optionsJohan Claesson
The syntax was limited to atoms, strings and 2-tuples. This covers most compile options but not for example {d,Macro,Value}. Add support for N-tuples and lists. Add a related unit test case.
2016-08-31Function instead of lambda in adviceJohan Claesson
Lambda advice cannot easily be updated.
2016-08-31Enable tag completion in emacs erlang shellJohan Claesson
Completion in erlang shell buffer only works in Emacs 25. Minor cleanup of completion stuff. Add test-case for completion at point. Avoid inf-loop in erlang-end-of-clause when buffer starts with whitespace.
2016-07-15erlang-mode: do not configure require-final-newlineTuncer Ayaz
Erlang source files do not require a final newline. Thus, require-final-newline is a personal setting and should not be configured in the major mode. Setting it here will also negatively impact helpers like ethan-wspace.
2016-06-14Tag completion in Emacs 25Johan Claesson
Adapt tag completion for changes in Emacs 25. Stop storing module:tag entries in the completion table for definitions in hrl-files. These entries make no sense since hrl-files are not modules. Add test-case for tag completion in erlang-test.el. Ensure prog-mode is defined for the sake of Emacs 23 and XEmacs.
2016-05-23emacs: Improve default tag searchDan Gudmundsson
Add current module to non external functions calls. Also improves finding record and macro definitions.
2016-05-23Let find-tag visit definitions in right orderJohan Claesson
The right order is defined by find-tag-tag-order which is a list of predicate functions. Tags matched by the first function shall be visited first. After that tags matched by the seconds function shall be visited and so on. Previous behavior was to visit tags that match any of the functions in the order they appear in the TAGS file. Reported by Dan Gudmundsson.
2016-05-20Merge branch 'dgud/tools/emacs-xref/PR-1051'Dan Gudmundsson
* dgud/tools/emacs-xref/PR-1051: Add xref support in erlang.el Conflicts: lib/tools/emacs/erlang.el