1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
Commit Graph

121751 Commits

Author SHA1 Message Date
Glenn Morris
cc88cb8ac4 * lisp/Makefile.in (check-defun-dups): Also skip ldefs-boot. 2015-06-04 19:26:32 -04:00
Glenn Morris
058ecce357 * lisp/leim/quail/lrt.el (quail-lrt-update-translation):
Rename from quail-lao-update-translation, since lao.el defines that.
2015-06-04 19:25:48 -04:00
Dmitry Gutov
f6fc446d93 Handle new-style advice in find-funct
* lisp/emacs-lisp/find-func.el (find-function-advised-original):
Handle new-style advice.  Return the symbol's function definition.
(Bug#20718)
(find-function-library): Update accordingly.
2015-06-05 01:34:40 +03:00
Nicolas Petton
d4aca72ead Merge branch 'map' 2015-06-04 22:30:29 +02:00
Nicolas Petton
cfb35800a8 * lisp/emacs-lisp/map.el: Better docstring for the map pcase macro. 2015-06-04 22:26:22 +02:00
Nicolas Petton
015c89a912 ; * etc/NEWS: Add string-greaterp 2015-06-04 18:31:49 +02:00
Nicolas Petton
41a929c5ae Add new function string-greaterp
* lisp/subr.el (string-greaterp): New function.  Also aliased to
`string>'.
* test/automated/subr-tests.el (string-comparison-test): Add unit
tests for `string>'and `string<'.
* src/fns.c (string-lessp): Better docstring.
2015-06-04 18:27:54 +02:00
Eli Zaretskii
285260fce8 Fix timezone-related functions on MS-Windows
* src/editfns.c (set_time_zone_rule) [WINDOWSNT]: Always call
'xputenv', even if no reallocation of tzvalbuf was necessary.
This fixes a bug in timezone-related functions on MS-Windows.
Reported by Fabrice Popineau <fabrice.popineau@gmail.com>.
2015-06-04 18:28:29 +03:00
Paul Eggert
adc7d9e89c Don't pass raw directory name to 'error'
* lisp/files.el (basic-save-buffer-2): Avoid format error if
a directory name contains a string like "%s".
2015-06-03 17:19:19 -07:00
Dmitry Gutov
6d020ecd89 Override 'grep --color=always'
* lisp/progmodes/xref.el (xref-collect-matches):
Override --color=always in grep-find-template.
2015-06-04 02:46:43 +03:00
Michael Albinus
0c182b332d Fix error introduced recently in file-notify-tests.el
* test/automated/file-notify-tests.el
(file-notify--test-remote-enabled): Do not use `file-notify--test-desc'.
(file-notify--deftest-remote): Revert previous patch, not
necessary anymore.
2015-06-03 20:03:42 +02:00
Wolfgang Jenkner
68529c89fa * src/indent.c (Fvertical_motion): Amend motion by 0 lines.
Starting from a display string after a newline, point went to the
previous line.  Also, fix an inadvertent use of a buffer position
with FETCH_BYTE.  (Bug#20701)
2015-06-03 15:29:24 +02:00
Michael Albinus
a62306bbcb Instrument file-notify-test.el in order to catch hydra error.
* test/automated/file-notify-tests.el (file-notify--deftest-remote):
Wrap body by `ignore-case', in order to trap non-local errors.
2015-06-03 14:07:06 +02:00
YAMAMOTO Mitsuharu
e6d8f70057 Undo previous changes in non-toolkit scroll bar drawing.
* src/xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
[!USE_TOOLKIT_SCROLL_BARS]: Draw into scroll bar window.  (Bug#20668)
2015-06-03 15:22:56 +09:00
Paul Eggert
9204b0c622 * .gitignore: Also ignore doc/*/*/*.html and .ps. 2015-06-02 22:52:44 -07:00
Paul Eggert
8e06d22bb6 Support quotes 'like this' in info files
This is possible when 'makeinfo --disable-encoding' is used
in Texinfo 5.
* lisp/calc/calc-help.el (calc-describe-thing):
* lisp/gnus/gnus-art.el (gnus-button-alist):
* lisp/info.el (Info-find-index-name):
* lisp/vc/ediff-help.el (ediff-help-for-quick-help):
Also support quotes 'like this'.
* lisp/calc/calc-help.el (calc-describe-thing): Simplify.
* lisp/finder.el (finder-font-lock-keywords): Remove var that
hasn't been used in years, instead of bothering to fix its quoting.
2015-06-02 22:52:44 -07:00
Paul Eggert
f2211e51b7 * .gitignore: Remove !test/etags/html-src/*.html.
It's no longer needed, since *.html was removed.  Sort.
2015-06-02 19:59:25 -07:00
Dmitry Gutov
c6ee95ddee Restore <D> instead of '.' in grep-find-template
* lisp/cedet/semantic/symref/grep.el
(semantic-symref-grep-use-template): Update a comment.

* lisp/progmodes/grep.el (grep-compute-defaults): Restore <D>
instead of '.' in grep-find-template (bug#20719).
(rgrep): Pass nil as the directory to rgrep-default-command.

* lisp/progmodes/grep.el (grep-expand-keywords): Use '.' as the
default value for DIR.

* lisp/progmodes/xref.el (xref-collect-matches): Drop the
workaround.
2015-06-03 05:45:15 +03:00
Glenn Morris
0a9e3248af * configure.ac (emacs_config_features): Add X toolkit and scroll-bars. 2015-06-02 21:25:11 -04:00
Glenn Morris
7714add630 ; * etc/NEWS: Tiny edit. 2015-06-02 20:46:09 -04:00
Glenn Morris
f0380bb6cf * configure.ac (emacs_config_features): Add Cairo. 2015-06-02 20:22:35 -04:00
Glenn Morris
b459d945c0 ; * etc/NEWS: Add Cairo placeholder. 2015-06-02 20:20:06 -04:00
Glenn Morris
73dee110de * configure.ac [HAVE_GTK3]: Remove USE_CAIRO that gets reset later. 2015-06-02 20:19:06 -04:00
Michael Albinus
420b293c7d Ensure, that autorevert works for remote files in file-notify-tests.el
* test/automated/file-notify-tests.el (file-notify--test-desc):
New defvar.
(file-notify--test-remote-enabled)
(file-notify-test00-availability, file-notify-test01-add-watch)
(file-notify-test02-events): Use it.
(file-notify--test-event-test): Check proper descriptor.
(file-notify-test03-autorevert): Ensure, that
`visited-file-modtime' has changed.

Fixes: debbugs:20392
2015-06-02 23:47:17 +02:00
Nicolas Petton
988d721186 Add a pcase pattern for maps and `map-let' based on it
* lisp/emacs-lisp/map.el (map-let): New macro.
(map--make-pcase-bindings, map--make-pcase-patterns): New functions.
* test/automated/map-tests.el: New test for `map-let'.
2015-06-02 22:19:48 +02:00
Dmitry Gutov
7f01832e13 Reuse rgrep mechanics in xref-find-regexp
* lisp/progmodes/grep.el (rgrep-default-command):
Extract from `rgrep'.

* lisp/progmodes/xref.el (xref-collect-references): Split from
`xref-collect-matches'.  Only handle the case of symbol search.
(xref-collect-matches): Instead of Semantic Symref, use
`rgrep-default-command', to take advantage of its directory and
file ignore settings.
(xref--collect-match): Remove the last argument, leaving the
regexp construction up to the caller.

* lisp/progmodes/elisp-mode.el (elisp--xref-find-matches):
Change to take the xref-collect- function to use as an argument.
(elisp-xref-find): Update accordingly.

* lisp/progmodes/etags.el (etags--xref-find-matches)
(etags-xref-find): Same.
2015-06-02 18:47:43 +03:00
Dmitry Gutov
64f2d346b7 Move xref-elisp-location to elisp-mode.el
* lisp/progmodes/xref.el (xref-elisp-location)
(xref-make-elisp-location, xref-location-marker): Remove here.
(xref--xref): Don't limit the type of the location slot.

* lisp/progmodes/elisp-mode.el (xref-elisp-location):
Define as a cl-struct here.
(xref-location-marker): Move here.
2015-06-02 18:47:42 +03:00
Eli Zaretskii
98cb43fb0d Minor tweaks for .gitignore
* .gitignore: Don't ignore versioned *.html and *.ps files.  Don't
ignore admin/notes/tags that might be ignored as TAGS on
case-insensitive filesystems.  (Bug#20710)
2015-06-02 18:27:28 +03:00
Paul Eggert
a158324abd Generate curved quotes in ert doc
* lisp/emacs-lisp/ert.el (ert--print-test-for-ewoc)
(ert-results-mode-menu)
(ert-results-pop-to-backtrace-for-test-at-point)
(ert-results-pop-to-messages-for-test-at-point)
(ert-results-pop-to-should-forms-for-test-at-point)
(ert-describe-test):
Quote ‘like this’, not `like this', when generating doc strings
and the like.
* test/automated/ert-x-tests.el (ert-test-describe-test):
Allow quoting ‘like this’.
2015-06-02 07:33:14 -07:00
Nicolas Richard
c7695d0adb Add test for previous commit
* test/automated/replace-tests.el: New file.
(query-replace--split-string-tests): Add test for previous commit.
2015-06-02 10:54:31 +02:00
Nicolas Richard
bc9d9bc7a8 Avoid confusion in query-replace history when replacing NUL chars
* lisp/replace.el (query-replace--split-string): New function.
(query-replace-read-from): Rely on the 'separator' property
instead of searching for the NUL character (Bug#20690).
2015-06-02 10:51:27 +02:00
Glenn Morris
59db4308b5 Merge from origin/emacs-24
8b5f2f4 * doc/emacs/emacs.texi: Update the ISBN of the Emacs manual.
2015-06-01 23:16:40 -07:00
Glenn Morris
9fcd66daf8 ; Merge from origin/emacs-24
The following commits were skipped:

82e2ce9 Bump Emacs version to 24.5.50.
866501e * lisp/ChangeLog: Remove a duplicate
8272c1d lisp/ldefs-boot.el: Update for the 24.5 release
7cad9d5 Update the 24.5 release date in all ChangeLog files
2015-06-01 23:16:39 -07:00
Glenn Morris
9b97b0402c * admin/gitmerge.el (gitmerge-commit-message):
Exclude "skipped" messages from ChangeLog.
2015-06-01 23:16:03 -07:00
Michael Albinus
e3a0f3daf1 Sync with Tramp repository
* lisp/net/tramp.el (tramp-message): Dump connection buffer error
messages.
(tramp-handle-make-auto-save-file-name): When calling
`make-auto-save-file-name' internally, make sure it uses Unix-like
behavior, not Windows-like behavior.

* lisp/net/tramp-sh.el (tramp-set-file-uid-gid): Add a timeout for
the local case, because "chown" might fail on w32.

* lisp/net/trampver.el (tramp-repository-get-version): Don't run
for XEmacs.
2015-06-01 21:11:24 +02:00
Eli Zaretskii
40b33be830 MS-Windows followup for batch stdout/stderr output changes
* lisp/international/mule-cmds.el (set-locale-environment): In
batch mode, use console codepages for keyboard and terminal
encoding.  (Bug#20545)
2015-06-01 18:17:28 +03:00
Eli Zaretskii
d0848f8dde Update .gitattributes for DOS EOL files
* .gitattributes: Use "whitespace=cr-at-eol" for files with DOS
CRLF end-of-line format.
2015-06-01 18:01:49 +03:00
Glenn Morris
e8f586be32 ; Auto-commit of loaddefs files. 2015-06-01 06:21:38 -04:00
Paul Eggert
2c656f7deb Avoid grave accent quoting in stderr diagnostics
A few Emacs diagnostics go directly to stderr, and so can't easily
contain curved quotes (as non-UTF-8 locales might mishandle them).
Instead of bothering to add support for this rarity, reword the
diagnostics so that they don't use grave accent to quote.
* src/alloc.c (mark_memory): Fix comment.
* src/buffer.c (init_buffer):
* src/dispnew.c (init_display):
* src/emacs.c (main, sort_args):
* src/lread.c (dir_warning):
* src/term.c (init_tty):
* src/unexmacosx.c (unexec):
* src/xfns.c (select_visual):
* src/xterm.c (cvt_string_to_pixel, x_io_error_quitter):
Reword stderr diagnostics to avoid quoting `like this'.
* src/unexmacosx.c: Include errno.h.
* src/xfns.c (select_visual): Encode value for locale.
2015-05-31 23:53:45 -07:00
Paul Eggert
467af178f5 Treat batch stdout/stderr like standard display
Calls like (print FOO) could generate improperly encoded or
hard-to-read output if FOO contains characters outside the system
locale.  Fix this by treating batch stdout and stderr like
interactive standard display, when it comes to transliterating and
encoding characters (Bug#20545).
* doc/emacs/mule.texi (Communication Coding):
* doc/lispref/display.texi (Active Display Table):
* doc/lispref/nonascii.texi (Locales):
* etc/NEWS:
* src/coding.c (syms_of_coding):
* src/dispnew.c (syms_of_display):
Document this.
* src/print.c: Include disptab.h.
(printchar_to_stream): New function, with much of the guts of the
old Fexternal_debugging_output, except this one also uses the
standard display table.
(printchar, strout, Fexternal_debugging_output): Use it.
2015-05-31 20:04:43 -07:00
Glenn Morris
21d13bce38 * src/emacs.c (syms_of_emacs) <system-configuration-features>: Doc fix. 2015-05-31 16:27:36 -07:00
Paul Eggert
0c2a3cf62a Remove unused DEFSYMs
Remove DEFSYMs that aren't used at the C level.  Also:
* src/decompress.c (Qzlib_dll):
* src/font.c (Qunicode_sip):
* src/frame.c (Qtip_frame):
* src/ftfont.c (Qserif):
* src/gnutls.c (Qgnutls_dll):
* src/xml.c (Qlibxml2_dll):
Move from here ...
* src/w32fns.c (syms_of_w32fns): ... to here,
as these are used only on MS-Windows.
2015-05-31 11:50:01 -07:00
Michael Albinus
1e04ea9879 Use another default value for tramp-histfile-override
* lisp/net/tramp-sh.el (tramp-histfile-override):
Use ".tramp_history" as default.

Fixes: debbugs:#20446
2015-05-31 13:08:06 +02:00
Glenn Morris
5d56c284d3 ; Auto-commit of ChangeLog files. 2015-05-31 06:23:02 -04:00
Dmitry Gutov
0700eb152d Make sure there's no explicit tag name
* lisp/progmodes/etags.el (tag-implicit-name-match-p): Make sure
there's no explicit tag name (bug#20629).
2015-05-31 03:55:30 +03:00
Paul Eggert
d90a3b186d Remove format2
* src/editfns.c, src/lisp.h (format2): Remove.
It is more trouble than it's worth, now that we have CALLN.
This is just a minor refactoring.
* src/buffer.c (Fkill_buffer):
* src/dbusbind.c (XD_OBJECT_TO_STRING):
* src/fileio.c (barf_or_query_if_file_exists):
Adjust to format2 going away.
2015-05-30 15:30:47 -07:00
Paul Eggert
75f8653bfe Don't misencode C-generated messages
Also, be more consistent about calls to 'Fmessage' vs 'message'.
* src/alloc.c (Fgc_status):
Prefer AUTO_STRING to build_string for Fmessage call.
* src/data.c (Fmake_variable_buffer_local)
(Fmake_local_variable, Fmake_variable_frame_local):
* src/doc.c (store_function_docstring):
Use Fmessage, not message, since the argument can contain
non-ASCII characters, and this can cause the resulting message
to be incorrectly encoded for the current environment.
* src/fns.c (maybe_resize_hash_table):
* src/xselect.c (x_clipboard_manager_save_all):
Use message, not Fmessage, since Fmessage's power isn't needed here.
* src/process.c (Fmake_network_process): Reword message to avoid %s.
* src/xdisp.c (vmessage): Document restrictions on message contents.
(message_nolog) [false]: Remove unused code.
2015-05-30 11:19:31 -07:00
Paul Eggert
85aa6ede9f Use \r rather than ^M in string literals
This is less likely to cause problems on platforms that
use CRLF (or CR!) termination for lines.
2015-05-30 09:44:38 -07:00
Paul Eggert
e553c503f4 Update .gitattributes to match current sources
http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00879.html
* .gitattributes: Accommodate tests that insist on DOS format.
Remove test/automated/data/decompress/foo-gzipped.
Add etc/e/eterm-color.
2015-05-30 09:34:37 -07:00
Eli Zaretskii
83c7e62a30 Document 'face-ignored-fonts'
* doc/emacs/mule.texi (Modifying Fontsets): Document
face-ignored-fonts.  (Bug#20628)
2015-05-30 15:59:39 +03:00