]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years ago* lisp/macros.el (name-last-kbd-macro, kbd-macro-query)
Glenn Morris [Tue, 16 Jun 2015 00:41:54 +0000 (20:41 -0400)]
* lisp/macros.el (name-last-kbd-macro, kbd-macro-query)

(apply-macro-to-region-lines): Use user-error.

9 years ago* lisp/textmodes/page-ext.el (add-new-page, pages-directory)
Glenn Morris [Tue, 16 Jun 2015 00:40:41 +0000 (20:40 -0400)]
* lisp/textmodes/page-ext.el (add-new-page, pages-directory)

(pages-directory-for-addresses): Doc fixes.

9 years ago* lisp/info.el: Cleanup bytepos/charpos issues
Stefan Monnier [Mon, 15 Jun 2015 22:48:08 +0000 (18:48 -0400)]
* 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.

9 years ago; * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
Glenn Morris [Mon, 15 Jun 2015 22:02:33 +0000 (18:02 -0400)]
; * lisp/emacs-lisp/derived.el (derived-mode-make-docstring):
Fix recent change.

9 years ago* lisp/progmodes/perl-mode.el: Refine handling of /re/ and y/abc/def/
Stefan Monnier [Mon, 15 Jun 2015 21:10:06 +0000 (17:10 -0400)]
* 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).

9 years agoFix quoting when making derived mode docstring
Paul Eggert [Mon, 15 Jun 2015 19:40:32 +0000 (12:40 -0700)]
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

9 years ago;* src/fontset.c: Update obsolete commentary.
Eli Zaretskii [Mon, 15 Jun 2015 17:14:11 +0000 (20:14 +0300)]
;* src/fontset.c: Update obsolete commentary.

9 years agoFix current-iso639-language on MS-Windows
Eli Zaretskii [Mon, 15 Jun 2015 17:10:19 +0000 (20:10 +0300)]
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.

9 years agoLimit Symbola usage some more
Eli Zaretskii [Mon, 15 Jun 2015 16:11:43 +0000 (19:11 +0300)]
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)

9 years ago* lisp/emacs-lisp/map.el (map-let): Better docstring.
Nicolas Petton [Mon, 15 Jun 2015 10:43:09 +0000 (12:43 +0200)]
* lisp/emacs-lisp/map.el (map-let): Better docstring.

9 years agoSpelling fixes
Paul Eggert [Mon, 15 Jun 2015 05:55:16 +0000 (22:55 -0700)]
Spelling fixes

9 years ago; Omit mistaken update
Paul Eggert [Mon, 15 Jun 2015 05:24:03 +0000 (22:24 -0700)]
; Omit mistaken update

9 years ago* lisp/version.el (emacs-repository-version-git): Demote errors.
Glenn Morris [Sun, 14 Jun 2015 23:33:05 +0000 (16:33 -0700)]
* lisp/version.el (emacs-repository-version-git): Demote errors.

Check result is a hash.

9 years ago* lisp/emacs-lisp/package.el (package--with-work-buffer-async):
Artur Malabarba [Sun, 14 Jun 2015 21:48:18 +0000 (22:48 +0100)]
* lisp/emacs-lisp/package.el (package--with-work-buffer-async):

Catch errors that happen before going async.  (Bug#20809)

9 years agoAnother improvement of documentation of set-fontset-font
Eli Zaretskii [Sun, 14 Jun 2015 15:13:06 +0000 (18:13 +0300)]
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.

9 years agoAnother improvement for symbol and punctuation characters
Eli Zaretskii [Sun, 14 Jun 2015 15:02:55 +0000 (18:02 +0300)]
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)

9 years agoSome generic support for multi-mode indentation.
Christoph Wedler [Sun, 14 Jun 2015 14:47:16 +0000 (14:47 +0000)]
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.

9 years ago* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print):
Artur Malabarba [Sun, 14 Jun 2015 13:40:48 +0000 (14:40 +0100)]
* 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)

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 14 Jun 2015 10:24:02 +0000 (06:24 -0400)]
; Auto-commit of ChangeLog files.

9 years agoTweaks for getting repository version; a bit more like it was for bzr.
Glenn Morris [Sun, 14 Jun 2015 00:17:47 +0000 (17:17 -0700)]
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.

9 years ago* lisp/startup.el (command-line-1): Inform if skipping relative
Glenn Morris [Sat, 13 Jun 2015 23:41:55 +0000 (16:41 -0700)]
* lisp/startup.el (command-line-1): Inform if skipping relative

file names due to deleted PWD.

9 years ago* src/xsmfns.c (x_session_initialize): Avoid libSM crash
Glenn Morris [Sat, 13 Jun 2015 23:35:54 +0000 (16:35 -0700)]
* src/xsmfns.c (x_session_initialize): Avoid libSM crash

when starup directory is missing.  (Bug#18851)
(errno.h): Include it.

9 years agoBetter fix for documenting `X as "`X"
Paul Eggert [Sat, 13 Jun 2015 16:35:10 +0000 (09:35 -0700)]
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.

9 years agoImprove the default fontset when Symbola is not installed
Eli Zaretskii [Sat, 13 Jun 2015 11:51:33 +0000 (14:51 +0300)]
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)

9 years agoImprove documentation of ':lang' in font specs
Eli Zaretskii [Sat, 13 Jun 2015 10:23:42 +0000 (13:23 +0300)]
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.

9 years ago* nt/README: Don't advertise the (obsolescent) w32 FAQ.
Eli Zaretskii [Sat, 13 Jun 2015 09:34:09 +0000 (12:34 +0300)]
* nt/README: Don't advertise the (obsolescent) w32 FAQ.

9 years ago* nt/README.W32: Don't advertise the (obsolescent) w32 FAQ.
Eli Zaretskii [Sat, 13 Jun 2015 08:41:08 +0000 (11:41 +0300)]
* nt/README.W32: Don't advertise the (obsolescent) w32 FAQ.

9 years agoRevert last change in fontset.el
Eli Zaretskii [Sat, 13 Jun 2015 07:31:37 +0000 (10:31 +0300)]
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)

9 years agoEnsure early startup warnings are visible at the end. (Bug#20792)
Glenn Morris [Sat, 13 Jun 2015 02:26:21 +0000 (19:26 -0700)]
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.

9 years ago* lisp/version.el (emacs-repository-get-version):
Glenn Morris [Sat, 13 Jun 2015 01:22:00 +0000 (21:22 -0400)]
* lisp/version.el (emacs-repository-get-version):

Avoid calling external executable if possible.  (Bug#20799)

9 years agoDocument `X as "`X", not as "(` X)"
Paul Eggert [Fri, 12 Jun 2015 23:27:42 +0000 (16:27 -0700)]
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).

9 years ago* src/print.c (print_object): Minor simplification.
Paul Eggert [Fri, 12 Jun 2015 23:18:05 +0000 (16:18 -0700)]
* src/print.c (print_object): Minor simplification.

9 years ago* src/buffer.c (init_buffer): Add final newline to message.
Glenn Morris [Fri, 12 Jun 2015 22:07:48 +0000 (18:07 -0400)]
* src/buffer.c (init_buffer): Add final newline to message.

9 years ago; * lisp/international/fontset.el (setup-default-fontset): Fix typo.
Glenn Morris [Fri, 12 Jun 2015 22:03:10 +0000 (18:03 -0400)]
; * lisp/international/fontset.el (setup-default-fontset): Fix typo.

9 years agoConfigure Symbola font only if installed
Paul Eggert [Fri, 12 Jun 2015 20:39:57 +0000 (13:39 -0700)]
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)

9 years agoConfigure Symbola font only for symbols and punctuation
Eli Zaretskii [Fri, 12 Jun 2015 19:45:41 +0000 (22:45 +0300)]
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)

9 years agoFix crash in fontset-info
Andreas Schwab [Fri, 12 Jun 2015 19:09:23 +0000 (21:09 +0200)]
Fix crash in fontset-info

* src/fontset.c (Ffontset_info): Check that the RFONT-DEF elt is
non-nil.

9 years agoPort to Solaris 10 sparc + Sun C 5.13
Paul Eggert [Fri, 12 Jun 2015 05:49:02 +0000 (22:49 -0700)]
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.

9 years ago* lisp/startup.el (normal-top-level): Don't let *Messages* get
Glenn Morris [Fri, 12 Jun 2015 04:57:47 +0000 (21:57 -0700)]
* lisp/startup.el (normal-top-level): Don't let *Messages* get

a nil default-directory.

9 years ago* lisp/startup.el (normal-top-level): Use delay-warning. (Bug#20792)
Glenn Morris [Fri, 12 Jun 2015 01:12:29 +0000 (21:12 -0400)]
* lisp/startup.el (normal-top-level): Use delay-warning.  (Bug#20792)

9 years ago; * lisp/startup.el (normal-top-level): Fix previous change.
Glenn Morris [Fri, 12 Jun 2015 00:47:45 +0000 (20:47 -0400)]
; * lisp/startup.el (normal-top-level): Fix previous change.

9 years agoSome progress towards starting with PWD deleted. (Bug#18851)
Glenn Morris [Fri, 12 Jun 2015 00:34:54 +0000 (20:34 -0400)]
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.

9 years agoFix "not a tty" bug on Solaris 10
Paul Eggert [Thu, 11 Jun 2015 23:41:36 +0000 (16:41 -0700)]
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.

9 years ago* lisp/bindings.el (debug-ignored-errors): Add mark-inactive.
Juri Linkov [Thu, 11 Jun 2015 23:17:23 +0000 (02:17 +0300)]
* lisp/bindings.el (debug-ignored-errors): Add mark-inactive.

* lisp/simple.el (kill-region): Replace 'error' with 'user-error'.
(Bug#20785)

9 years ago* lisp/international/characters.el (char-script-table): Fix typo.
Glenn Morris [Thu, 11 Jun 2015 22:23:08 +0000 (18:23 -0400)]
* lisp/international/characters.el (char-script-table): Fix typo.

9 years agoFix quoting of help for functions with odd names
Paul Eggert [Thu, 11 Jun 2015 17:23:46 +0000 (10:23 -0700)]
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.

9 years ago* lisp/thingatpt.el (in-string-p): Revert last change,
Stefan Monnier [Thu, 11 Jun 2015 17:20:41 +0000 (13:20 -0400)]
* 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.

9 years ago; * ChangeLog.2: Remove entries from a merged feature branch.
Eli Zaretskii [Thu, 11 Jun 2015 16:10:42 +0000 (19:10 +0300)]
; * ChangeLog.2: Remove entries from a merged feature branch.

9 years ago* lisp/let-alist.el (let-alist--deep-dot-search): Fix cons
Artur Malabarba [Thu, 11 Jun 2015 14:08:32 +0000 (15:08 +0100)]
* lisp/let-alist.el (let-alist--deep-dot-search): Fix cons

* test/automated/let-alist.el (let-alist-cons): Test it.

9 years ago* src/syntax.c (Fbackward_prefix_chars): Reword docstring
Nicolas Richard [Thu, 11 Jun 2015 09:46:14 +0000 (11:46 +0200)]
* src/syntax.c (Fbackward_prefix_chars): Reword docstring

9 years ago* build-aux/gitlog-to-emacslog: Also ignore pointless merge commits.
Glenn Morris [Thu, 11 Jun 2015 01:37:06 +0000 (21:37 -0400)]
* build-aux/gitlog-to-emacslog: Also ignore pointless merge commits.

; * ChangeLog.2: Related fixes.

9 years agoImprove generated ChangeLog for gitmerge.el commits. (Bug#20717)
Glenn Morris [Thu, 11 Jun 2015 01:13:51 +0000 (21:13 -0400)]
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.

9 years agoSlight namespace cleanup for thingatpt.el.
Glenn Morris [Wed, 10 Jun 2015 23:07:09 +0000 (19:07 -0400)]
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.

9 years ago* lisp/emacs-lisp/checkdoc.el (checkdoc-get-keywords):
Glenn Morris [Wed, 10 Jun 2015 21:06:02 +0000 (17:06 -0400)]
* lisp/emacs-lisp/checkdoc.el (checkdoc-get-keywords):

Move requiring of finder from here...
(checkdoc-package-keywords): ... to here.

9 years agoUse 'user-error' in a few calendar files.
Glenn Morris [Wed, 10 Jun 2015 21:04:54 +0000 (17:04 -0400)]
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'.

9 years ago* lisp/progmodes/f90.el (f90-backslash-not-special): Use user-error.
Glenn Morris [Wed, 10 Jun 2015 20:57:59 +0000 (16:57 -0400)]
* lisp/progmodes/f90.el (f90-backslash-not-special): Use user-error.

9 years ago* lisp/files-x.el (add-file-local-variable):
Glenn Morris [Wed, 10 Jun 2015 20:38:18 +0000 (16:38 -0400)]
* lisp/files-x.el (add-file-local-variable):

Special-case 'lexical-binding'.  (Bug#20641)

9 years ago* lisp/progmodes/executable.el (executable-self-display): Obsolete.
Glenn Morris [Wed, 10 Jun 2015 20:24:32 +0000 (16:24 -0400)]
* lisp/progmodes/executable.el (executable-self-display): Obsolete.

No longer autoload.

* doc/misc/autotype.texi (Executables):
Undocument executable-self-display.

9 years ago* lisp/progmodes/executable.el (executable-self-display):
Glenn Morris [Wed, 10 Jun 2015 20:19:13 +0000 (16:19 -0400)]
* lisp/progmodes/executable.el (executable-self-display):

Use non-obsolete tail syntax.  (Bug#20779)
(executable-self-display): Doc update.

9 years ago* lisp/emacs-lisp/checkdoc.el: Use lexical-binding
Stefan Monnier [Wed, 10 Jun 2015 13:11:20 +0000 (09:11 -0400)]
* lisp/emacs-lisp/checkdoc.el: Use lexical-binding

(finder-known-keywords): Silence byte-compiler.

9 years ago; * lisp/simple: Revert presumably unintentional deletion of special-mode.
Glenn Morris [Wed, 10 Jun 2015 03:34:50 +0000 (20:34 -0700)]
; * lisp/simple: Revert presumably unintentional deletion of special-mode.

9 years ago* lisp/simple.el (eval-expression): Macroexpand before evaluating (bug#20730)
Stefan Monnier [Wed, 10 Jun 2015 02:14:47 +0000 (22:14 -0400)]
* lisp/simple.el (eval-expression): Macroexpand before evaluating (bug#20730)

9 years ago* lisp/progmodes/sh-script.el: Better handle nested quotes
Stefan Monnier [Wed, 10 Jun 2015 02:10:38 +0000 (22:10 -0400)]
* 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.

9 years ago* lisp/progmodes/elisp-mode.el: Require cl-lib for cl-defstruct.
Stefan Monnier [Wed, 10 Jun 2015 01:21:29 +0000 (21:21 -0400)]
* lisp/progmodes/elisp-mode.el: Require cl-lib for cl-defstruct.

9 years ago* test/automated/Makefile.in (ELFILES): Sort.
Glenn Morris [Tue, 9 Jun 2015 19:24:17 +0000 (15:24 -0400)]
* test/automated/Makefile.in (ELFILES): Sort.

9 years ago* Makefile.in (SUBDIR_MAKEFILES):
Glenn Morris [Tue, 9 Jun 2015 19:23:47 +0000 (15:23 -0400)]
* Makefile.in (SUBDIR_MAKEFILES):

* lwlib/Makefile.in (WARN_CFLAGS):
Use built-in Make functions rather than echo+sed.

9 years agoUpdate char-script-table
Eli Zaretskii [Tue, 9 Jun 2015 16:36:14 +0000 (19:36 +0300)]
Update char-script-table

* lisp/international/characters.el (char-script-table): Update
from Unicode 8.0 Draft.

9 years agoImprove font selection for punctuation and other symbols
Eli Zaretskii [Tue, 9 Jun 2015 14:56:39 +0000 (17:56 +0300)]
Improve font selection for punctuation and other symbols

* src/fontset.c (face_for_char): If the character's script is
'symbol', and the font used for ASCII face has a glyph for it, use
the font for the ASCII face instead of searching the fontsets.
This comes instead of NS-specific code that used the current
face's font instead, which is now disabled due to undesirable
consequences.  (Bug#20727)

9 years agoSkip past `#' to find BEG
Dmitry Gutov [Mon, 8 Jun 2015 22:08:01 +0000 (01:08 +0300)]
Skip past `#' to find BEG

* lisp/progmodes/elisp-mode.el (elisp-completion-at-point): Skip
past `#' to find BEG (bug#20771).

* test/automated/elisp-mode-tests.el
(elisp-completes-functions-after-hash-quote): New test.

9 years agoFix compilation warning/error in --without-x builds
Eli Zaretskii [Mon, 8 Jun 2015 18:15:05 +0000 (21:15 +0300)]
Fix compilation warning/error in --without-x builds

* src/xdisp.c (append_space_for_newline): Condition GUI-specific
code on HAVE_WINDOW_SYSTEM.

9 years agoImprove the default fontset wrt symbols
Eli Zaretskii [Mon, 8 Jun 2015 18:04:08 +0000 (21:04 +0300)]
Improve the default fontset wrt symbols

* lisp/international/fontset.el (setup-default-fontset): Better
setup of fontset-default for symbols: use Symbola and FreeMono.
(Bug#20727)

9 years agoAdd new command checkdoc-package-keywords
Oleh Krehel [Mon, 8 Jun 2015 14:41:00 +0000 (16:41 +0200)]
Add new command checkdoc-package-keywords

* lisp/emacs-lisp/checkdoc.el (checkdoc-package-keywords-flag): New
  defcustom.
(checkdoc-list-of-strings-p): Add doc.
(checkdoc-current-buffer): When `checkdoc-package-keywords-flag' is
non-nil, call `checkdoc-package-keywords'.
(checkdoc-get-keywords): New defun.
(checkdoc-package-keywords): New command. Warns if the current file
has package.el-style keywords that aren't in `finder-known-keywords'.

* etc/NEWS: Add entry.

9 years agoAvoid crashes when key-binding is called from a timer
Eli Zaretskii [Mon, 8 Jun 2015 14:39:35 +0000 (17:39 +0300)]
Avoid crashes when key-binding is called from a timer

* src/keymap.c (Fkey_binding): Don't segfault if called with an
empty vector as KEY.  (Bug#20705)

9 years agoFix a thinko in arc-mode.el
Eli Zaretskii [Mon, 8 Jun 2015 14:22:44 +0000 (17:22 +0300)]
Fix a thinko in arc-mode.el

* lisp/arc-mode.el (archive-zip-summarize): Fix last change in the
non-Zip64 case.  (Bug#20769)

9 years ago* lisp/emacs-lisp/package.el (package-delete): Make interactive
Artur Malabarba [Mon, 8 Jun 2015 09:50:22 +0000 (10:50 +0100)]
* lisp/emacs-lisp/package.el (package-delete): Make interactive

9 years agocheckdoc.el (checkdoc-file): New function
Oleh Krehel [Mon, 8 Jun 2015 06:30:32 +0000 (08:30 +0200)]
checkdoc.el (checkdoc-file): New function

* lisp/emacs-lisp/checkdoc.el (checkdoc-error): When
  `checkdoc-diagnostic-buffer' is set to "*warn*", print the warning
  to the standard output.

(bug#20754)

9 years ago; * src/font.c (syms_of_font) <font-log>: Tweak previous doc fix.
Glenn Morris [Sun, 7 Jun 2015 23:55:00 +0000 (16:55 -0700)]
; * src/font.c (syms_of_font) <font-log>: Tweak previous doc fix.

9 years ago* admin/update_autogen (changelog_files): Remove gitlog-to-emacslog.
Glenn Morris [Sun, 7 Jun 2015 23:51:44 +0000 (16:51 -0700)]
* admin/update_autogen (changelog_files): Remove gitlog-to-emacslog.

9 years ago* src/font.c (syms_of_font) <font-log>: Doc fix.
Glenn Morris [Sun, 7 Jun 2015 23:51:11 +0000 (16:51 -0700)]
* src/font.c (syms_of_font) <font-log>: Doc fix.

9 years agoRemove the obsolete leading "*" from some C doc strings.
Glenn Morris [Sun, 7 Jun 2015 23:47:45 +0000 (16:47 -0700)]
Remove the obsolete leading "*" from some C doc strings.

* src/coding.c (syms_of_coding):
* src/font.c (syms_of_font): Remove leading "*" from docs.

* lisp/cus-start.el (enable-character-translation): Add it.

9 years agoMove gen_origin from program to data
Paul Eggert [Sun, 7 Jun 2015 22:40:10 +0000 (15:40 -0700)]
Move gen_origin from program to data

That way, 'make change-history' needs to change only ChangeLog.2,
instead of having to change two files.
* ChangeLog.2: Add commit info for range that this file covers.
* Makefile.in (new_commit_regexp): New macro.
(change-history-nocommit): Simplify, by putting what used to be
the gen_origin value into the data (ChangeLog.2) rather than
into the program (gitlog-to-emacslog).
* build-aux/gitlog-to-emacslog (gen_origin): Calculate from
the input file (e.g., ChangeLog.2) rather than by having a
constant in the program.  Substitute it into the output.

9 years agoEscape any quotes in the function name
Dmitry Gutov [Sun, 7 Jun 2015 20:39:18 +0000 (23:39 +0300)]
Escape any quotes in the function name

* lisp/help-fns.el (help-fns--signature): Quote any quotes in the
function name (bug#20759).

9 years agoAdapt 'struct timespec' to next release of MinGW runtime
Eli Zaretskii [Sun, 7 Jun 2015 15:36:25 +0000 (18:36 +0300)]
Adapt 'struct timespec' to next release of MinGW runtime

* nt/inc/ms-w32.h (struct timespec): Don't declare if
__struct_timespec_defined is defined.

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 7 Jun 2015 10:25:33 +0000 (06:25 -0400)]
; Auto-commit of ChangeLog files.

9 years agoMerge from gnulib
Paul Eggert [Sun, 7 Jun 2015 01:37:45 +0000 (18:37 -0700)]
Merge from gnulib

This incorporates:
2015-06-06 acl-permissions: pacify -Wsuggest-attribute=const
2015-06-05 stdio: Don't redefine gets when using C++
2015-06-05 acl-permissions: port to AIX, C89 HP-UX
2015-06-02 file-has-acl: fix build on Mac OS X 10
2015-06-01 gnulib-tool: concatenate lib_SOURCES to a single line
2015-06-01 pthread_sigmask: discount system version if a simple macro
2015-05-31 readlinkat: avoid OS X 10.10 trailing slash bug
* doc/misc/texinfo.tex, lib/acl-internal.h, lib/get-permissions.c:
* lib/readlinkat.c, lib/set-permissions.c, lib/stdio.in.h:
* m4/acl.m4, m4/pthread_sigmask.m4, m4/readlinkat.m4: Copy from gnulib.
* lib/gnulib.mk: Regenerate.

9 years ago* lisp/progmodes/grep.el (zrgrep): Let-bind grep-highlight-matches
Juri Linkov [Sat, 6 Jun 2015 22:02:38 +0000 (01:02 +0300)]
* lisp/progmodes/grep.el (zrgrep): Let-bind grep-highlight-matches

before calling grep-compute-defaults because now it affects the
command lines computed in grep-compute-defaults. (Bug#20728)

9 years agoAddress some compilation warnings.
Glenn Morris [Sat, 6 Jun 2015 19:12:06 +0000 (12:12 -0700)]
Address some compilation warnings.

* lisp/international/mule-cmds.el (w32-get-console-codepage)
(w32-get-console-output-codepage):
* lisp/progmodes/elisp-mode.el (xref-collect-references):
* lisp/version.el (cairo-version-string): Declare.

* lisp/erc/erc.el (erc-nickname-in-use): Fix typo.

9 years agoFix display when a font claims large values of ascent and descent
Eli Zaretskii [Sat, 6 Jun 2015 12:55:15 +0000 (15:55 +0300)]
Fix display when a font claims large values of ascent and descent

This fixes bug#20628.

* src/xdisp.c (get_phys_cursor_geometry): Correct the Y
coordinate of a hollow cursor glyph when the original glyph's
ascent is too small.
(get_font_ascent_descent, normal_char_ascent_descent)
(normal_char_height): New functions.
(handle_single_display_spec, append_space_for_newline)
(calc_pixel_width_or_height, produce_stretch_glyph)
(calc_line_height_property): Use normal_char_ascent_descent and
normal_char_height.
(x_produce_glyphs): When font-global values of ascent and descent
are too large, use per-character glyph metrics instead, if
possible.  But don't allow the glyph row's ascent and descent
values become smaller than the values from the metrics of the
font's "normal" character.

* src/xftfont.c (xftfont_draw):
* src/w32font.c (w32font_draw): Correct the values of ascent and
descent used to draw glyphless characters' hex code in a box.

* src/xterm.c (x_draw_glyph_string_background):
* src/xdisp.c (x_produce_glyphs):
* src/w32term.c (x_draw_glyph_string_background):
* src/nsterm.m (ns_maybe_dumpglyphs_background): Use FONT_TOO_HIGH
to detect fonts whose global ascent and descent values are too
large to be used in layout decision, and redraw the background
when that happens.

* src/dispextern.h (FONT_TOO_HIGH): New macro.
(get_font_ascent_descent): Add prototype.

* src/xterm.c (x_new_font):
* src/w32term.c (x_new_font):
* src/nsterm.m (x_new_font):
* src/font.c (font_open_entity):
* src/composite.c (composition_gstring_width): Use
get_font_ascent_descent to obtain reasonable values for ascent and
descent of a font.

9 years agoAdd assertion in adjust_point_for_property
Nicolas Richard [Sat, 6 Jun 2015 08:05:07 +0000 (10:05 +0200)]
Add assertion in adjust_point_for_property

* src/keyboard.c (adjust_point_for_property): Add eassert for
current buffer being shown in selected window.

9 years agoReplace uses of in-string-p; make it obsolete
Dmitry Gutov [Sat, 6 Jun 2015 09:57:59 +0000 (12:57 +0300)]
Replace uses of in-string-p; make it obsolete

* lisp/thingatpt.el (in-string-p): Declare obsolete (bug#20732).
(end-of-sexp, beginning-of-sexp): Use syntax-ppss instead.

9 years agoFix Dired display of an explicit list of files by ls-lisp.el
Eli Zaretskii [Sat, 6 Jun 2015 09:52:56 +0000 (12:52 +0300)]
Fix Dired display of an explicit list of files by ls-lisp.el

* lisp/ls-lisp.el (ls-lisp-uid-d-fmt, ls-lisp-uid-s-fmt)
(ls-lisp-gid-d-fmt, ls-lisp-gid-s-fmt): Make the initial values be
correct for when displaying individual files separately, not as
part of listing a directory, in which case these values are not
recomputed by 'ls-lisp-insert-directory', but used verbatim.

9 years ago* lisp/dired.el (dired): Doc fix. (Bug#20739)
Eli Zaretskii [Sat, 6 Jun 2015 09:33:59 +0000 (12:33 +0300)]
* lisp/dired.el (dired): Doc fix.  (Bug#20739)

9 years agoDo not adjust point in a non-selected window
Nicolas Richard [Fri, 5 Jun 2015 16:57:26 +0000 (18:57 +0200)]
Do not adjust point in a non-selected window

* src/keyboard.c (command_loop_1): Do not adjust point when
current buffer is not shown in selected window (Bug#20590).

9 years ago* etc/DEBUG: Mention 'maybe_call_debugger'
Nicolas Richard [Fri, 5 Jun 2015 16:54:33 +0000 (18:54 +0200)]
* etc/DEBUG: Mention 'maybe_call_debugger'

9 years agoFix a unit test for map.el
Nicolas Petton [Fri, 5 Jun 2015 23:54:51 +0000 (01:54 +0200)]
Fix a unit test for map.el

* test/automated/map-tests.el (test-map-let): Fix the test to work
with the new syntax of `map-let'.

9 years ago* lisp/emacs-lisp/map.el (map-let): Better docstring.
Nicolas Petton [Fri, 5 Jun 2015 23:54:11 +0000 (01:54 +0200)]
* lisp/emacs-lisp/map.el (map-let): Better docstring.

9 years agoBetter syntax for the map pcase pattern
Nicolas Petton [Fri, 5 Jun 2015 23:50:32 +0000 (01:50 +0200)]
Better syntax for the map pcase pattern

* lisp/emacs-lisp/map.el: Improves the map pcase pattern to take
bindings of the form (KEY PAT) or SYMBOL. KEY is not quoted.

9 years ago* lisp/emacs-lisp/map.el (map--dispatch): Better docstring.
Nicolas Petton [Fri, 5 Jun 2015 23:25:04 +0000 (01:25 +0200)]
* lisp/emacs-lisp/map.el (map--dispatch): Better docstring.

9 years ago; * lisp/emacs-lisp/map.el: Fix formatting.
Nicolas Petton [Fri, 5 Jun 2015 23:09:40 +0000 (01:09 +0200)]
; * lisp/emacs-lisp/map.el: Fix formatting.

9 years agoFix a byte-compiler error in map-put and map-delete
Nicolas Petton [Fri, 5 Jun 2015 23:08:00 +0000 (01:08 +0200)]
Fix a byte-compiler error in map-put and map-delete

* lisp/emacs-lisp/map.el (map-put, map-delete): Ensure that `setq' is
called with a symbol.