1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-01 01:41:01 -08:00
Commit graph

122668 commits

Author SHA1 Message Date
Paul Eggert
a85472bbdc Port Unicode char detection to FreeBSD+svgalib
Problem reported by Ashish SHUKLA in:
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00531.html
* configure.ac: Check for struct unipair.unicode instead of for
<linux/kd.h>, since that’s more specific to what the code actually needs.
* src/terminal.c: Use HAVE_STRUCT_UNIPAIR_UNICODE, not HAVE_LINUX_KD_H.
2015-09-13 11:56:06 -07:00
Paul Eggert
59e3f2df93 * src/indent.c (Fvertical_motion): Simplify bugfix (Bug#21468). 2015-09-13 09:13:55 -07:00
Eli Zaretskii
6514b30e6e Fix vertical cursor motion across overlay strings with newlines
* src/indent.c (Fvertical_motion): Don't leave point in the middle
of an overlay string with newlines, as that will position the
cursor after the string at whatever column is there.  (Bug#21468)
2015-09-13 13:15:55 +03:00
Michael Albinus
fc9dc03290 Fix tests in file-notify-tests.el
* test/automated/file-notify-tests.el: Remove Tramp declarations.
(file-notify-test00-availability): Print remote command w/o Tramp
internal functions.
(file-notify-test02-events, file-notify-test02-events-remote):
Adapt docstring.
(file-notify-test03-autorevert): Use `format-message' when
inspecting *Messages* buffer.
2015-09-12 10:37:32 +02:00
Stefan Monnier
166812addb Bind inhibit-modification-hooks rather than a/b-c-f
* lisp/wid-edit.el (widget-editable-list-insert-before)
(widget-editable-list-delete-at):
* lisp/progmodes/cperl-mode.el (cperl-find-pods-heres)
(cperl-font-lock-unfontify-region-function):
* lisp/progmodes/antlr-mode.el (save-buffer-state-x):
* lisp/obsolete/longlines.el (longlines-mode):
* lisp/obsolete/fast-lock.el (save-buffer-state):
* lisp/mouse.el (mouse-save-then-kill-delete-region):
* lisp/gnus/message.el (message-hide-headers):
* lisp/eshell/esh-mode.el (eshell-send-input, eshell-output-filter):
* lisp/ibuffer.el (ibuffer-update-title-and-summary)
(ibuffer-redisplay-engine): Bind inhibit-modification-hooks to t rather
than after/before-change-functions to nil.
2015-09-12 00:30:02 -04:00
Stefan Monnier
e125dce50b (jit-lock-deferred-fontify): Pay attention to skipped redisplays
* lisp/jit-lock.el (jit-lock-deferred-fontify): Make sure we refresh
the buffers, even if the forced redisplay is interrupted.
2015-09-11 20:32:33 -04:00
Stefan Monnier
b2615c753b * lisp/emacs-lisp/eieio-core.el (class-p): Accept class objects 2015-09-11 20:30:31 -04:00
Stefan Monnier
3928ef2dd5 Merge syntax-propertize--done and parse-sexp-propertize-done
* lisp/emacs-lisp/syntax.el (syntax-propertize--done): Remove.
(syntax-propertize): Set syntax-propertize--done even if
syntax-propertize-function is nil.  Avoid recursive invocations.
(syntax-propertize-chunks): New var.
(internal--syntax-propertize): Use it.  Rename from syntax--jit-propertize.
Simplify.
(parse-sexp-propertize-function): Don't set any more.

* src/syntax.c (SETUP_SYNTAX_TABLE): Call parse_sexp_propertize as needed.
(parse_sexp_propertize): Don't assume charpos is not yet propertized.
Call Qinternal__syntax_propertize instead of
Vparse_sexp_propertize_function.  Truncate e_property if needed.
(update_syntax_table_forward): Streamline.
(syms_of_syntax): Define Qinternal__syntax_propertize.
(syntax_propertize__done): Rename from parse_sexp_propertize_done.
2015-09-11 20:00:05 -04:00
Paul Eggert
818f06eaa7 Prefer straight quoting in some text files
Mostly this just changes ` to ' in static text.  Some exceptions:
* INSTALL.REPO: Use curved quotes, as the diagnostic in question
typically does that now.
* admin/quick-install-emacs (TRY, top level):
Use straight quoting in diagnostics.
* src/README: Fix working-directory confusion.
2015-09-11 11:05:12 -07:00
Paul Eggert
279303adfc * CONTRIBUTE: Move send-email here from git-workflow. 2015-09-11 08:34:46 -07:00
Michael Albinus
a0ec54ae07 Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs 2015-09-11 11:40:47 +02:00
Michael Albinus
58e79d70dd Improve file notifications in Tramp
* lisp/net/tramp-sh.el (tramp-sh-handle-file-notify-add-watch):
Set proper events to watch for.
(tramp-sh-file-gvfs-monitor-dir-process-filter): Report only
watched events.
2015-09-11 11:40:33 +02:00
Eli Zaretskii
2498790885 Fix NS build with --enable-checking='glyphs'
* src/nsfns.m (unwind_create_frame): Make the preprocessor
conditionals for referencing 'dpyinfo' consistent throughout the
function.  (Bug#21426)
2015-09-11 10:56:18 +03:00
Nicolas Petton
8aa0386420 Add seq-find
This function is similar to `seq-some' but returns the found element.
In the cases where nil can be the found element, a sentinel optional
argument can be provided to avoid ambiguities.

* lisp/emacs-lisp/seq.el (seq-find): New function.
* test/automated/seq-tests.el (test-seq-find): Add tests for `seq-find'.
* doc/lispref/sequences.texi (Sequence Functions): Add documentation for
seq-find.
2015-09-11 00:09:35 +02:00
Tassilo Horn
5a92d97802 Document file-notify--test-with-events.
* test/automated/file-notify-tests.el (file-notify--test-with-events):
Add docstring.
2015-09-10 21:12:23 +02:00
Michael Albinus
5f33465866 Report used native library in file-notify-tests.el
* test/automated/file-notify-tests.el
(tramp-get-remote-gvfs-monitor-dir)
(tramp-get-remote-inotifywait): Declare them.
(file-notify-test00-availability): Print used native library.
2015-09-10 20:01:33 +02:00
Mark Oteiza
76093858d2 lisp/mpc.el (mpc--proc-connect): use file-name-absolute-p 2015-09-10 13:41:09 -04:00
Mark Oteiza
2cf2b19985 lisp/mpc.el (mpc-file-local-copy): check for absolute path 2015-09-10 13:41:09 -04:00
Mark Oteiza
2a79268725 lisp/mpc.el (mpc-file-local-copy): check more config locations 2015-09-10 13:41:09 -04:00
Eli Zaretskii
0fafb58295 Improve documentation of categories
* doc/lispref/syntax.texi (Categories): Clarify the example of
using define-category and modify-category-entry.  (Bug#21448)
2015-09-10 20:39:02 +03:00
Paul Eggert
cdb0ae37ab Revert some stray curved quotes I missed earlier
Problem reported by David Kastrup in:
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00440.html
* lisp/international/mule-cmds.el (leim-list-header):
Use format-message with an ASCII-only format.
2015-09-10 10:12:37 -07:00
Paul Eggert
a1cd8c96ca Prefer NUMBERP to spelling it out
* src/editfns.c (styled_format):
* src/frame.h (NUMVAL):
* src/image.c (parse_image_spec):
* src/lisp.h (CHECK_NUMBER_OR_FLOAT)
(CHECK_NUMBER_OR_FLOAT_COERCE_MARKER):
* src/process.c (Fsignal_process):
* src/xdisp.c (calc_pixel_width_or_height, on_hot_spot_p):
* src/xfaces.c (check_lface_attrs):
* src/xselect.c (x_fill_property_data, x_send_client_event):
Use NUMBERP rather than INTEGERP || FLOATP.
2015-09-10 09:53:51 -07:00
Paul Eggert
b0030269c9 ; Spelling fix 2015-09-10 08:49:14 -07:00
Tassilo Horn
a6a1333e7e Improve file-notify-tests
* test/automated/file-notify-tests.el: Use lexical-binding
(file-notify--test-cleanup): New function.
(file-notify-test00-availability, file-notify-test01-add-watch)
(file-notify-test02-events, file-notify-test03-autorevert): Use it.
(file-notify--test-with-events): New macro.
(file-notify-test02-events): Use it.
2015-09-10 17:22:58 +02:00
Paul Eggert
f962c5d647 Add patch-sending instructions to git-workflow
From a suggestion by Mitchel Humpherys in:
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00421.html
* admin/notes/git-workflow (Sending patches): New section.
2015-09-10 02:44:42 -07:00
Paul Eggert
6ee7eabb5d Port to GIFLIB 5.0.6 and later
Problem reported by Mitchel Humpherys in:
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00420.html
* src/image.c (HAVE_GIFERRORSTRING) [HAVE_GIF]: New macro.
(GifErrorString, init_gif_functions) [HAVE_GIF && WINDOWSNT]:
(gif_load) [HAVE_GIF]: Use it.
2015-09-10 02:44:41 -07:00
Glenn Morris
831945a1cb * lisp/cedet/ede/auto.el (ede-project-autoload): Doc fix. 2015-09-09 23:23:27 -07:00
Glenn Morris
0a9d4fd2af * test/automated/file-notify-tests.el (file-notify-test02-events):
Fix recent change.
2015-09-09 21:18:36 -04:00
Paul Eggert
54ea37308a Refix movemail GCC pacification
Problem reported by Ken Brown in:
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00406.html
* lib-src/movemail.c (main): Fix previous change.
2015-09-09 15:45:44 -07:00
Stefan Monnier
bf86385345 (time-to-seconds, time-less-p): Mark unused vars with underscore
* lisp/calendar/time-date.el (time-to-seconds, time-less-p):
Mark unused vars with underscore.
2015-09-09 16:31:58 -04:00
Stefan Monnier
0b78dd6027 * src/syntax.c (SETUP_SYNTAX_TABLE): Move truncation...
(parse_sexp_propertize): ...from here.
2015-09-09 16:22:29 -04:00
Stefan Monnier
75a351bc6f * lisp/filenotify.el: Use lexical-binding
(file-notify-add-watch): Avoid add-to-list.
2015-09-09 16:21:59 -04:00
Tassilo Horn
1c5b7ba876 Start checking event types in file-notify tests
* test/automated/file-notify-tests.el (file-notify--test-events): New
variable.
(file-notify--test-event-handler): Append received event to
file-notify--test-events for later analysis.
(file-notify-test02-events): Assert that the expected notifications have
arrived in the expected order.
2015-09-09 22:02:43 +02:00
Paul Eggert
5a3122e167 Merge from gnulib and texinfo
This incorporates:
2015-08-03 Improve port of stdalign to C++11
* lib/stdalign.in.h: Copy from gnulib.
* doc/misc/texinfo.tex: Copy from texinfo.
2015-09-09 12:36:45 -07:00
Stefan Monnier
ab21f61a55 Make syntax.c call syntax-propertize on demand
* lisp/emacs-lisp/syntax.el (syntax--jit-propertize): New function.
(parse-sexp-propertize-function): Use it.
(syntax-propertize): Disable parse-sexp-propertize-function.

* src/syntax.c (parse_sexp_propertize, update_syntax_table_forward):
New functions.
(syms_of_syntax): New vars `parse-sexp-propertize-done' and
`parse-sexp-propertize-function'.

* src/syntax.h (struct gl_state_s): Add `e_property_truncated' field.
(UPDATE_SYNTAX_TABLE_FORWARD): Use update_syntax_table_forward.
(SETUP_BUFFER_SYNTAX_TABLE): Set e_property_truncated.

* lisp/progmodes/elisp-mode.el (elisp-byte-code-syntax-propertize):
Don't assume `point' is set.
2015-09-09 15:14:52 -04:00
Eli Zaretskii
74baea086d Fix indentation of an @example in ELisp manual
* doc/lispref/syntax.texi (Categories): Untabify the example.
(Bug#21448)
2015-09-09 22:06:28 +03:00
Paul Eggert
1267e12ba7 Define internal-char-font even if --without-x
The function is used now even in non-graphical environments.
Problem reported by Glenn Morris in:
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00401.html
* src/font.c (Finternal_char_font): Move here ...
* src/fontset.c (Finternal_char_font): ... from here.
2015-09-09 10:48:31 -07:00
Stefan Monnier
88694fb658 * lisp/emacs-lisp/cl-generic.el (cl-generic-generalizers): Remove warning 2015-09-09 13:18:11 -04:00
Eli Zaretskii
17fff76fea Fix display of complex local data types in GDB-MI
* lisp/progmodes/gdb-mi.el (gdb-locals-handler-custom): If a
variable has no value, display "<complex data type>" as a
placeholder, instead of a confusing "nil".  (Bug#21438)
2015-09-09 18:56:06 +03:00
Oleh Krehel
765dcc709c Remove redundant redefinition of seq-drop-while from seq.el
* lisp/emacs-lisp/seq.el (seq-drop-while): Define only once.
2015-09-09 15:10:15 +02:00
Phil Sainty
b074436925 * lisp/emacs-lisp/package.el (package--ensure-init-file)
More robust check for `package-initialize' calls in init file.
This function accepts an optional argument, but calls passing
an argument would not have been detected.
2015-09-09 12:12:30 +01:00
Paul Eggert
b6c8cb57fc Port movemail to RHEL 6 with --enable-gcc-warnings
* lib-src/movemail.c (main): Declare local only if needed.
2015-09-09 03:36:25 -07:00
Paul Eggert
c28542c29f Port recent Linux console changes to RHEL 6
* src/terminal.c [HAVE_LINUX_KD_H]: Include <sys/ioctl.h>.
2015-09-09 03:24:05 -07:00
Paul Eggert
881b4f4bbf ; Fix stray quote inserted in comment 2015-09-09 02:47:53 -07:00
Paul Eggert
6e5d81ff45 Improvements for curved quotes on Linux consule
This should help Emacs work better out-of-the-box on Linux consoles,
which have only limited support for displaying Unicode characters.
Also, undo the recent change that caused text-quoting-style to
affect quote display on terminals, so that the two features are
independent.  See Alan Mackenzie in:
http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00244.html
Finally, add a style parameter to startup--setup-quote-display,
so that this function can also be invoked after startup, with
different styles depending on user preference at the time.
* configure.ac: Check for linux/kd.h header.
* doc/emacs/display.texi (Text Display): Document quote display.
* doc/lispref/display.texi (Active Display Table):
* etc/NEWS:
* lisp/startup.el (startup--setup-quote-display, command-line):
text-quoting-style no longer affects quote display.
* doc/lispref/frames.texi (Terminal Parameters): Fix typo.
* lisp/international/mule-util.el (char-displayable-p):
* lisp/startup.el (startup--setup-quote-display):
On a text terminal supporting glyph codes, use the reported
glyph codes instead of the terminal coding system, as this
is more accurate on the Linux console.
* lisp/startup.el (startup--setup-quote-display):
New optional arg STYLE.
* src/fontset.c (Finternal_char_font):
Report glyph codes for a text terminal, if they are available.
Currently this is supported only for the Linux console.
* src/termhooks.h (struct terminal): New member glyph-code-table.
* src/terminal.c [HAVE_LINUX_KD_H]: Include <errno.h>, <linux/kd.h>.
(calculate_glyph_code_table) [HAVE_LINUX_KD_H]: New function.
(terminal_glyph_code): New function.
2015-09-09 02:22:24 -07:00
Juri Linkov
39dca94701 * lisp/info.el (Info-fontify-node): Don't stop at the non-title underline.
(Bug#21433)
2015-09-09 00:51:32 +03:00
Stefan Monnier
f201dfd377 * lisp/calendar/time-date.el (with-decoded-time-value): Fix debug spec 2015-09-08 16:45:14 -04:00
Tassilo Horn
c825fd7cf9 Fix double-reporting of rename events with inotify
* lisp/filenotify.el (file-notify-callback): Fix double-reporting
of rename events with inotify (bug#21435).
2015-09-08 20:59:45 +02:00
Vasilij Schneidermann
d6d545bf76 * lisp/play/tetris.el (tetris-move-down): New command (bug#21360)
(tetris-mode-map): Use it.

Copyright-paperwork-exempt: yes
2015-09-08 13:55:50 -04:00
Paul Eggert
48857075c9 ; Fix comment to match recent code change 2015-09-08 07:35:15 -07:00