1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-06 20:49:33 +00:00

121895 Commits

Author SHA1 Message Date
Glenn Morris
cf94a3e0c4 * lisp/emacs-lisp/pcase.el (pcase--u1):
Paper-over today's bootstrap failure.
2015-06-16 18:27:02 -04:00
Nicolas Petton
70a567971a * lisp/emacs-lisp/seq.el: Fix a byte-compiler warnings related to pcase. 2015-06-16 23:49:35 +02:00
Nicolas Petton
7d5c120fed * lisp/emacs-lisp/map.el (map-into): Fix a byte-compiler warning. 2015-06-16 23:04:03 +02:00
Nicolas Petton
3986489aef Better confirmation message in `find-alternate-file' (Bug#20830)
* lisp/files.el (find-alternate-file'): Improve the confirmation
message to show the buffer name.
2015-06-16 22:52:24 +02:00
Nicolas Petton
deb6e89caf Better docstring for null. (Bug#20815)
* src/data.c (null): Improves the docstring, saying what null returns
when OBJECT is non-nil.
2015-06-16 21:47:46 +02:00
Stefan Monnier
ac1e89ebac * lisp/net/newst-treeview.el: Use lexical-binding. 2015-06-16 15:39:35 -04:00
Stefan Monnier
a1f543b4aa (filepos-to-bufferpos): Add missing cases. Make sure it terminates.
* lisp/international/mule-util.el (filepos-to-bufferpos--dos):
New auxiliary function, extracted from filepos-to-bufferpos.
Make sure it terminates.
(filepos-to-bufferpos): Use it to fix the latin-1-dos case.
Add support for the `exact' quality.
2015-06-16 14:28:38 -04:00
Cédric Chépied
08f8fb327b Identify feeds in newsticker treeview with :nt-feed property
* lisp/net/newst-treeview.el:
(newsticker--treeview-nodes-eq): Use property :nt-feed instead of :tag.
2015-06-16 19:38:38 +02:00
Stefan Monnier
3ef311678b * lisp/emacs-lisp/pcase.el: Improve docs and error handling
(pcase--self-quoting-p): Floats aren't self-quoting.
(pcase): Tweak docstring.
(pcase--u1): Deprecate the t pattern.  Improve error detection for
the nil pattern.
(\`): Tweak docstring.  Signal an error for unrecognized cases.

(bug#20784)
2015-06-16 12:37:33 -04:00
Eli Zaretskii
34a43ba26a Fix infloop in filepos-to-bufferpos
* lisp/international/mule-util.el (filepos-to-bufferpos): Fix EOL
offset calculation, and make it conditional on the eol-type of the
file's encoding.  (Bug#20825)
2015-06-16 17:37:45 +03:00
Martin Rudalics
93ae9f46e7 Fix handling of image cache refcounts. (Bug#20802)
This backports Eli Zaretskii's solution of this problem for W32
to X and NS.

* src/nsfns.m (image_cache_refcount): Define unconditionally.
(unwind_create_frame): If the image cache's reference count
hasn't been updated yet, do that now.
(Fx_create_frame): Set image_cache_refcount unconditionally.
* src/xfns.c (image_cache_refcount): Define unconditionally.
(unwind_create_frame): If the image cache's reference count
hasn't been updated yet, do that now.
(Fx_create_frame, x_create_tip_frame): Set image_cache_refcount
unconditionally.
* src/w32fns.c (image_cache_refcount): Make it a ptrdiff_t as on
X and NS.
2015-06-16 15:09:24 +02:00
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
5b0acc59e8 * doc/emacs/calendar.texi (Format of Diary File):
Move "nonmarking" from here...
(Displaying the Diary): ... to here.
2015-06-16 00:01:21 -07:00
Glenn Morris
b73912bd2e * doc/emacs/calendar.texi (Format of Diary File, Displaying the Diary):
Swap the order of these nodes.

* doc/emacs/emacs.texi: Update detailed menu for the above change.
2015-06-15 23:53:24 -07:00
Glenn Morris
bb53338aaf * doc/emacs/calendar.texi (Specified Dates, Special Diary Entries):
Update date of examples.
(Diary, Format of Diary File): Move example from former to latter.
Reduce duplication.
2015-06-15 23:49:17 -07: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
f0f216eaa1 ;* src/fontset.c: Update obsolete commentary. 2015-06-15 20:14:11 +03: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
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