1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
Commit graph

64747 commits

Author SHA1 Message Date
Nils Ackermann
32a4883440 Improve reftex-label-regexps default value
* lisp/textmodes/reftex-vars.el (reftex-label-regexps): Make
keyvals label regexp more strict to better cope with unbalanced
brackets common in math documents.
2015-06-16 09:24:47 +02:00
Glenn Morris
7ca145d3f9 No need for cp51932.el, eucjp-ms.el to not be compiled any more.
* admin/charsets/cp51932.awk, admin/charsets/eucjp-ms.awk:
Don't set no-byte-compile in the outputs.

* lisp/loadup.el: Don't specify uncompiled cp51932, eucjp-ms.
2015-06-15 23:02:58 -07:00
Glenn Morris
e80225000d ; Comment fixes. 2015-06-15 21:24:24 -04:00
Glenn Morris
6ebbc2f698 * lisp/calendar/calendar.el (diary-file): Use locate-user-emacs-file.
* doc/emacs/calendar.texi (Diary, Format of Diary File):
Update for above diary-file change.

: * etc/NEWS: Mention this.
2015-06-15 20:46:01 -04:00
Glenn Morris
c57b0e4b24 * lisp/macros.el (name-last-kbd-macro, kbd-macro-query)
(apply-macro-to-region-lines): Use user-error.
2015-06-15 20:41:54 -04:00
Glenn Morris
2f1f014b93 * lisp/textmodes/page-ext.el (add-new-page, pages-directory)
(pages-directory-for-addresses): Doc fixes.
2015-06-15 20:40:41 -04:00
Stefan Monnier
b95f53f038 * lisp/info.el: Cleanup bytepos/charpos issues
* lisp/international/mule-util.el: Use lexical-binding.
(filepos-to-bufferpos): New function.
* lisp/info.el (Info-find-in-tag-table-1): Use 0-based file positions.
(Info-find-node-2): Use filepos-to-bufferpos (bug#20704).
(Info-read-subfile, Info-search): Use 0-based file positions.
2015-06-15 18:48:08 -04:00
Glenn Morris
4c4a329cf4 ; * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
Fix recent change.
2015-06-15 18:02:33 -04:00
Stefan Monnier
f784272f73 * lisp/progmodes/perl-mode.el: Refine handling of /re/ and y/abc/def/
(perl--syntax-exp-intro-keywords): New var.
(perl--syntax-exp-intro-regexp, perl-syntax-propertize-function): Use it.
(bug#20800).
2015-06-15 17:10:06 -04:00
Paul Eggert
e58a815339 Fix quoting when making derived mode docstring
* lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
Nest regexp-quote inside format, not the reverse.
Problem reported by Artur Malabarba in:
http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00206.html
2015-06-15 12:41:01 -07:00
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
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
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
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
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
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
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
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
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
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
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
Glenn Morris
d9d04bfa49 * lisp/progmodes/executable.el (executable-self-display): Obsolete.
No longer autoload.

* doc/misc/autotype.texi (Executables):
Undocument executable-self-display.
2015-06-10 16:24:32 -04:00
Glenn Morris
dfa1dc1c2b * lisp/progmodes/executable.el (executable-self-display):
Use non-obsolete tail syntax.  (Bug#20779)
(executable-self-display): Doc update.
2015-06-10 16:19:13 -04:00
Stefan Monnier
a0f0f08a52 * lisp/emacs-lisp/checkdoc.el: Use lexical-binding
(finder-known-keywords): Silence byte-compiler.
2015-06-10 09:11:20 -04:00
Glenn Morris
683e995e53 ; * lisp/simple: Revert presumably unintentional deletion of special-mode. 2015-06-09 20:34:50 -07:00
Stefan Monnier
0fad7268a8 * lisp/simple.el (eval-expression): Macroexpand before evaluating (bug#20730) 2015-06-09 22:14:47 -04:00
Stefan Monnier
06193432f2 * lisp/progmodes/sh-script.el: Better handle nested quotes
(sh-here-doc-open-re): Don't mis-match the <<< operator (bug#20683).
(sh-font-lock-quoted-subshell): Make sure double quotes within single
quotes don't mistakenly end prematurely the surrounding string.
2015-06-09 22:10:38 -04:00