1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 18:40:39 -08:00
Commit graph

122311 commits

Author SHA1 Message Date
Artur Malabarba
bf3f6a961f * emacs-lisp/lisp-mnt.el (lm-header): save-excursion 2015-08-12 08:55:38 +01:00
Fabián Ezequiel Gallina
197f280042 ; python.el: Emacs 24.x compatibility fixes
* lisp/progmodes/python.el: Provide compatibility alternatives for
prog-widen and prog-first-column.
2015-08-11 23:56:25 -03:00
Fabián Ezequiel Gallina
bf0ed73400 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.
2015-08-11 23:04:11 -03:00
Paul Eggert
d6640d6e4c 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.
2015-08-11 15:53:56 -07:00
Stephen Leake
85f7e5115f 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.
2015-08-11 14:29:34 -05:00
Stefan Monnier
6171d5b1f9 * 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.
2015-08-11 11:43:10 -04:00
Jürgen Hötzel
acde89a208 ; 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.
2015-08-11 08:57:45 +02:00
Stephen Leake
d7df36e745 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.
2015-08-10 21:55:37 -05:00
Phillip Lord
21e1673be3 * ChangeLog.2: Formatting update.
Formatting for one change entry did not follow standard ChangeLog
conventions and has now been updated.
2015-08-10 23:04:05 +01:00
Eli Zaretskii
59676ae9e9 Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs 2015-08-10 21:16:13 +03:00
Eli Zaretskii
30a6b1f814 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.
2015-08-10 21:15:03 +03:00
Samer Masterson
5cd6c08998 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)
2015-08-10 11:14:27 -07:00
Eli Zaretskii
3985a21b52 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)
2015-08-10 20:01:31 +03:00
Alan Mackenzie
092e0a0c51 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.
2015-08-10 16:54:35 +00:00
Paul Eggert
a9bb9d8fc2 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.
2015-08-09 23:23:38 -07:00
Dmitry Gutov
d39f33cf37 ; Fix xref--show-location, after regression in ee50e62 2015-08-10 04:30:33 +03:00
Dmitry Gutov
6f9b233448 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.
2015-08-10 04:05:24 +03:00
Paul Eggert
6a45e72052 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 `...'.
2015-08-09 16:23:06 -07:00
Paul Eggert
e8b9b8c063 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
2015-08-09 16:12:11 -07:00
Nicolas Richard
3b112f6389 Use kpsewhich in ffap-latex-mode, if available
* lisp/ffap.el (ffap-latex-guess-rules): New variable.
(ffap-latex-mode): Use kpsewhich if available.
2015-08-09 18:41:44 +02:00
Nicolas Richard
7f1baf2bfa 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.
2015-08-09 18:41:43 +02:00
Nicolas Richard
3e9759a3d5 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.
2015-08-09 18:41:43 +02:00
Nicolas Richard
833f9821f5 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.
2015-08-09 18:41:43 +02:00
Paul Eggert
5091586f57 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.
2015-08-09 07:48:23 -07:00
Daiki Ueno
cec82457f2 Utilize `quit-window' in epa.el
* epa.el (epa-exit-buffer-function): Set to `quit-window'.

Fixes: debbugs:21210
2015-08-09 14:33:44 +02:00
Glenn Morris
a6bcd27f17 ; Auto-commit of ChangeLog files. 2015-08-09 06:25:42 -04:00
Ivan Kanis
9596accf50 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.
2015-08-09 11:27:38 +02:00
Artur Malabarba
a5bdb872ed * isearch.el (isearch-search-fun-default): (Bug#21164)
Respect `isearch-lax-whitespace' when searching through
`isearch-word'.
2015-08-09 09:57:05 +01:00
Stefan Monnier
7e8f7e089f * test/automated/ert-tests.el (ert-test-deftest): Add FIXME. 2015-08-08 19:43:14 -04:00
Stefan Monnier
3a5f75193e * 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.
2015-08-08 19:41:57 -04:00
Nicolas Petton
45987b3453 Merge remote-tracking branch 'origin/fix/subsequence-error-with-negative-sequences' 2015-08-08 21:54:45 +02:00
Eli Zaretskii
c208eefcef ; Fix some of my ChangeLog entries 2015-08-08 20:42:53 +03:00
Paul Eggert
b085bb4269 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.
2015-08-08 09:48:04 -07:00
David Kastrup
ab574175a4 ; Add missing ChangeLog entry 2015-08-08 18:00:56 +02:00
Eli Zaretskii
ac9960b9a0 ; Remove accidentally duplicated redisplay test.
; * test/redisplay-testsuite.el (test-redisplay-4): Remove
accidentally duplicated test.
2015-08-08 18:54:10 +03:00
Paul Eggert
46387c54ad * configure.ac (HAVE_STACK_OVERFLOW_HANDLING): Simplify configuration. 2015-08-08 08:26:15 -07:00
Eli Zaretskii
1bb08a8cb1 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.
2015-08-08 16:55:26 +03:00
Eli Zaretskii
7afa4f300b 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.
2015-08-08 11:12:06 +03:00
Phillip Lord
feadec307d 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.
2015-08-07 22:12:59 +01:00
Jürgen Hötzel
35656b6fa4 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".
2015-08-07 20:24:45 +02:00
Stefan Monnier
c5565ce5b0 * lisp/emacs-lisp/cl-generic.el (cl--generic-struct-tag): Don't burp on
non-struct vectors.
2015-08-07 13:34:34 -04:00
Stephen Leake
19154876b9 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
2015-08-07 10:32:05 -05:00
Stephen Leake
4daa09e499 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.
2015-08-07 10:03:59 -05:00
Eli Zaretskii
701484d524 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.
2015-08-07 16:42:24 +03:00
Artur Malabarba
0aec2aaccd * 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.
2015-08-06 11:27:37 +01:00
Artur Malabarba
1be349c628 * 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.
2015-08-06 11:27:37 +01:00
Paul Eggert
0c856a2c45 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 ‘%’.
2015-08-05 19:07:28 -07:00
Artur Malabarba
ec044fd2bf * lisp/replace.el (replace-character-fold): Default to nil 2015-08-05 19:15:44 +01:00
Artur Malabarba
437862c5c9 * 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.
2015-08-05 19:15:44 +01:00
Dmitry Gutov
ee50e62a44 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.
2015-08-05 15:19:04 +03:00