]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agoRespect python.el imenu when semantic-mode is off
Fabián Ezequiel Gallina [Wed, 12 Aug 2015 02:04:11 +0000 (23:04 -0300)]
Respect python.el imenu when semantic-mode is off

Fixes debbugs:21220

* lisp/cedet/semantic/wisent/python.el: Do not force
wisent-python-default-setup on python-mode-hook.

9 years agoGive names to Unicode code points in C code
Paul Eggert [Tue, 11 Aug 2015 22:53:18 +0000 (15:53 -0700)]
Give names to Unicode code points in C code

* src/character.h (NO_BREAK_SPACE, SOFT_HYPHEN)
(ZERO_WIDTH_NON_JOINER, ZERO_WIDTH_JOINER, HYPHEN)
(NON_BREAKING_HYPHEN, LEFT_SINGLE_QUOTATION_MARK)
(RIGHT_SINGLE_QUOTATION_MARK, PARAGRAPH_SEPARATOR)
(LEFT_POINTING_ANGLE_BRACKET, RIGHT_POINTING_ANGLE_BRACKET)
(LEFT_ANGLE_BRACKET, RIGHT_ANGLE_BRACKET)
(OBJECT_REPLACEMENT_CHARACTER):
New named constants for Unicode code points.
* src/bidi.c (bidi_fetch_char, CANONICAL_EQU):
* src/composite.c (char_composable_p):
* src/lread.c (readevalloop, read1):
* src/xdisp.c (get_next_display_element):
Use them.
* src/doc.c (LEFT_SINGLE_QUOTATION_POINT):
Remove; now in character.h.

9 years agoelisp--xref-find-definitions handle cl-defstuct default constructor
Stephen Leake [Tue, 11 Aug 2015 19:28:17 +0000 (14:28 -0500)]
elisp--xref-find-definitions handle cl-defstuct default constructor

* lisp/progmodes/elisp-mode.el (elisp-xref-find): Add FIXME.
(elisp--xref-format-extra): Rename from elisp--xref-format-cl-defmethod.
(elisp--xref-find-definitions): Handle cl-defstuct default constructor.

* test/automated/elisp-mode-tests.el (xref-elisp-test-run): Split out
from xref-elisp-test for ease of debugging.
(xref-elisp-deftest): Rename from xref-elisp-test.
(find-defs-constructor): New test.
(find-defs-defgeneric-el): Match batch test config.
(compile): Required for find-defs compilation-minor-mode test.
(find-defs-defvar-el): Match code change.
(find-defs-face-el): Match code change.

* lisp/progmodes/xref.el (xref-find-function, xref-find-definitions):
Improve doc string.

9 years ago* lisp/replace.el (perform-replace): Document `replacements'.
Stefan Monnier [Tue, 11 Aug 2015 15:43:10 +0000 (11:43 -0400)]
* lisp/replace.el (perform-replace): Document `replacements'.

(perform-replace): Move the description of the format of `replacements' from
the body's comment to the docstring.

9 years ago; Fix prompt in tramp-adb.el
Jürgen Hötzel [Tue, 11 Aug 2015 06:57:45 +0000 (08:57 +0200)]
; Fix prompt in tramp-adb.el

* lisp/net/tramp-adb.el (tramp-adb-prompt): Match leading escape
sequence.  Recent adb version send initial escape sequences, even
when terminal type is set to TERM=dumb.

9 years agoRewrite elisp--xref-find-definitions to handle many more cases; add tests.
Stephen Leake [Tue, 11 Aug 2015 02:53:19 +0000 (21:53 -0500)]
Rewrite elisp--xref-find-definitions to handle many more cases; add tests.

* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location): deleted
(elisp--xref-format-cl-defmethod): new
(find-feature-regexp): new
(find-alias-regexp): new
(elisp--xref-make-xref): new
(elisp--xref-find-definitions): Rewrite using the above, handle many more
cases. Always output all available definitions.
(xref-location-marker): No need for special cases.

* test/automated/elisp-mode-tests.el: Add more tests of
elisp--xref-find-definitions, improve current tests.

9 years ago* ChangeLog.2: Formatting update.
Phillip Lord [Mon, 10 Aug 2015 22:04:05 +0000 (23:04 +0100)]
* ChangeLog.2: Formatting update.

Formatting for one change entry did not follow standard ChangeLog
conventions and has now been updated.

9 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Mon, 10 Aug 2015 18:16:13 +0000 (21:16 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

9 years agoFix recording of events pushed onto unread-command-events
Eli Zaretskii [Mon, 10 Aug 2015 18:15:03 +0000 (21:15 +0300)]
Fix recording of events pushed onto unread-command-events

* src/keyboard.c (read_char): Make sure events read from
unread-command-events and unread-post-input-method-events are
always recorded by record_char.  Reported by David Kastrup
<dak@gnu.org>, see
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00193.html.

9 years agoSet file buffer as current for "--file"
Samer Masterson [Mon, 10 Aug 2015 18:09:50 +0000 (11:09 -0700)]
Set file buffer as current for "--file"

* lisp/startup.el (command-line-1): Set file buffer as current before
it is displayed so it can be used with options like
"--eval".  (Bug#21095)

9 years agoAvoid setting LC_NUMERIC on MS-Windows to anything but "C"
Eli Zaretskii [Mon, 10 Aug 2015 17:01:31 +0000 (20:01 +0300)]
Avoid setting LC_NUMERIC on MS-Windows to anything but "C"

* src/emacs.c (synchronize_locale) [WINDOWSNT]: Call fixup_locale
after setting LC_ALL to the desired locale, to avoid affecting how
numbers are read and printed.  (Bug#21223)

9 years agoFix "Invalid search bound (wrong side of point)" in fontification.
Alan Mackenzie [Mon, 10 Aug 2015 16:54:35 +0000 (16:54 +0000)]
Fix "Invalid search bound (wrong side of point)" in fontification.

progmodes/cc-fonts.el (c-font-lock-declarators): After skipping an
initialization expression, check point is not beyond the fontification
limit.

9 years agoFix DPI calculation when Xft/DPI is default
Paul Eggert [Mon, 10 Aug 2015 06:23:14 +0000 (23:23 -0700)]
Fix DPI calculation when Xft/DPI is default

* src/xsettings.c (parse_settings): Don't use Xft/DPI default
value of -1, which evaluates to 2**32 - 1 (Bug#21152).
Remove unnecessary cast while we're in the neighborhood.

9 years ago; Fix xref--show-location, after regression in ee50e62
Dmitry Gutov [Mon, 10 Aug 2015 01:30:33 +0000 (04:30 +0300)]
; Fix xref--show-location, after regression in ee50e62

9 years agoAdd project-vc-search-path and project-vc-ignores
Dmitry Gutov [Mon, 10 Aug 2015 01:04:57 +0000 (04:04 +0300)]
Add project-vc-search-path and project-vc-ignores

* lisp/progmodes/project.el (project-vc): New group.
(project-vc-search-path, project-vc-ignores): New variables.
(project--value-in-dir): Utility function.
(project-search-path, project-ignores): Use them.

* lisp/progmodes/xref.el (xref--rgrep-command): Only replace `./'
at bos.  Don't add extra `/'.  Don't prepend with `*' if replaced.

9 years agoFix some minor quoting issues with grave accent
Paul Eggert [Sun, 9 Aug 2015 23:21:05 +0000 (16:21 -0700)]
Fix some minor quoting issues with grave accent

* src/dispnew.c (add_window_display_history) [GLYPH_DEBUG]:
Remove redundant quotes.
* src/doc.c (uLSQM, uRSQM): New macros.
* src/doc.c (Fsubstitute_command_keys):
* src/syntax.c (Finternal_describe_syntax_value): Follow the user
preference for quotes rather than hardcoding the ‘grave’ style.
* src/regex.c (PUSH_FAILURE_POINT, POP_FAILURE_POINT)
(re_match_2_internal) [DEBUG]: In debugging output, quote C
strings with "...", not `...'.

9 years agoChangeLog.2 ignores remote-tracking merges
Paul Eggert [Sun, 9 Aug 2015 23:12:11 +0000 (16:12 -0700)]
ChangeLog.2 ignores remote-tracking merges

* build-aux/gitlog-to-emacslog: Ignore commit logs matching
"Merge remote-tracking branch '.*'" too.  See Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00384.html

9 years agoUse kpsewhich in ffap-latex-mode, if available
Nicolas Richard [Thu, 6 Aug 2015 08:54:50 +0000 (10:54 +0200)]
Use kpsewhich in ffap-latex-mode, if available

* lisp/ffap.el (ffap-latex-guess-rules): New variable.
(ffap-latex-mode): Use kpsewhich if available.

9 years agoffap: disallow braces in filenames for tex modes
Nicolas Richard [Thu, 6 Aug 2015 11:05:11 +0000 (13:05 +0200)]
ffap: disallow braces in filenames for tex modes

* lisp/ffap.el (ffap-string-at-point-mode-alist): Don't allow
braces in tex-related modes.

9 years agoRemove useless backslashes from ffap-string-at-point-mode-alist
Nicolas Richard [Wed, 5 Aug 2015 17:04:44 +0000 (19:04 +0200)]
Remove useless backslashes from ffap-string-at-point-mode-alist

* lisp/ffap.el (ffap-string-at-point-mode-alist): Remove useless and
misleading backslashes from default value.

9 years agoAugment docstring of ffap-string-at-point-mode-alist
Nicolas Richard [Wed, 5 Aug 2015 16:57:20 +0000 (18:57 +0200)]
Augment docstring of ffap-string-at-point-mode-alist

* lisp/ffap.el (ffap-string-at-point-mode-alist): Describe how BEG
and END are handled.

9 years agoRemove no-op calls to substitute-command-keys
Paul Eggert [Sun, 9 Aug 2015 14:48:00 +0000 (07:48 -0700)]
Remove no-op calls to substitute-command-keys

* lisp/org/org-src.el (org-edit-src-code)
(org-edit-fixed-width-region):
* lisp/simple.el (completion-setup-function):
Remove calls to substitute-command-keys that always just return
their argument.

9 years agoUtilize `quit-window' in epa.el
Daiki Ueno [Sun, 9 Aug 2015 12:30:57 +0000 (14:30 +0200)]
Utilize `quit-window' in epa.el

* epa.el (epa-exit-buffer-function): Set to `quit-window'.

Fixes: debbugs:21210
9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 9 Aug 2015 10:25:42 +0000 (06:25 -0400)]
; Auto-commit of ChangeLog files.

9 years agofix link to source code in help window
Ivan Kanis [Sun, 9 Aug 2015 09:27:38 +0000 (10:27 +0100)]
fix link to source code in help window

* lisp/help-fns.el (find-lisp-object-file-name): remove code that
will never work due to Glenn Morris change a6d63d9 on Apr 20 2013
'No longer include timestamp in header of .elc files'. Add code
that will return .el source file in load-path.

9 years ago* isearch.el (isearch-search-fun-default): (Bug#21164)
Artur Malabarba [Sun, 9 Aug 2015 08:56:33 +0000 (09:56 +0100)]
* isearch.el (isearch-search-fun-default): (Bug#21164)

Respect `isearch-lax-whitespace' when searching through
`isearch-word'.

9 years ago* test/automated/ert-tests.el (ert-test-deftest): Add FIXME.
Stefan Monnier [Sat, 8 Aug 2015 23:43:14 +0000 (19:43 -0400)]
* test/automated/ert-tests.el (ert-test-deftest): Add FIXME.

9 years ago* org.el: Fix up some lexical scoping warnings, and use dolist
Stefan Monnier [Sat, 8 Aug 2015 23:41:57 +0000 (19:41 -0400)]
* org.el: Fix up some lexical scoping warnings, and use dolist

* lisp/org/org.el (org-set-regexps-and-options-for-tags, org-goto-map)
(org-set-regexps-and-options, org-assign-fast-keys)
(org-contextualize-keys, org-contextualize-validate-key)
(org-notes-order-reversed-p, org-local-logging, org-map-entries)
(org-find-olp, org-find-exact-heading-in-directory)
(org-cycle-agenda-files, org-release-buffers, org-fill-template)
(org-agenda-prepare-buffers, org-occur-in-agenda-files)
(org-replace-escapes): Use dolist.
(org-mode): Optimize away XEmacs-only code.
(org-refile-get-targets): Remove unused var `f'.
(org-fast-todo-selection): Remove unused var `e'.
(org-make-tags-matcher): Use dolist.  Remove unused var `term'.
(org-fast-tag-selection): Use dolist.  Remove unused var `e'.
(org-format-latex): Use dolist.  Remove unused var `e'.
(org-toggle-heading): Access vars lexically rather than dynamically.
(org-backward-sentence, org-forward-sentence, org-meta-return)
(org-kill-line): Mark arg as unused.
(org-submit-bug-report): Silence compiler warning.
(org-occur-in-agenda-files): Don't use add-to-list on local vars.
(org-get-cursor-date): Remove unused var `tm'.
(org-comment-or-uncomment-region): Use standard name `_'.
(reftex-docstruct-symbol, reftex-cite-format): Declare to
silence byte-compiler.
(org-reftex-citation): Add `org--' prefix to dynamically scoped
`rds' var.

9 years agoMerge remote-tracking branch 'origin/fix/subsequence-error-with-negative-sequences'
Nicolas Petton [Sat, 8 Aug 2015 19:54:45 +0000 (21:54 +0200)]
Merge remote-tracking branch 'origin/fix/subsequence-error-with-negative-sequences'

9 years ago; Fix some of my ChangeLog entries
Eli Zaretskii [Sat, 8 Aug 2015 17:42:53 +0000 (20:42 +0300)]
; Fix some of my ChangeLog entries

9 years agoElectric quote if coding is undecided or no conv
Paul Eggert [Sat, 8 Aug 2015 16:47:37 +0000 (09:47 -0700)]
Electric quote if coding is undecided or no conv

* lisp/electric.el (electric--insertable-p): Also say that a
string is insertable if the buffer file coding system is undecided
or uses no conversion, as curved quotes will work in either case.

9 years ago; Add missing ChangeLog entry
David Kastrup [Sat, 8 Aug 2015 16:00:17 +0000 (18:00 +0200)]
; Add missing ChangeLog entry

9 years ago; Remove accidentally duplicated redisplay test.
Eli Zaretskii [Sat, 8 Aug 2015 15:54:10 +0000 (18:54 +0300)]
; Remove accidentally duplicated redisplay test.

; * test/redisplay-testsuite.el (test-redisplay-4): Remove
accidentally duplicated test.

9 years ago* configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Simplify configuration.
Paul Eggert [Sat, 8 Aug 2015 15:25:51 +0000 (08:25 -0700)]
* configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Simplify configuration.

9 years agoFix overlay string display regressions introduced in Emacs 24.5
Eli Zaretskii [Sat, 8 Aug 2015 13:55:26 +0000 (16:55 +0300)]
Fix overlay string display regressions introduced in Emacs 24.5

* src/xdisp.c (pop_it): Reset the flag to ignore overlays at this
buffer position, if we move the iterator to a new position as
result of jumping over text covered by a "replacing" display
property.

* test/redisplay-testsuite.el (test-redisplay-4): Add 2 new tests.

9 years agoSupport recovery from C stack overflow on MS-Windows
Eli Zaretskii [Sat, 8 Aug 2015 08:12:06 +0000 (11:12 +0300)]
Support recovery from C stack overflow on MS-Windows

* src/w32fns.c (w32_reset_stack_overflow_guard)
(stack_overflow_handler): New functions for handling C stack
overflow exceptions.
(my_exception_handler): Handle EXCEPTION_STACK_OVERFLOW exceptions
specially, and zero out except_addr if we do.
(globals_of_w32fns): Initialize dwMainThreadId in non-interactive
mode.
* src/sysdep.c [HAVE_STACK_OVERFLOW_HANDLING]: Add !WINDOWSNT to
the condition, as HAVE_STACK_OVERFLOW_HANDLING is now defined for
the MinGW build, but the code guarded by that is for Posix hosts.
* src/keyboard.c (command_loop) [WINDOWSNT]: Call
w32_reset_stack_overflow_guard.

* nt/inc/ms-w32.h (sigjmp_buf): New typedef.
(sigsetjmp): New macro.
(w32_reset_stack_overflow_guard): Declare the prototype.

* configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Set to 1 for MinGW.

9 years agoImprove error signalling for seq-subseq.
Phillip Lord [Fri, 7 Aug 2015 21:12:59 +0000 (22:12 +0100)]
Improve error signalling for seq-subseq.

The existing behaviour for seq-subseq is to error when indexes are too
large, but to silently ignore numbers which are too negative for lists.
String and vector handling errors in both cases. This has been
regularlised.

Error signalling behaviour has been explicitly added to the docstring of
seq-subseq, and also to cl-subseq which largely defers to
seq-subseq (and is therefore also impacted by this change).

Tests have been added for these exceptional cases, as well as one non
exceptional base case.

9 years agoImprove error checking in tramp-adb.el
Jürgen Hötzel [Fri, 7 Aug 2015 18:24:45 +0000 (20:24 +0200)]
Improve error checking in tramp-adb.el

* lisp/net/tramp-adb.el (tramp-adb-ls-output-name-less-p):
Improve error checking.  "ls -l" on Android in Enforcing mode can
print "lstat './FILENAME failed: Permission denied".

9 years ago* lisp/emacs-lisp/cl-generic.el (cl--generic-struct-tag): Don't burp on
Stefan Monnier [Fri, 7 Aug 2015 17:34:34 +0000 (13:34 -0400)]
* lisp/emacs-lisp/cl-generic.el (cl--generic-struct-tag): Don't burp on

non-struct vectors.

9 years agolisp/window.el: fix typo, more `display-buffer-use-some-frame'
Stephen Leake [Fri, 7 Aug 2015 15:32:05 +0000 (10:32 -0500)]
lisp/window.el: fix typo, more `display-buffer-use-some-frame'

* lisp/window.el: fix typo that broke build
(display-buffer--action-function-custom-type): add
`display-buffer-use-some-frame'
(display-buffer): add `display-buffer-use-some-frame' to doc string

9 years agoAdd support for 'inhibit-same-window in 'display-buffer-use-some-frame'
Stephen Leake [Fri, 7 Aug 2015 15:03:59 +0000 (10:03 -0500)]
Add support for 'inhibit-same-window in 'display-buffer-use-some-frame'

* lisp/window.el (display-buffer-use-some-frame): Add support for
'inhibit-same-window in alist.

* doc/windows.texi (display-buffer-use-some-frame): Doc support for
'inhibit-same-window in alist.

9 years agoAvoid infinite loop in display of invisible text in strings
Eli Zaretskii [Fri, 7 Aug 2015 13:42:24 +0000 (16:42 +0300)]
Avoid infinite loop in display of invisible text in strings

* src/xdisp.c (handle_invisible_prop): If the next change of
invisibility spec does not mean the beginning of a visible text,
update the string position from which to start the search for the
next invisibility change.  This avoids an infinite loop when we
have more than one invisibility spec that are made inactive by
buffer-invisibility-spec.  Simplify code.  (Bug#21200)

* test/redisplay-testsuite.el (test-redisplay-4): Add a test case
for the situation that caused bug #21200.

9 years ago* lisp/emacs-lisp/package.el: Simplify describe-package-1
Artur Malabarba [Thu, 6 Aug 2015 10:24:16 +0000 (11:24 +0100)]
* lisp/emacs-lisp/package.el: Simplify describe-package-1

(package-help-section-name-face): New face.
(package--print-help-section): New function.
(describe-package-1): Refactor section printing.

(package-make-button): Use face instead of font-lock-face, which
doesn't work on buttons.

9 years ago* lisp/emacs-lisp/package.el: Define custom faces
Artur Malabarba [Thu, 6 Aug 2015 08:37:27 +0000 (09:37 +0100)]
* lisp/emacs-lisp/package.el: Define custom faces

(package-name-face, package-description-face)
(package-status-built-in-face, package-status-external-face)
(package-status-available-face, package-status-new-face)
(package-status-held-face, package-status-disabled-face)
(package-status-installed-face, package-status-dependency-face)
(package-status-unsigned-face, package-status-incompat-face)
(package-status-avail-obso-face): New faces.
(package-menu--print-info-simple): Use them.

9 years agoFix some confusion with ‘format’
Paul Eggert [Thu, 6 Aug 2015 02:06:57 +0000 (19:06 -0700)]
Fix some confusion with ‘format’

* lisp/allout-widgets.el (allout-widgets-before-change-handler)
(allout-graphics-modification-handler):
Protect arbitrary string in a format context with "%s" format.
* lisp/avoid.el:
* lisp/cedet/semantic/bovine/scm.el: Fix comment.
* lisp/calendar/icalendar.el (icalendar--convert-sexp-to-ical):
* lisp/erc/erc-button.el (erc-button-beats-to-time):
* lisp/gnus/message.el (message-send-form-letter):
* lisp/org/ob-core.el (org-babel-check-evaluate)
(org-babel-confirm-evaluate):
* lisp/org/ob-fortran.el (org-babel-fortran-var-to-fortran):
* lisp/org/ox-latex.el (org-latex-compile):
* lisp/org/ox-man.el (org-man-compile):
* lisp/org/ox-odt.el (org-odt-template):
* lisp/org/ox-texinfo.el (org-texinfo-compile):
* lisp/progmodes/prolog.el (prolog-help-info)
(prolog-view-predspec):
* lisp/progmodes/ruby-mode.el (ruby-parse-partial):
* lisp/progmodes/verilog-mode.el (verilog-showscopes):
* lisp/textmodes/rst.el (rst-replace-lines):
Change (message (format ...)) to (message ...), and likewise
for ‘error’.  This lessens the probability of confusion when the
output of ‘format’ contains ‘%’.

9 years ago* lisp/replace.el (replace-character-fold): Default to nil
Artur Malabarba [Wed, 5 Aug 2015 17:58:38 +0000 (18:58 +0100)]
* lisp/replace.el (replace-character-fold): Default to nil

9 years ago* lisp/character-fold.el: Fix lax whitespace
Artur Malabarba [Wed, 5 Aug 2015 17:51:34 +0000 (18:51 +0100)]
* lisp/character-fold.el: Fix lax whitespace

(character-fold-table): Don't make space match other whitespace chars.
(character-fold-to-regexp): Simplify lax behaviour.

9 years agoPreserve window point in xref-find-definitions-other-window
Dmitry Gutov [Wed, 5 Aug 2015 12:18:25 +0000 (15:18 +0300)]
Preserve window point in xref-find-definitions-other-window

Fix the problem reported by Ingo Logmar in
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00152.html
* lisp/progmodes/xref.el (xref--goto-char): Extract from
xref--goto-location.
(xref--pop-to-location): Use it. Replace xref--goto-location with
a direct xref-location-marker call.
(xref--show-location): Likewise.
(xref--display-position): Use xref--goto-char.

9 years ago* lisp/progmodes/project.el: Add a paragraph to the front matter.
Dmitry Gutov [Wed, 5 Aug 2015 12:08:00 +0000 (15:08 +0300)]
* lisp/progmodes/project.el: Add a paragraph to the front matter.

9 years ago; Fix wrong/duplicate ChangeLog entries
Ingo Lohmar [Tue, 4 Aug 2015 16:26:57 +0000 (18:26 +0200)]
; Fix wrong/duplicate ChangeLog entries

9 years ago; * doc/emacs/calendar.texi (Move to Beginning or End): Fix punctuation.
Ingo Lohmar [Tue, 4 Aug 2015 16:01:57 +0000 (18:01 +0200)]
; * doc/emacs/calendar.texi (Move to Beginning or End): Fix punctuation.

9 years ago; Do not overwrite preexisting contents of unread-command-events
David Kastrup [Sat, 25 Jul 2015 16:54:42 +0000 (18:54 +0200)]
; Do not overwrite preexisting contents of unread-command-events

9 years agoImprove ansi-color filtering of unrecognized escape sequences
Daniel Colascione [Tue, 4 Aug 2015 03:06:04 +0000 (20:06 -0700)]
Improve ansi-color filtering of unrecognized escape sequences

* lisp/ansi-color.el (ansi-color-drop-regexp): Recognize mode-setting
escape sequences.
(ansi-color-filter-apply): Filter out unrecognized escape sequences
(ansi-color-apply): Filter out unrecognized escape sequences

9 years ago* lisp/emacs-lisp/package.el (package-menu-mode-map): Convert menu
Artur Malabarba [Mon, 3 Aug 2015 23:39:04 +0000 (00:39 +0100)]
* lisp/emacs-lisp/package.el (package-menu-mode-map): Convert menu

definitions to `easy-menu-define', improve a couple to account for
async, and add a couple of new commands.

9 years ago* lisp/net/tramp-cache.el (tramp-set-file-property): Fix code typo.
Jürgen Hötzel [Mon, 3 Aug 2015 17:40:25 +0000 (19:40 +0200)]
* lisp/net/tramp-cache.el (tramp-set-file-property): Fix code typo.

9 years agoAdd new 'calendar-weekend-days' option
Ingo Lohmar [Mon, 3 Aug 2015 16:49:55 +0000 (18:49 +0200)]
Add new 'calendar-weekend-days' option

Make the days receiving the `calendar-weekend-header' face freely
customizable, as they differ by region/culture.
* doc/emacs/calendar.texi: Document the new variable.
* lisp/calendar/calendar.el (calendar-generate-month): New variable
calendar-weekend-days to customize day header fontification.

9 years agoRedo text-quoting-style variable
Paul Eggert [Sun, 2 Aug 2015 22:58:02 +0000 (15:58 -0700)]
Redo text-quoting-style variable

Rename help-quote-translation to text-quoting-style,
and use symbols rather than characters as values.
This follows suggestions along these lines by Alan Mackenzie in:
http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00343.html
and by Drew Adams in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00048.html
* doc/lispref/help.texi (Keys in Documentation)
* etc/NEWS:
* lisp/cus-start.el (standard):
* src/doc.c (Fsubstitute_command_keys, syms_of_doc):
Document and/or implement the new behavior instead of the old.
(syms_of_doc): New symbols 'grave' and 'straight'.

9 years agonnimap.el: Use IMAP MOVE extension if available
Nikolaus Rath [Sun, 2 Aug 2015 22:33:38 +0000 (22:33 +0000)]
nnimap.el: Use IMAP MOVE extension if available

* lisp/gnus/nnimap.el (nnimap-request-move-article)
(nnimap-process-expiry-targets, nnimap-split-incoming-mail):
Use MOVE extension if available.

9 years agonnimap.el: Explicitly ask for server capabilities
Nikolaus Rath [Sun, 2 Aug 2015 22:28:21 +0000 (22:28 +0000)]
nnimap.el: Explicitly ask for server capabilities

* lisp/gnus/nnimap.el (nnimap-open-connection-1): Don't assume full
capabilities will be returned in the login-result.

9 years agoTreat help strings like other doc strings
Paul Eggert [Sun, 2 Aug 2015 21:55:15 +0000 (14:55 -0700)]
Treat help strings like other doc strings

* doc/lispref/text.texi (Special Properties), etc/NEWS: Document this.
* lisp/epa.el (epa--select-keys): Remove no-longer-needed calls to
substitute-command-keys.
* src/keyboard.c (show_help_echo, parse_menu_item): Call
substitute-command-keys on the help string before displaying it.

9 years agoAlso mention "curly quotes"
Paul Eggert [Sun, 2 Aug 2015 19:43:20 +0000 (12:43 -0700)]
Also mention "curly quotes"

See Drew Adams's email in:
http://lists.gnu.org/archive/html/emacs-devel/2015-08/msg00040.html
* doc/lispref/help.texi (Keys in Documentation):
Add index entry "curly quotes".
* etc/NEWS: Use the phrase "curly quotes" too.

9 years agoAdd option `calendar-weekend-days'
Ingo Lohmar [Sun, 2 Aug 2015 15:20:53 +0000 (17:20 +0200)]
Add option `calendar-weekend-days'

Previously, the face `calendar-weekend-header' was invariably applied to
Sundays and Saturdays, although weekend days differ by region/culture.
Making the days freely customizable, independent of
`calendar-week-start-day', should cover all possible scenarios.

9 years agoede-proj-target-makefile docstring tweaks
Paul Eggert [Sun, 2 Aug 2015 15:27:13 +0000 (08:27 -0700)]
ede-proj-target-makefile docstring tweaks

* lisp/cedet/ede/proj.el (ede-proj-target-makefile):
Consistently use "all:" to describe the all: target,
replacing three different and confusingly-quoted usages.

9 years agoWhitespace fixes
Eli Zaretskii [Sun, 2 Aug 2015 14:56:39 +0000 (17:56 +0300)]
Whitespace fixes

; * src/w32fns.c (get_wm_chars, deliver_wm_chars, w32_wnd_proc):
Whitespace fixes.

9 years agoDon't abort emacsclientw when -a was specified
Evgeny Fraimovitch [Sun, 2 Aug 2015 14:48:42 +0000 (17:48 +0300)]
Don't abort emacsclientw when -a was specified

* lib-src/emacsclient.c (set_tcp_socket) [WINDOWSNT]: Don't error
out if we are in emacsclientw and -a was specified.

Copyright-paperwork-exempt: yes

9 years agoFix handling of 1st keystroke on MS-Windows
Eli Zaretskii [Sun, 2 Aug 2015 14:40:19 +0000 (17:40 +0300)]
Fix handling of 1st keystroke on MS-Windows

* src/w32fns.c (globals_of_w32fns): Initialize after_deadkey to -1.
This is needed to correctly handle the session's first keystroke,
if it has any modifiers.  (Bug#19994)

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 2 Aug 2015 10:23:54 +0000 (06:23 -0400)]
; Auto-commit of ChangeLog files.

9 years agoSubstitute some customization etc. doc strings
Paul Eggert [Sun, 2 Aug 2015 07:04:51 +0000 (00:04 -0700)]
Substitute some customization etc. doc strings

These changes apply substitute-command-keys to some
doc strings that were going through untranslated
when creating customization or other widgets.
* lisp/cus-edit.el (custom-group-value-create):
* lisp/wid-edit.el (widget-default-create):
(widget-push-button-value-create):
Treat the widget tag as a doc string.
* lisp/emacs-lisp/cl-extra.el (cl--describe-class-slot):
Treat the :documentation value as a doc string.
* lisp/wid-edit.el (widget-choose):
Treat the choice names as doc strings.
(widget-default-create): Treat the :doc value as a doc string.
(widget-toggle-value-create): Treat the :on and :off values
as doc strings.
(widget-documentation-string-value-create):
Substitute the doc string.

9 years agoAdd a second argument to project-ignores
Dmitry Gutov [Sat, 1 Aug 2015 22:01:28 +0000 (01:01 +0300)]
Add a second argument to project-ignores

* lisp/progmodes/project.el (project-ignores): Add a second
argument DIR.

* lisp/progmodes/project.el (project-ignores): Only include the VC
ignores if DIR is the VC root.

* lisp/progmodes/xref.el (xref-find-regexp): Update accordingly.

9 years agoPrevent incorrect display when 'line-spacing' variable is set
Eli Zaretskii [Sat, 1 Aug 2015 12:32:48 +0000 (15:32 +0300)]
Prevent incorrect display when 'line-spacing' variable is set

* src/xdisp.c (try_window_id): Give up this optimization if the
buffer has its 'line-spacing' variable set non-nil.

9 years agoDon't pass NOVISIT to find-file
Dmitry Gutov [Sat, 1 Aug 2015 11:40:14 +0000 (14:40 +0300)]
Don't pass NOVISIT to find-file

* lisp/progmodes/etags.el (next-file):
Don't pass NOVISIT to find-file (bug#21175).

9 years agoIgnore buffer restriction for tags-loop-eval
Dmitry Gutov [Sat, 1 Aug 2015 11:21:02 +0000 (14:21 +0300)]
Ignore buffer restriction for tags-loop-eval

* lisp/progmodes/etags.el (tags-loop-continue): Ignore buffer
restriction (bug#21167).

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 1 Aug 2015 10:18:42 +0000 (06:18 -0400)]
; Auto-commit of loaddefs files.

9 years agoFix a thinko in 'ffap-gopher-at-point'
Eli Zaretskii [Sat, 1 Aug 2015 09:33:48 +0000 (12:33 +0300)]
Fix a thinko in 'ffap-gopher-at-point'

* lisp/ffap.el (ffap-gopher-at-point): Fix last change.  (Bug#21168)

9 years agoHonor 'line-spacing' for empty lines
Eli Zaretskii [Sat, 1 Aug 2015 09:10:45 +0000 (12:10 +0300)]
Honor 'line-spacing' for empty lines

* src/xdisp.c (append_space_for_newline): Honor 'line-height'
property and 'line-spacing' frame parameter or variable or
property for empty lines, by doing the same processing as in
x_produce_glyph for newline characters.  (Bug#21165)

9 years agoSimplify by assuming C99 integer division
Paul Eggert [Sat, 1 Aug 2015 07:26:37 +0000 (00:26 -0700)]
Simplify by assuming C99 integer division

* src/floatfns.c (ceiling2, floor2, truncate2):
Assume C99 (i.e., Fortran) semantics for integer division.
This simplifies the code.

9 years agoDon't overflow if computing approximate percentage
Paul Eggert [Fri, 31 Jul 2015 17:12:37 +0000 (10:12 -0700)]
Don't overflow if computing approximate percentage

* lisp/align.el (align-region):
* lisp/cedet/semantic.el (semantic-repeat-parse-whole-stream):
* lisp/cedet/semantic/wisent.el (wisent-parse-region):
* lisp/cus-edit.el (custom-buffer-create-internal):
* lisp/emacs-lisp/checkdoc.el (checkdoc-interactive-ispell-loop)
(checkdoc-message-interactive-ispell-loop, checkdoc-next-error)
(checkdoc-next-message-error):
* lisp/emacs-lisp/eieio-opt.el (eieio-display-method-list):
* lisp/epa.el (epa-progress-callback-function):
* lisp/erc/erc-dcc.el (erc-dcc-do-LIST-command):
* lisp/ffap.el (ffap-menu-rescan):
* lisp/gnus/nnbabyl.el (nnbabyl-retrieve-headers):
* lisp/gnus/nndiary.el (nndiary-retrieve-headers):
* lisp/gnus/nneething.el (nneething-retrieve-headers):
* lisp/gnus/nnmbox.el (nnmbox-retrieve-headers):
* lisp/gnus/nnmh.el (nnmh-retrieve-headers):
* lisp/gnus/nnml.el (nnml-retrieve-headers):
* lisp/gnus/nnspool.el (nnspool-retrieve-headers):
* lisp/gnus/nntp.el (nntp-retrieve-headers)
(nntp-retrieve-articles):
* lisp/imenu.el (imenu--relative-position):
* lisp/international/ja-dic-cnv.el (skkdic-collect-okuri-nasi)
(skkdic-convert-okuri-nasi):
* lisp/net/ange-ftp.el (ange-ftp-process-handle-hash):
* lisp/nxml/rng-valid.el (rng-compute-mode-line-string):
* lisp/org/org-list.el (org-update-checkbox-count):
* lisp/org/org.el (org-table-map-tables)
(org-update-parent-todo-statistics):
* lisp/play/decipher.el (decipher-insert-frequency-counts)
(decipher-analyze-buffer):
* lisp/profiler.el (profiler-format-percent):
* lisp/progmodes/cc-cmds.el (c-progress-update):
* lisp/progmodes/cpp.el (cpp-highlight-buffer):
* lisp/progmodes/idlwave.el (idlwave-convert-xml-system-routine-info)
(idlwave-list-load-path-shadows):
* lisp/progmodes/opascal.el (opascal-step-progress):
* lisp/progmodes/vhdl-mode.el (vhdl-update-progress-info)
(vhdl-scan-directory-contents):
* lisp/textmodes/bibtex.el (bibtex-progress-message):
* lisp/textmodes/flyspell.el (flyspell-small-region)
(flyspell-external-point-words):
* lisp/textmodes/table.el (table-recognize):
Prefer (floor (* 100.0 NUMERATOR) DENOMINATOR) when calculating
progress-report percentages and the like.  This avoids problems
if (* 100 NUMERATOR) would overflow.
* lisp/gnus/gnus-registry.el (gnus-registry-import-eld):
* lisp/gnus/registry.el (registry-reindex):
Use (* 100.0 ...) rather than (* 100 ...) to avoid int overflow issues.
* lisp/descr-text.el (describe-char):
* lisp/org/org-colview.el (org-nofm-to-completion):
* lisp/ps-print.el (ps-plot):
* lisp/simple.el (what-cursor-position):
Prefer (round (* 100.0 NUMERATOR) DENOMINATOR) to a
more-complicated and less-accurate approximation.

9 years agoFix some int overflows in profiler.c
Paul Eggert [Fri, 31 Jul 2015 16:55:49 +0000 (09:55 -0700)]
Fix some int overflows in profiler.c

* src/profiler.c (make_log): Make args EMACS_INT, not int,
to avoid unwanted behavior on 'int' overflow.
(make_log, evict_lower_half, record_backtrace):
Use ptrdiff_t, not int, for object indexes.

9 years agoPort to pedantic memcpy
Paul Eggert [Fri, 31 Jul 2015 16:46:45 +0000 (09:46 -0700)]
Port to pedantic memcpy

* src/keyboard.c (menu_bar_items, tool_bar_items):
* src/xrdb.c (magic_db):
Port to pedantic memcpy implementations that reject memcpy (0, 0, 0).

9 years agoMerge from gnulib
Paul Eggert [Fri, 31 Jul 2015 16:44:47 +0000 (09:44 -0700)]
Merge from gnulib

This incorporates:
2015-07-29 time_rz: port to pedantic memcpy
* lib/time_rz.c: Copy from gnulib.

9 years ago* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Fix bug
Artur Malabarba [Fri, 31 Jul 2015 11:51:04 +0000 (12:51 +0100)]
* lisp/emacs-lisp/tabulated-list.el (tabulated-list-print): Fix bug

When updating the very last entry, tabulated-list-print would
erase it and then try to look at the next one (which obviously
isn't there).

9 years ago;* src/w32fns.c (syms_of_w32fns): Fix last commit.
Eli Zaretskii [Fri, 31 Jul 2015 09:18:10 +0000 (12:18 +0300)]
;* src/w32fns.c (syms_of_w32fns): Fix last commit.

9 years agoAllow to use the old key processing code on MS-Windows
Eli Zaretskii [Fri, 31 Jul 2015 09:14:07 +0000 (12:14 +0300)]
Allow to use the old key processing code on MS-Windows

* src/w32fns.c (syms_of_w32fns) <w32-use-fallback-wm-chars-method>:
New variable.
(w32_wnd_proc): Use it to invoke the old code that processed
character keys, as fallback, when this variable is non-nil.  Fix
typos in comments.  (Bug#19994)

9 years agoImprove handling of Unicode keyboard input on MS-Windows
Ilya Zakharevich [Fri, 31 Jul 2015 08:50:23 +0000 (11:50 +0300)]
Improve handling of Unicode keyboard input on MS-Windows

* src/w32fns.c (get_wm_chars, deliver_wm_chars): New functions.
(FPRINTF_WM_CHARS) [DEBUG_WM_CHARS]: New macro for debugging.
(w32_wnd_proc): Call deliver_wm_chars to process non-special keys
upon receiving WM_KEYDOWN or WM_SYSKEYDOWN messages.  If that is
successful, don't call TranslateMessage.  (Bug#19994)

9 years agoFix default-directory in changeset diffs after vc-print-log
Dmitry Gutov [Fri, 31 Jul 2015 02:52:53 +0000 (05:52 +0300)]
Fix default-directory in changeset diffs after vc-print-log

* lisp/vc/log-view.el (log-view-diff-common): Move the
revision-granularity check back into log-view-diff-changeset.
(log-view-diff-changeset): Bind default-directory to the current
VC root.

9 years agoRename project-directories to project-roots
Dmitry Gutov [Fri, 31 Jul 2015 02:37:28 +0000 (05:37 +0300)]
Rename project-directories to project-roots

* lisp/progmodes/project.el (project-search-path-function)
(project-search-path): Update the docstring.
(project-directories): Rename to `project-roots', update all
callers and implementations accordingly.
(project-root): Remove.

* lisp/progmodes/xref.el (xref-find-regexp): Use * instead of *.*
as the default file mask.

9 years agoSupport long URLs in w32-shell-execute
Eli Zaretskii [Thu, 30 Jul 2015 16:50:51 +0000 (19:50 +0300)]
Support long URLs in w32-shell-execute

* src/w32fns.c (Fw32_shell_execute): Don't use filename_to_utf16
and filename_to_ansi to convert the DOCUMENT argument, as it could
be a URL that is not limited to MAX_PATH characters.  Instead, use
MultiByteToWideChar directly, and allocate heap storage as
required to accommodate the converted string.  Likewise with
non-Unicode operation.  Ensure OPERATION is null-terminated, even
if it is longer than 32K bytes.  (Bug#21158)

9 years agovc-mtn-find-revision handle null rev.
Stephen Leake [Thu, 30 Jul 2015 06:25:47 +0000 (01:25 -0500)]
vc-mtn-find-revision handle null rev.

* lisp/vc/vc-mtn.el (vc-mtn-find-revision): handle null rev

9 years agoAdd docs for display-buffer action display-buffer-use-some-frame
Stephen Leake [Thu, 30 Jul 2015 00:23:19 +0000 (19:23 -0500)]
Add docs for display-buffer action display-buffer-use-some-frame

* lisp/window.el (display-buffer-use-some-frame): improve doc string

* doc/lispref/windows.texi (Display Action Functions): add
  display-buffer-use-some-frame

* etc/NEWS: mention display-buffer-use-some-frame

9 years agoAdd display-buffer action display-buffer-use-some-frame
Stephen Leake [Wed, 29 Jul 2015 23:30:36 +0000 (18:30 -0500)]
Add display-buffer action display-buffer-use-some-frame

* lisp/window.el (display-buffer-use-some-frame): new

9 years agoHandle vc-mtn error more gently
Stephen Leake [Fri, 24 Jul 2015 16:01:16 +0000 (11:01 -0500)]
Handle vc-mtn error more gently

* lisp/vc/vc-mtn.el (vc-mtn-mode-line-string): return "" when branch is nil

9 years agoFix Tramp problems with multihops, and nc.
Michael Albinus [Wed, 29 Jul 2015 19:07:01 +0000 (21:07 +0200)]
Fix Tramp problems with multihops, and nc.

* lisp/net/tramp-cache.el (tramp-get-file-property)
(tramp-set-file-property, tramp-flush-file-property)
(tramp-get-connection-property, tramp-set-connection-property)
(tramp-flush-connection-property): Remove hop from vector.

* lisp/net/tramp-gw.el (tramp-gw-process-filter): Ignore errors.

* lisp/net/tramp-sh.el (tramp-methods) <nc>: Separate STDERR.
(tramp-do-copy-or-rename-file-out-of-band): Increase timeout of
netstat to 60".
(tramp-sh-handle-start-file-process): Do not show hops in prompt.

* lisp/net/tramp.el (tramp-handle-file-name-as-directory)
(tramp-handle-file-name-directory, tramp-handle-file-remote-p):
Keep hop in result.

* test/automated/tramp-tests.el (tramp-test02-file-name-dissect):
Add hop tests.

9 years agoResurrect highlighting of repeated words by Flyspell Mode
Eli Zaretskii [Wed, 29 Jul 2015 17:52:23 +0000 (20:52 +0300)]
Resurrect highlighting of repeated words by Flyspell Mode

* lisp/textmodes/flyspell.el (flyspell-word): Leave some non-word
characters between point and the doublon candidate, so that
flyspell-word-search-backward finds it.  (Bug#21157)

9 years agoFix redisplay of large images on expose events
Eli Zaretskii [Wed, 29 Jul 2015 17:02:56 +0000 (20:02 +0300)]
Fix redisplay of large images on expose events

* src/xdisp.c (expose_window, expose_area): Avoid comparisons
between signed negative values and unsigned values.  This
prevented redisplay on expose events when the window showed a very
large image.

9 years agoRemove unnecessary stack overflow dependency
Paul Eggert [Wed, 29 Jul 2015 04:41:59 +0000 (21:41 -0700)]
Remove unnecessary stack overflow dependency

* configure.ac (HAVE_STACK_OVERFLOW_HANDLING):
Don't worry about $ac_cv_header_sys_resource_h and
$ac_cv_func_getrlimit, as they're no longer needed for this.
Problem reported by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2015-07/msg00443.html

9 years agoPacify compilation -Wincompatible-pointer-types warnings
Andy Moreton [Tue, 28 Jul 2015 13:37:31 +0000 (16:37 +0300)]
Pacify compilation -Wincompatible-pointer-types warnings

* src/w32proc.c (Fw32_get_codepage_charset): Avoid compilation
warning.
(CompareStringW_Proc): New typedef.
(w32_compare_strings): Use it, to pacify compiler warnings under
"-Wincompatible-pointer-types".
* src/w32fns.c (GetDiskFreeSpaceExW_Proc)
(GetDiskFreeSpaceExA_Proc): New typedefs.
(Ffile_system_info): Use them, to pacify compiler warnings under
"-Wincompatible-pointer-types".

Copyright-paperwork-exempt: yes

9 years agoFix subscript error in calculate_direct_scrolling
Paul Eggert [Tue, 28 Jul 2015 06:36:48 +0000 (23:36 -0700)]
Fix subscript error in calculate_direct_scrolling

Use slightly-longer cost vectors.  Without this change,
calculate_direct_scrolling can have a subscript violation when
FRAME_LINES (frame) <= delta.
* src/scroll.c (calculate_scrolling, calculate_direct_scrolling)
(line_ins_del, do_line_insertion_deletion_costs):
Allocate and use slightly-larger cost vectors, ones based on
FRAME_TOTAL_LINES instead of FRAME_LINES.

9 years agoFix uninitalized value in encode_coding_object
Paul Eggert [Tue, 28 Jul 2015 06:18:14 +0000 (23:18 -0700)]
Fix uninitalized value in encode_coding_object

* src/coding.c (encode_coding_object): Also initialize
coding->src_pos and coding->src_pos_byte when NILP (src_object).
This avoids later use of uninitialized storage.

9 years ago* doc/lispref/variables.texi (Variable Aliases): Typo fix. (Bug#21141)
Xue Fuqiao [Tue, 28 Jul 2015 00:25:33 +0000 (08:25 +0800)]
* doc/lispref/variables.texi (Variable Aliases): Typo fix.  (Bug#21141)

9 years agoMerge from gnulib
Paul Eggert [Mon, 27 Jul 2015 23:50:44 +0000 (16:50 -0700)]
Merge from gnulib

This incorporates:
2015-07-27 time_rz: port better to MinGW
2015-07-27 time: port __need_time_t to MinGW
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/strftime.c, lib/time.in.h, lib/time_rz.c: Copy from gnulib.
* lib/time-internal.h: New file, from gnulib.