1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-30 19:53:09 +00:00
Commit Graph

121970 Commits

Author SHA1 Message Date
Eli Zaretskii
ee715b9f6d Fix current-iso639-language on MS-Windows
* lisp/international/mule-cmds.el (set-locale-environment):
Downcase the locale name before interning it.  This is so the
'current-iso639-language' on MS-Windows matches the ':lang'
property of font-spec objects.
2015-06-15 20:10:19 +03:00
Eli Zaretskii
643e0527b1 Limit Symbola usage some more
* lisp/international/fontset.el (setup-default-fontset): Limit
Symbol coverage of Currency Symbols to u+20B6..u+20CF.
(Bug#20727)
2015-06-15 19:11:43 +03:00
Nicolas Petton
c8dc4d6804 * lisp/emacs-lisp/map.el (map-let): Better docstring. 2015-06-15 12:43:09 +02:00
Paul Eggert
08bad175d4 Spelling fixes 2015-06-14 22:56:45 -07:00
Paul Eggert
a281b3db3e ; Omit mistaken update 2015-06-14 22:24:25 -07:00
Glenn Morris
1f9974ad83 * lisp/version.el (emacs-repository-version-git): Demote errors.
Check result is a hash.
2015-06-14 16:33:05 -07:00
Artur Malabarba
3881af45bf * lisp/emacs-lisp/package.el (package--with-work-buffer-async):
Catch errors that happen before going async.  (Bug#20809)
2015-06-14 22:48:18 +01:00
Eli Zaretskii
2f09f89524 Another improvement of documentation of set-fontset-font
* doc/lispref/display.texi (Fontsets): Say explicitly that
CHARACTER can be a single codepoint.
* src/fontset.c (Fset_fontset_font): Doc fix.
2015-06-14 18:13:06 +03:00
Eli Zaretskii
fce59d43e4 Another improvement for symbol and punctuation characters
* lisp/international/fontset.el (setup-default-fontset): Exclude
from Symbola character ranges for symbols and punctuation covered
well by popular Unicode fonts.  Prefer fixed-misc Unicode font, if
installed and where its coverage of symbols and punctuation is
known to be good.  (Bug#20727)
2015-06-14 18:02:55 +03:00
Christoph Wedler
52da972751 Some generic support for multi-mode indentation.
* lisp/progmodes/prog-mode.el (prog-indentation-context): New
	variable.
	(prog-first-column, prog-widen): New convenience functions.
2015-06-14 14:47:16 +00:00
Artur Malabarba
57e7666477 * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):
Don't assume that `tabulated-list-printer' will leave point at the
end of the buffer.  (Bug#20810)
2015-06-14 14:40:48 +01:00
Glenn Morris
79bd666940 ; Auto-commit of ChangeLog files. 2015-06-14 06:24:02 -04:00
Glenn Morris
86076e6552 Tweaks for getting repository version; a bit more like it was for bzr.
* lisp/version.el (emacs-repository-version-git)
(emacs-repository--version-git-1): New functions,
split from emacs-repository-get-version.
(emacs-repository-get-version): Make the second argument meaningful.
2015-06-13 17:17:47 -07:00
Glenn Morris
e5ab4d92ec * lisp/startup.el (command-line-1): Inform if skipping relative
file names due to deleted PWD.
2015-06-13 16:41:55 -07:00
Glenn Morris
9bdd1c4c90 * src/xsmfns.c (x_session_initialize): Avoid libSM crash
when starup directory is missing.  (Bug#18851)
(errno.h): Include it.
2015-06-13 16:35:54 -07:00
Paul Eggert
8afef016e2 Better fix for documenting X as "X"
Fix suggested by Stefan Monnier.
* lisp/help-fns.el (help-fns--signature):
Insert "`X", not "(\` X)", when documenting `X (Bug#20759).
* lisp/help.el (help-split-fundoc, help--make-usage-docstring):
Don't treat `X specially, as help-fns--signature now handles this.
2015-06-13 09:35:46 -07:00
Eli Zaretskii
eb92f89c21 Improve the default fontset when Symbola is not installed
* lisp/international/fontset.el (setup-default-fontset): Only
prepend Symbola and FreeMono font specs for symbols and
punctuation; do not replace the default spec for them.  This
should have better results when Symbola/FreeMono are not
installed.  (Bug#20727)
2015-06-13 14:51:33 +03:00
Eli Zaretskii
f75d189ed8 Improve documentation of ':lang' in font specs
* src/font.c (Ffont_spec): Doc fix: elaborate on the values and
use of the ':lang' property of the font spec.
* doc/emacs/frames.texi (Fonts): Document the language names that
can be in the STYLE part of XLFD.
* doc/lispref/display.texi (Low-Level Font): Document the ':lang'
property.
2015-06-13 13:23:42 +03:00
Eli Zaretskii
2f6956a038 * nt/README: Don't advertise the (obsolescent) w32 FAQ. 2015-06-13 12:34:09 +03:00
Eli Zaretskii
6f9d213331 * nt/README.W32: Don't advertise the (obsolescent) w32 FAQ. 2015-06-13 11:41:08 +03:00
Eli Zaretskii
2276a19d88 Revert last change in fontset.el
* lisp/international/fontset.el (setup-default-fontset): Revert
the change "Configure Symbola font only if installed", since font
search is evidently not yet set up when this function is called.
(Bug#20727)
2015-06-13 10:31:37 +03:00
Glenn Morris
1fabab62f8 Ensure early startup warnings are visible at the end. (Bug#20792)
* lisp/emacs-lisp/warnings.el (display-warning):
If startup isn't complete, delay the warning.

* lisp/startup.el (normal-top-level, command-line):
Let display-warning automatically handle the needed delays.
Run delayed-warnings-hook.
2015-06-12 19:26:21 -07:00
Glenn Morris
147c3915a5 * lisp/version.el (emacs-repository-get-version):
Avoid calling external executable if possible.  (Bug#20799)
2015-06-12 21:22:00 -04:00
Paul Eggert
351739ba14 Document X as "X", not as "(` X)"
* lisp/help.el (help-split-fundoc, help--make-usage-docstring):
Document (backquote FOO) as "`FOO", not as "(` FOO)" (Bug#20759).
2015-06-12 16:28:09 -07:00
Paul Eggert
d4870a525d * src/print.c (print_object): Minor simplification. 2015-06-12 16:28:09 -07:00
Glenn Morris
f8e26cd3af * src/buffer.c (init_buffer): Add final newline to message. 2015-06-12 18:07:48 -04:00
Glenn Morris
37fdfbfeb2 ; * lisp/international/fontset.el (setup-default-fontset): Fix typo. 2015-06-12 18:03:10 -04:00
Paul Eggert
203e84c6cf Configure Symbola font only if installed
* lisp/international/fontset.el (setup-default-fontset):
Don't specify the Symbola font if it's not installed.
Likewise for FreeMono.  (Bug#20727)
2015-06-12 13:40:29 -07:00
Eli Zaretskii
b63d0a5ab3 Configure Symbola font only for symbols and punctuation
* lisp/international/fontset.el (setup-default-fontset): Leave
only symbols and punctuation in the fontset setup for Symbola
font; remove "Greek and Coptic" and "Cyrillic Supplement".
(Bug#20798)
2015-06-12 22:45:41 +03:00
Andreas Schwab
c660910d20 Fix crash in fontset-info
* src/fontset.c (Ffontset_info): Check that the RFONT-DEF elt is
non-nil.
2015-06-12 21:18:05 +02:00
Paul Eggert
00119c6cb6 Port to Solaris 10 sparc + Sun C 5.13
* configure.ac (SETUP_SLAVE_PTY) [sol2* | unixware]:
Adjust to process.c change.
* src/process.c (create_process): Declare volatile variables at
top level of this function, so that they're less likely to be
reused later in the function in the code executed by the vforked
child.  Do not declare locals used only in the vforked child, as
they might share memory with locals still live in the parent.
Instead, use the same variables in the child as in the parent.
This works around a subtle bug that causes a garbage collector
crash when Emacs is built with Sun C 5.13 sparc on Solaris 10.
2015-06-11 22:50:30 -07:00
Glenn Morris
f7a381382b * lisp/startup.el (normal-top-level): Don't let *Messages* get
a nil default-directory.
2015-06-11 21:57:47 -07:00
Glenn Morris
b7730b299b * lisp/startup.el (normal-top-level): Use delay-warning. (Bug#20792) 2015-06-11 21:12:29 -04:00
Glenn Morris
abeb7f3c5f ; * lisp/startup.el (normal-top-level): Fix previous change. 2015-06-11 20:47:45 -04:00
Glenn Morris
ebbc6a4782 Some progress towards starting with PWD deleted. (Bug#18851)
* src/buffer.c (init_buffer): Handle get_current_dir_name failures.

* lisp/startup.el (normal-top-level, command-line-1):
* lisp/minibuffer.el (read-file-name-default):
Handle default-directory being nil.
2015-06-11 20:34:54 -04:00
Paul Eggert
32e53667a9 Fix "not a tty" bug on Solaris 10
* configure.ac (PTY_OPEN): Define to plain 'open'
on SVR4-derived hosts, so that the O_CLOEXEC flag isn't set.
* src/process.c (allocate_pty): Set the O_CLOEXEC flag after
calling PTY_TTY_NAME_SPRINTF, for the benefit of SVR4-derived
hosts that call grantpt which does its work via a setuid subcommand
(Bug#19191, Bug#19927, Bug#20555, Bug#20686).
Also, set O_CLOEXEC even if PTY_OPEN is not defined, since it
seems relevant in that case too.
2015-06-11 16:42:10 -07:00
Juri Linkov
8d0efee90c * lisp/bindings.el (debug-ignored-errors): Add mark-inactive.
* lisp/simple.el (kill-region): Replace 'error' with 'user-error'.
(Bug#20785)
2015-06-12 02:17:23 +03:00
Glenn Morris
f18cadab44 * lisp/international/characters.el (char-script-table): Fix typo. 2015-06-11 18:23:08 -04:00
Paul Eggert
b220562637 Fix quoting of help for functions with odd names
While investigating Bug#20759, I discovered other quoting problems:
C-h f mishandled characters like backslash and quote in function names.
This fix changes the behavior so that 'C-h f pcase RET' now
generates "... (\` QPAT) ..." instead of "... (` QPAT) ...",
because '(format "%S" '(` FOO))' returns "(\\` FOO)".  A comment
in src/lread.c's read1 function says that the backslash will be
needed starting in Emacs 25, which implies that 'format' is
correct and the old pcase documention was wrong to omit the backslash.
* lisp/emacs-lisp/nadvice.el (advice--make-docstring):
* lisp/help-fns.el (help-fns--signature):
* lisp/help.el (help-add-fundoc-usage):
* lisp/progmodes/elisp-mode.el (elisp-function-argstring):
Use help--make-usage-docstring rather than formatting
help-make-usage.
* lisp/emacs-lisp/pcase.el (pcase--make-docstring):
Return raw docstring.
* lisp/help-fns.el (help-fns--signature): New arg RAW, to return
raw docstring.  Take more care to distinguish raw from cooked dstrings.
(describe-function-1): Let help-fns--signature substitute
command keys.
* lisp/help.el (help--docstring-quote): New function.
(help-split-fundoc): Use it, to quote funny characters more
systematically.
(help--make-usage): Rename from help-make-usage, since this
should be private.  Leave an obsolete alias for the old name.
(help--make-usage-docstring): New function.
* test/automated/help-fns.el (help-fns-test-funny-names): New test.
2015-06-11 10:24:38 -07:00
Stefan Monnier
eda386fc71 * lisp/thingatpt.el (in-string-p): Revert last change,
since in-string-p is not used in thingatpt.el but only from outside.

Also, use lexical binding.
2015-06-11 13:20:41 -04:00
Eli Zaretskii
35d19cc2a1 ; * ChangeLog.2: Remove entries from a merged feature branch. 2015-06-11 19:10:42 +03:00
Artur Malabarba
fe5ba92402 * lisp/let-alist.el (let-alist--deep-dot-search): Fix cons
* test/automated/let-alist.el (let-alist-cons): Test it.
2015-06-11 15:08:32 +01:00
Nicolas Richard
ece5691fe6 * src/syntax.c (Fbackward_prefix_chars): Reword docstring 2015-06-11 11:49:00 +02:00
Glenn Morris
45deb048ad * build-aux/gitlog-to-emacslog: Also ignore pointless merge commits.
; * ChangeLog.2: Related fixes.
2015-06-10 21:37:06 -04:00
Glenn Morris
62afb85efb Improve generated ChangeLog for gitmerge.el commits. (Bug#20717)
* build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.

* admin/gitmerge.el (gitmerge-commit-message):
Exclude "skipped" messages from ChangeLog once again.

; * ChangLog.2: Related fixes.
2015-06-10 21:13:51 -04:00
Glenn Morris
cabaa992fa Slight namespace cleanup for thingatpt.el.
* lisp/thingatpt.el (thing-at-point--in-string-p)
(thing-at-point--end-of-sexp, thing-at-point--beginning-of-sexp)
(thing-at-point--read-from-whole-string): Rename from
old versions without "thing-at-point--" prefix.
Keep old versions as obsolete aliases.  Update all uses.
2015-06-10 19:07:09 -04:00
Glenn Morris
7c24a2c210 * lisp/emacs-lisp/checkdoc.el (checkdoc-get-keywords):
Move requiring of finder from here...
(checkdoc-package-keywords): ... to here.
2015-06-10 17:06:02 -04:00
Glenn Morris
fb7234019f Use 'user-error' in a few calendar files.
* lisp/calendar/appt.el (appt-add):
* lisp/calendar/calendar.el (calendar-absolute-from-gregorian)
(calendar-generate):
* lisp/calendar/diary-lib.el (diary-mail-entries, diary-cyclic):
Replace 'error' with 'user-error'.
2015-06-10 17:04:54 -04:00
Glenn Morris
7de8137710 * lisp/progmodes/f90.el (f90-backslash-not-special): Use user-error. 2015-06-10 16:57:59 -04:00
Glenn Morris
6bf9bdb4b1 * lisp/files-x.el (add-file-local-variable):
Special-case 'lexical-binding'.  (Bug#20641)
2015-06-10 16:38:18 -04:00