summaryrefslogtreecommitdiff
path: root/lisp
Commit message (Collapse)AuthorAgeFilesLines
* Address some check-declare warnings.Glenn Morris2015-06-163-8/+5
| | | | | | | * lisp/simple.el (tabulated-list-print): * lisp/progmodes/elisp-mode.el (xref-collect-matches): * lisp/term/ns-win.el (ns-selection-owner-p, ns-selection-exists-p) (ns-get-selection): Update declarations.
* Address some compilation warnings.Glenn Morris2015-06-162-3/+3
| | | | | | * lisp/elec-pair.el (electric-pair-post-self-insert-function): * lisp/vc/vc-git.el (vc-git-file-type-as-string): Replace 't' with '_' in pcase.
* Address some compilation warnings.Glenn Morris2015-06-168-9/+9
| | | | | | | | | | | | | * lisp/face-remap.el (text-scale-adjust): * lisp/menu-bar.el (popup-menu-normalize-position): * lisp/emacs-lisp/byte-opt.el (byte-compile-inline-expand): * lisp/emacs-lisp/bytecomp.el (byte-compile-arglist-warn): * lisp/emacs-lisp/generator.el (cps--transform-1): * lisp/emacs-lisp/macroexp.el (macroexp--expand-all): * lisp/obsolete/vc-arch.el (vc-arch-mode-line-string): * lisp/progmodes/octave.el (octave-goto-function-definition) (octave-find-definition-default-filename): Replace 't' with '_' in pcase.
* * lisp/emacs-lisp/pcase.el (pcase--u1):Glenn Morris2015-06-161-3/+3
| | | | Paper-over today's bootstrap failure.
* * lisp/emacs-lisp/seq.el: Fix a byte-compiler warnings related to pcase.Nicolas Petton2015-06-161-4/+4
|
* * lisp/emacs-lisp/map.el (map-into): Fix a byte-compiler warning.Nicolas Petton2015-06-161-2/+2
|
* Better confirmation message in `find-alternate-file' (Bug#20830)Nicolas Petton2015-06-161-1/+3
| | | | | * lisp/files.el (find-alternate-file'): Improve the confirmation message to show the buffer name.
* * lisp/net/newst-treeview.el: Use lexical-binding.Stefan Monnier2015-06-161-48/+47
|
* (filepos-to-bufferpos): Add missing cases. Make sure it terminates.Stefan Monnier2015-06-161-16/+48
| | | | | | | | * 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.
* Identify feeds in newsticker treeview with :nt-feed propertyCédric Chépied2015-06-161-1/+1
| | | | | * lisp/net/newst-treeview.el: (newsticker--treeview-nodes-eq): Use property :nt-feed instead of :tag.
* * lisp/emacs-lisp/pcase.el: Improve docs and error handlingStefan Monnier2015-06-161-9/+16
| | | | | | | | | | (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)
* Fix infloop in filepos-to-bufferposEli Zaretskii2015-06-161-3/+5
| | | | | | * 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)
* Improve reftex-label-regexps default valueNils Ackermann2015-06-161-2/+2
| | | | | | * lisp/textmodes/reftex-vars.el (reftex-label-regexps): Make keyvals label regexp more strict to better cope with unbalanced brackets common in math documents.
* No need for cp51932.el, eucjp-ms.el to not be compiled any more.Glenn Morris2015-06-151-2/+2
| | | | | | | * 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.
* ; Comment fixes.Glenn Morris2015-06-152-3/+3
|
* * lisp/calendar/calendar.el (diary-file): Use locate-user-emacs-file.Glenn Morris2015-06-151-1/+2
| | | | | | | * doc/emacs/calendar.texi (Diary, Format of Diary File): Update for above diary-file change. : * etc/NEWS: Mention this.
* * lisp/macros.el (name-last-kbd-macro, kbd-macro-query)Glenn Morris2015-06-151-5/+5
| | | | (apply-macro-to-region-lines): Use user-error.
* * lisp/textmodes/page-ext.el (add-new-page, pages-directory)Glenn Morris2015-06-151-9/+8
| | | | (pages-directory-for-addresses): Doc fixes.
* * lisp/info.el: Cleanup bytepos/charpos issuesStefan Monnier2015-06-152-27/+61
| | | | | | | | * 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.
* ; * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):Glenn Morris2015-06-151-1/+2
| | | | Fix recent change.
* * lisp/progmodes/perl-mode.el: Refine handling of /re/ and y/abc/def/Stefan Monnier2015-06-151-11/+25
| | | | | | (perl--syntax-exp-intro-keywords): New var. (perl--syntax-exp-intro-regexp, perl-syntax-propertize-function): Use it. (bug#20800).
* Fix quoting when making derived mode docstringPaul Eggert2015-06-151-3/+4
| | | | | | | * 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
* Fix current-iso639-language on MS-WindowsEli Zaretskii2015-06-151-1/+12
| | | | | | | * 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.
* Limit Symbola usage some moreEli Zaretskii2015-06-151-2/+1
| | | | | | * lisp/international/fontset.el (setup-default-fontset): Limit Symbol coverage of Currency Symbols to u+20B6..u+20CF. (Bug#20727)
* * lisp/emacs-lisp/map.el (map-let): Better docstring.Nicolas Petton2015-06-151-3/+6
|
* Spelling fixesPaul Eggert2015-06-141-1/+1
|
* * lisp/version.el (emacs-repository-version-git): Demote errors.Glenn Morris2015-06-141-3/+4
| | | | Check result is a hash.
* * lisp/emacs-lisp/package.el (package--with-work-buffer-async):Artur Malabarba2015-06-141-18/+25
| | | | Catch errors that happen before going async. (Bug#20809)
* Another improvement for symbol and punctuation charactersEli Zaretskii2015-06-141-11/+57
| | | | | | | | * 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)
* Some generic support for multi-mode indentation.Christoph Wedler2015-06-141-0/+66
| | | | | | * lisp/progmodes/prog-mode.el (prog-indentation-context): New variable. (prog-first-column, prog-widen): New convenience functions.
* * lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):Artur Malabarba2015-06-141-1/+1
| | | | | Don't assume that `tabulated-list-printer' will leave point at the end of the buffer. (Bug#20810)
* Tweaks for getting repository version; a bit more like it was for bzr.Glenn Morris2015-06-131-28/+41
| | | | | | | * 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.
* * lisp/startup.el (command-line-1): Inform if skipping relativeGlenn Morris2015-06-131-9/+6
| | | | file names due to deleted PWD.
* Better fix for documenting `X as "`X"Paul Eggert2015-06-132-19/+17
| | | | | | | | 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.
* Improve the default fontset when Symbola is not installedEli Zaretskii2015-06-131-2/+3
| | | | | | | | * 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)
* Revert last change in fontset.elEli Zaretskii2015-06-131-42/+40
| | | | | | | * 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)
* Ensure early startup warnings are visible at the end. (Bug#20792)Glenn Morris2015-06-122-99/+99
| | | | | | | | | * 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.
* * lisp/version.el (emacs-repository-get-version):Glenn Morris2015-06-121-15/+29
| | | | Avoid calling external executable if possible. (Bug#20799)
* Document `X as "`X", not as "(` X)"Paul Eggert2015-06-121-12/+17
| | | | | * lisp/help.el (help-split-fundoc, help--make-usage-docstring): Document (backquote FOO) as "`FOO", not as "(` FOO)" (Bug#20759).
* ; * lisp/international/fontset.el (setup-default-fontset): Fix typo.Glenn Morris2015-06-121-1/+1
|
* Configure Symbola font only if installedPaul Eggert2015-06-121-39/+42
| | | | | | * lisp/international/fontset.el (setup-default-fontset): Don't specify the Symbola font if it's not installed. Likewise for FreeMono. (Bug#20727)
* Configure Symbola font only for symbols and punctuationEli Zaretskii2015-06-121-2/+0
| | | | | | | * 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)
* * lisp/startup.el (normal-top-level): Don't let *Messages* getGlenn Morris2015-06-111-1/+1
| | | | a nil default-directory.
* * lisp/startup.el (normal-top-level): Use delay-warning. (Bug#20792)Glenn Morris2015-06-111-5/+1
|
* ; * lisp/startup.el (normal-top-level): Fix previous change.Glenn Morris2015-06-111-5/+5
|
* Some progress towards starting with PWD deleted. (Bug#18851)Glenn Morris2015-06-112-17/+32
| | | | | | | | * 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.
* * lisp/bindings.el (debug-ignored-errors): Add mark-inactive.Juri Linkov2015-06-122-2/+2
| | | | | * lisp/simple.el (kill-region): Replace 'error' with 'user-error'. (Bug#20785)
* * lisp/international/characters.el (char-script-table): Fix typo.Glenn Morris2015-06-111-1/+1
|
* Fix quoting of help for functions with odd namesPaul Eggert2015-06-115-38/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * lisp/thingatpt.el (in-string-p): Revert last change,Stefan Monnier2015-06-111-6/+2
| | | | | | since in-string-p is not used in thingatpt.el but only from outside. Also, use lexical binding.