Commit Graph
3252 Commits
Author SHA1 Message Date
Eric Meadows-Jönsson cbb7c545e0 Fix size/1 warnings 2014-06-20 14:24:36 +02:00
John Warwick a9bbabfabc Fixing typos in Application doc 2014-06-19 15:49:31 -04:00
José Valim c4d666a4ba Fix typo on Access docs 2014-06-19 16:24:13 +02:00
José Valim 8e824d3da1 Merge pull request #2427 from fishcakez/task_init_call
Set :proc_lib initial call on task
2014-06-19 11:09:39 +02:00
Josh Adams 3a0108edf8 Fix typo in deriving docs 2014-06-18 18:22:05 -05:00
James Fish 7123fb9d09 Set :proc_lib initial call on task
Sets the :proc_lib initial call to the {mod, fun, arity} of the task.

This allows :proc_lib.translate_initial_call(task.pid) to show the mfa
of a task process when debugging. Tools such as :observer and the erlang
shell make use of this function when getting information on a process.

This gives a useful initial call in the crash report sent to the error
logger when a task raises.
2014-06-18 22:58:20 +01:00
Eric Meadows-Jönsson 0f43aca5bc Merge pull request #2424 from ericmj/delay-typespecs
Delay typespec compilation to after expansion
2014-06-18 20:01:17 +02:00
Eric Meadows-Jönsson 587c83cbff Delay typespec compilation to after expansion 2014-06-18 19:49:57 +02:00
José Valim feb9cb645e Remove previously deprecated behaviour 2014-06-18 16:56:59 +02:00
José Valim 8f272c4cc8 Start epmd, clean up warnings 2014-06-18 10:50:48 +02:00
James Fish 4d607ace08 Improve GenEvent.stream/2 cleanup
Makes the cleanup of the Stream resource more efficient by reusing the
monitored process and its link to ensure the handler has been removed.

The flushing of messages, after removing the handler, is also only done
when needed.
2014-06-18 02:05:10 +01:00
José Valim 78adb5b200 Ensure handler does not get stuck and properly clean up mailbox 2014-06-17 23:12:02 +02:00
José Valim 311efb66a9 Add GenEvent.stream modes and make it sync by default 2014-06-17 20:20:50 +02:00
José Valim 182cbfe541 Update to Unicode 7.0.0 2014-06-17 17:17:32 +02:00
José Valim 38aa5c57e5 Add Node.start/3 and Node.stop/0, closes #2406 2014-06-17 16:56:50 +02:00
José Valim 4f93dae442 Merge pull request #2415 from alco/list-format
Reformat unordered lists in all docstrings
2014-06-17 16:39:43 +02:00
Alexei Sholik 41c74e9682 Fix ordered list formatting
The rules are similar to those for the unordered lists (see previous
commits). Subsequent lines and paragraphs should be aligned to the
beginning of the sentence on the first line, like this:

  1. This is a list item,
     it has a second line.

     Also paragraph.

  2. Second list item.

         code fragment

Short, one-sentence items that can be read as part of the surrounding
paragraph can start with a non-capital letter
2014-06-17 16:34:20 +03:00
Alexei Sholik e0f5dd506a Apply uniform capitalization and punctuation rules to all lists
* Never use capital letters after `-`. Sentences start right after
    the bullet and continue to the first period.

  * When list elements are one or two sentences, use non-capitalized
    format without terminators.

    The two sentences are converted into one, separated by a semicolon.
    This mainly applies to the cases with short sentences or when only
    one of many list elements needs to have two sentences.

    Example:

        * `:opt_a` - basic description, no terminator
        * `:opt_b` - also short description; this used to be second
          sentence

  * When at least one list element needs to have real sentences, 
    the whole list is formatted like that, with a period at the end
    of each element:

        * `:opt_a` - this is still short.

        * `:opt_b` or `:opt_c` - but this is longer. May have multiple 
          sentences.

          Or even paragraphs.
2014-06-17 16:25:16 +03:00
José Valim f90eeaa024 Fix map printing to indent 2 levels, closes #2165 2014-06-17 13:57:21 +02:00
José Valim 9451e69996 Improve task log based on @fishcakez feedback 2014-06-17 13:26:22 +02:00
José Valim 924350868a Deprecate previously soft deprecated conversion functions 2014-06-17 13:21:34 +02:00
José Valim 90951be944 Remove deprecated on_exit callbacks 2014-06-17 12:37:08 +02:00
José Valim 65cf31d32d Do not match files starting with . in Path.wildcard/2 by default 2014-06-17 11:33:25 +02:00
Aleksei Magusev 8635fcc869 Make URI.encode* to work only with binaries 2014-06-17 12:41:01 +04:00
José Valim 65809a5644 Merge pull request #2416 from chyndman/win-volume-path-normalize
Add normalize dispatch for Windows volume letters
2014-06-17 10:35:09 +02:00
José Valim d53a315069 Merge pull request #2414 from christhekeele/empty-range-slice
Ensures Enum.slice always returns a list.
2014-06-17 10:31:27 +02:00
José Valim 8d2199c3f3 Merge pull request #2418 from jw2013/master
fix typo in docstring of String.at and String.slice
2014-06-17 10:29:52 +02:00
jw2013 54e69c023a fix typo in docstring of Enum.at and Enum.slice 2014-06-16 21:48:39 -04:00
Alexei Sholik 55503239a4 Add missing backticks 2014-06-17 03:00:00 +03:00
Chris Hyndman 19d8446ac0 Improved match and guard 2014-06-16 16:50:11 -07:00
Chris Hyndman 5a94906f1d Add normalize dispatch for Windows volume letters 2014-06-16 16:19:57 -07:00
Alexei Sholik 915ba1bb29 Reformat unordered lists in all docstrings
List items are marked with a star (*). Bullets marking list elements
must have a 2-space indent. The continuation lines should be indented
by 2 more spaces.

The second and subsequent paragraphs need to be indented 4 spaces
from the beginning of the line to be included in the list item.

The code fragments have to be indented 8 spaces from the beginning
of the line (or 4 spaces from the beginning of the preceding paragraph).

Sublists are marked with a hyphen (-). They follow the rules above
with the difference that their initial indent will be greater
(8 spaces from the beginning of the line).
2014-06-17 02:01:27 +03:00
Chris Keele d35d03a8ee Ensures Enum.slice always returns a list.
Both Enum.slice/3 and Enum.slice/2 now will return empty lists for
impossible or out of bound ranges, rather than `nil`.

Fixes #2410.
2014-06-16 17:22:01 -05:00
José Valim b959049c77 Properly indent tables 2014-06-16 23:57:14 +02:00
Chris Keele 000a174353 Ensures String.slice returns a string.
Both String.slice/3 and String.slice/2 now will return empty strings for
impossible or out of bound ranges.
2014-06-16 15:45:28 -05:00
José Valim b126e3b089 Merge pull request #2408 from ericmj/base-case
Add options for which case to use in Base functions
2014-06-16 22:04:15 +02:00
Eric Meadows-Jönsson 91faec5f65 Add options for which case to use in Base functions 2014-06-16 21:36:26 +02:00
José Valim 0c8c6f03e0 Clarify quote docs 2014-06-16 16:42:05 +02:00
José Valim ec0e7d8056 Remove get_in/1 2014-06-16 15:49:19 +02:00
Eric Meadows-Jönsson dacb30ad05 Fix path normalization of "/.."
Closes #2404.
2014-06-14 00:51:59 +02:00
José Valim d54d0f6a6b Log when tasks go down 2014-06-13 17:11:47 +02:00
Aleksei Magusev b3cc527126 Introduce URI.decode_www_form/1 function 2014-06-13 16:31:26 +04:00
Aleksei Magusev 6b45855f0e Fix edge cases for URI.decode/1 2014-06-13 16:30:16 +04:00
Aleksei Magusev 40835556da Introduce URI.encode_www_form/1 function 2014-06-13 16:30:16 +04:00
Alexei Sholik 9a56e5ef5a Fix a typo in Kernel docs 2014-06-13 01:08:00 +03:00
Alexei Sholik e942c07f34 Do not allow underscores in option names. Closes #2391 2014-06-12 19:26:47 +03:00
José Valim aa09b1e2d2 Improve docs for URI 2014-06-11 11:26:24 +02:00
Aleksei Magusev ffa2abd8c6 Introduce URI.encode/2 function
`URI.encode/1` escapes character if it
is not satisfied `URI.char_unescaped?/1`
2014-06-10 19:56:23 +04:00
Aleksei Magusev 14722ba102 Make URI.encode/1 to conform to RFC 3986 2014-06-10 16:20:44 +04:00
Aleksei Magusev 7f4437ece5 Improve function naming in URI 2014-06-10 16:20:43 +04:00