diff options
| author | Paul Eggert | 2016-08-05 14:06:59 -0700 |
|---|---|---|
| committer | Paul Eggert | 2016-08-05 14:06:59 -0700 |
| commit | 80fcf41d31ae2a4815a1cb63bf08a88a3c7910b5 (patch) | |
| tree | 6fd85620c6a3ae3667720695cfc42c659b665f64 | |
| parent | 8d9ad899f11ec2a6763617ba069fdaf3889ac4e1 (diff) | |
| parent | 850ba444a7be542c8dc92efbeb4031868f3f779d (diff) | |
| download | emacs-80fcf41d31ae2a4815a1cb63bf08a88a3c7910b5.tar.gz emacs-80fcf41d31ae2a4815a1cb63bf08a88a3c7910b5.zip | |
Merge from origin/emacs-25
850ba44 Clarify lexical binding with symbol args behavior
f981b31 * lisp/net/tramp-sh.el (tramp-remote-path): Doc fix.
68fc964 * lisp/net/tramp-sh.el (tramp-remote-path): Doc fix. (Bug#23...
21110af Avoid assertion violations when rendering some fonts
6192b6c Document more details of package activation
272ddc6 Fixup warning message regarding HOME a bit more
43206d6 * lisp/leim/quail/indian.el ("bengali-probhat"): Change indic...
d41f7ff Fix input method "probhat" for Bengali
c150a64 ; Fix typo in commit before last
ebf0472 Add to elisp-completion-at-point's docstring
fd9fad0 Give more helpful warning about setting HOME
ea6b01d ; * lisp/term.el (term-mode): FIXME comment about bidi reorde...
# Conflicts:
# lisp/term.el
| -rw-r--r-- | doc/emacs/package.texi | 10 | ||||
| -rw-r--r-- | doc/lispref/variables.texi | 14 | ||||
| -rw-r--r-- | lisp/leim/quail/indian.el | 4 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 8 | ||||
| -rw-r--r-- | lisp/progmodes/elisp-mode.el | 8 | ||||
| -rw-r--r-- | src/dispextern.h | 3 | ||||
| -rw-r--r-- | src/w32.c | 11 |
7 files changed, 37 insertions, 21 deletions
diff --git a/doc/emacs/package.texi b/doc/emacs/package.texi index 3c099838059..5662c857de9 100644 --- a/doc/emacs/package.texi +++ b/doc/emacs/package.texi | |||
| @@ -238,10 +238,12 @@ controlled by the value of @code{package-menu-hide-low-priority}.) | |||
| 238 | 238 | ||
| 239 | Once a package is downloaded and installed, it is @dfn{loaded} into | 239 | Once a package is downloaded and installed, it is @dfn{loaded} into |
| 240 | the current Emacs session. Loading a package is not quite the same as | 240 | the current Emacs session. Loading a package is not quite the same as |
| 241 | loading a Lisp library (@pxref{Lisp Libraries}); its effect varies | 241 | loading a Lisp library (@pxref{Lisp Libraries}); loading a package |
| 242 | from package to package. Most packages just make some new commands | 242 | adds its directory to @code{load-path} and loads its autoloads. The |
| 243 | available, while others have more wide-ranging effects on the Emacs | 243 | effect of a package's autoloads varies from package to package. Most |
| 244 | session. For such information, consult the package's help buffer. | 244 | packages just make some new commands available, while others have more |
| 245 | wide-ranging effects on the Emacs session. For such information, | ||
| 246 | consult the package's help buffer. | ||
| 245 | 247 | ||
| 246 | By default, Emacs also automatically loads all installed packages in | 248 | By default, Emacs also automatically loads all installed packages in |
| 247 | subsequent Emacs sessions. This happens at startup, after processing | 249 | subsequent Emacs sessions. This happens at startup, after processing |
diff --git a/doc/lispref/variables.texi b/doc/lispref/variables.texi index dd3f18be4e1..418a4161a7a 100644 --- a/doc/lispref/variables.texi +++ b/doc/lispref/variables.texi | |||
| @@ -974,7 +974,7 @@ itself. | |||
| 974 | 974 | ||
| 975 | @cindex lexical environment | 975 | @cindex lexical environment |
| 976 | Here is how lexical binding works. Each binding construct defines a | 976 | Here is how lexical binding works. Each binding construct defines a |
| 977 | @dfn{lexical environment}, specifying the symbols that are bound | 977 | @dfn{lexical environment}, specifying the variables that are bound |
| 978 | within the construct and their local values. When the Lisp evaluator | 978 | within the construct and their local values. When the Lisp evaluator |
| 979 | wants the current value of a variable, it looks first in the lexical | 979 | wants the current value of a variable, it looks first in the lexical |
| 980 | environment; if the variable is not specified in there, it looks in | 980 | environment; if the variable is not specified in there, it looks in |
| @@ -1032,11 +1032,13 @@ lives on even after the @code{let} binding construct has exited. Each | |||
| 1032 | time we evaluate the closure, it increments @code{x}, using the | 1032 | time we evaluate the closure, it increments @code{x}, using the |
| 1033 | binding of @code{x} in that lexical environment. | 1033 | binding of @code{x} in that lexical environment. |
| 1034 | 1034 | ||
| 1035 | Note that functions like @code{symbol-value}, @code{boundp}, and | 1035 | Note that unlike dynamic variables which are tied to the symbol |
| 1036 | @code{set} only retrieve or modify a variable's dynamic binding | 1036 | object itself, the relationship between lexical variables and symbols |
| 1037 | (i.e., the contents of its symbol's value cell). Also, the code in | 1037 | is only present in the interpreter (or compiler). Therefore, |
| 1038 | the body of a @code{defun} or @code{defmacro} cannot refer to | 1038 | functions which take a symbol argument (like @code{symbol-value}, |
| 1039 | surrounding lexical variables. | 1039 | @code{boundp}, and @code{set}) can only retrieve or modify a |
| 1040 | variable's dynamic binding (i.e., the contents of its symbol's value | ||
| 1041 | cell). | ||
| 1040 | 1042 | ||
| 1041 | @node Using Lexical Binding | 1043 | @node Using Lexical Binding |
| 1042 | @subsection Using Lexical Binding | 1044 | @subsection Using Lexical Binding |
diff --git a/lisp/leim/quail/indian.el b/lisp/leim/quail/indian.el index d9438a20434..728e3529218 100644 --- a/lisp/leim/quail/indian.el +++ b/lisp/leim/quail/indian.el | |||
| @@ -472,8 +472,8 @@ Full key sequences are listed below:") | |||
| 472 | 472 | ||
| 473 | ;; Probhat Input Method | 473 | ;; Probhat Input Method |
| 474 | (quail-define-package | 474 | (quail-define-package |
| 475 | "probhat" "Bengali-probhat" "probhat" t | 475 | "bengali-probhat" "Bengali" "BngPB" t |
| 476 | "Porbhat for Bangla" nil t nil nil nil nil nil nil nil nil t) | 476 | "Probhat keyboard for Bengali/Bangla" nil t nil nil nil nil nil nil nil nil t) |
| 477 | 477 | ||
| 478 | (quail-define-rules | 478 | (quail-define-rules |
| 479 | ("!" ?!) | 479 | ("!" ?!) |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 62bf1a6c081..f79394ac9b7 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -529,13 +529,15 @@ tilde expansion, all directory names starting with `~' will be ignored. | |||
| 529 | 529 | ||
| 530 | `Default Directories' represent the list of directories given by | 530 | `Default Directories' represent the list of directories given by |
| 531 | the command \"getconf PATH\". It is recommended to use this | 531 | the command \"getconf PATH\". It is recommended to use this |
| 532 | entry on top of this list, because these are the default | 532 | entry on head of this list, because these are the default |
| 533 | directories for POSIX compatible commands. On remote hosts which | 533 | directories for POSIX compatible commands. On remote hosts which |
| 534 | do not offer the getconf command (like cygwin), the value | 534 | do not offer the getconf command (like cygwin), the value |
| 535 | \"/bin:/usr/bin\" is used instead of. | 535 | \"/bin:/usr/bin\" is used instead. This entry is represented in |
| 536 | the list by the special value `tramp-default-remote-path'. | ||
| 536 | 537 | ||
| 537 | `Private Directories' are the settings of the $PATH environment, | 538 | `Private Directories' are the settings of the $PATH environment, |
| 538 | as given in your `~/.profile'." | 539 | as given in your `~/.profile'. This entry is represented in |
| 540 | the list by the special value `tramp-own-remote-path'." | ||
| 539 | :group 'tramp | 541 | :group 'tramp |
| 540 | :type '(repeat (choice | 542 | :type '(repeat (choice |
| 541 | (const :tag "Default Directories" tramp-default-remote-path) | 543 | (const :tag "Default Directories" tramp-default-remote-path) |
diff --git a/lisp/progmodes/elisp-mode.el b/lisp/progmodes/elisp-mode.el index 2fbd60db0dd..49d39126c05 100644 --- a/lisp/progmodes/elisp-mode.el +++ b/lisp/progmodes/elisp-mode.el | |||
| @@ -452,7 +452,13 @@ It can be quoted, or be inside a quoted form." | |||
| 452 | ((facep sym) (find-definition-noselect sym 'defface))))) | 452 | ((facep sym) (find-definition-noselect sym 'defface))))) |
| 453 | 453 | ||
| 454 | (defun elisp-completion-at-point () | 454 | (defun elisp-completion-at-point () |
| 455 | "Function used for `completion-at-point-functions' in `emacs-lisp-mode'." | 455 | "Function used for `completion-at-point-functions' in `emacs-lisp-mode'. |
| 456 | If the context at point allows only a certain category of | ||
| 457 | symbols (e.g. functions, or variables) then the returned | ||
| 458 | completions are restricted to that category. In contexts where | ||
| 459 | any symbol is possible (following a quote, for example), | ||
| 460 | functions are annotated with \"<f>\" via the | ||
| 461 | `:annotation-function' property." | ||
| 456 | (with-syntax-table emacs-lisp-mode-syntax-table | 462 | (with-syntax-table emacs-lisp-mode-syntax-table |
| 457 | (let* ((pos (point)) | 463 | (let* ((pos (point)) |
| 458 | (beg (condition-case nil | 464 | (beg (condition-case nil |
diff --git a/src/dispextern.h b/src/dispextern.h index 1325ff9da28..f2c42de6cd2 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1542,7 +1542,8 @@ struct glyph_string | |||
| 1542 | large vertical space. The heuristics is in the factor of 3. We | 1542 | large vertical space. The heuristics is in the factor of 3. We |
| 1543 | ignore the ascent and descent values reported by such fonts, and | 1543 | ignore the ascent and descent values reported by such fonts, and |
| 1544 | instead go by the values reported for individual glyphs. */ | 1544 | instead go by the values reported for individual glyphs. */ |
| 1545 | #define FONT_TOO_HIGH(ft) ((ft)->ascent + (ft)->descent > 3*(ft)->pixel_size) | 1545 | #define FONT_TOO_HIGH(ft) \ |
| 1546 | ((ft)->pixel_size > 0 && (ft)->ascent + (ft)->descent > 3*(ft)->pixel_size) | ||
| 1546 | 1547 | ||
| 1547 | 1548 | ||
| 1548 | /*********************************************************************** | 1549 | /*********************************************************************** |
| @@ -2822,10 +2822,13 @@ init_environment (char ** argv) | |||
| 2822 | } | 2822 | } |
| 2823 | if (strcmp (env_vars[i].name, "HOME") == 0 && !appdata) | 2823 | if (strcmp (env_vars[i].name, "HOME") == 0 && !appdata) |
| 2824 | Vdelayed_warnings_list | 2824 | Vdelayed_warnings_list |
| 2825 | = Fcons (listn (CONSTYPE_HEAP, 2, | 2825 | = Fcons |
| 2826 | intern ("initialization"), | 2826 | (listn (CONSTYPE_HEAP, 2, |
| 2827 | build_string ("Setting HOME to C:\\ by default is deprecated")), | 2827 | intern ("initialization"), build_string |
| 2828 | Vdelayed_warnings_list); | 2828 | ("Use of `C:\\.emacs' without defining `HOME'\n" |
| 2829 | "in the environment is deprecated, " | ||
| 2830 | "see `Windows HOME' in the Emacs manual.")), | ||
| 2831 | Vdelayed_warnings_list); | ||
| 2829 | } | 2832 | } |
| 2830 | 2833 | ||
| 2831 | if (lpval) | 2834 | if (lpval) |