Paul Eggert [Fri, 14 Dec 2012 18:59:00 +0000 (10:59 -0800)]
Fix permissions bugs with setgid directories etc.
* configure.ac (BSD4_2): Remove; no longer needed.
* admin/CPP-DEFINES (BSD4_2): Remove.
* doc/lispintro/emacs-lisp-intro.texi (Files List):
directory-files-and-attributes now outputs t for attribute that's
now a placeholder.
* doc/lispref/files.texi (Testing Accessibility): Document GROUP arg
of file-ownership-preserved-p.
(File Attributes): Document that 9th element is now
just a placeholder.
* doc/lispref/os.texi (User Identification): Document new functions group-gid,
group-real-gid.
* etc/NEWS: Document changes to file-attributes,
file-ownership-preserved-p.
Mention new functions group-gid, group-real-gid.
* lisp/files.el (backup-buffer): Don't rely on 9th output of
file-attributes, as it's now a placeholder. Instead, use the new
optional arg of file-ownership-preserved-p.
(file-ownership-preserved-p): New optional arg GROUP.
Fix mishandling of setuid directories that would cause this
function to return t when it should have returned nil.
Document what happens if the file does not exist, and when
it's not known whether the ownership will be preserved.
* lisp/net/tramp-sh.el (tramp-sh-handle-file-ownership-preserved-p):
Likewise.
(tramp-get-local-gid): Use group-gid for integer, as that's
faster and more reliable.
* src/dired.c (Ffile_attributes): Return t as the 9th attribute,
to mark it as a placeholder. The old value was often wrong.
The only user of this attribute has been changed to use
file-ownership-preserved-p instead, with its new group arg.
* src/editfns.c (Fgroup_gid, Fgroup_real_gid): New functions.
Fixes: debbugs:13125
Stefan Monnier [Fri, 14 Dec 2012 15:52:43 +0000 (10:52 -0500)]
* src/xdisp.c (display_mode_lines): Keep selected_window and selected_frame
in sync.
Stefan Monnier [Fri, 14 Dec 2012 15:38:50 +0000 (10:38 -0500)]
* src/xdisp.c (select_frame_for_redisplay): Keep selected_window and
selected_frame in sync.
Michael Albinus [Fri, 14 Dec 2012 15:37:27 +0000 (16:37 +0100)]
* tramp.texi (External methods): Move `adb' method here.
Julien Danjou [Fri, 14 Dec 2012 15:31:19 +0000 (16:31 +0100)]
* progmodes/sql.el (sql-mode-postgres-font-lock-keywords): Update
keywords list, data type and PL/pgSQL.
Dave Abrahams [Fri, 14 Dec 2012 15:22:24 +0000 (10:22 -0500)]
* lisp/vc/ediff-util.el (ediff-buffer-type): New function.
(ediff-clone-buffer-for-current-diff-comparison): Compute the buf-type
rather than taking it as as argument.
(ediff-inferior-compare-regions): Adjust calls accordingly.
Fixes: debbugs:11319
Ryan Crum [Fri, 14 Dec 2012 14:57:37 +0000 (09:57 -0500)]
* lisp/json.el: Add pretty-print option.
(json-encoding-separator, json-encoding-default-indentation)
(json--encoding-current-indentation, json-encoding-pretty-print)
(json-encoding-lisp-style-closings): New vars.
(json--with-indentation): New macro.
(json-encode-hash-table, json-encode-alist, json-encode-plist)
(json-encode-array): Use it to obey json-encoding-pretty-print.
(json-pretty-print-buffer, json-pretty-print): New commands.
Fixes: debbugs:12634
Eli Zaretskii [Fri, 14 Dec 2012 14:05:01 +0000 (16:05 +0200)]
Speed up most calls to 'stat' and 'lstat' on MS-Windows.
src/w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not
try to get accurate owner and group information from NT file
security APIs. This is to make most callers of 'stat' and
'lstat', which don't need that information, much faster.
src/dired.c (Ffile_attributes) [WINDOWSNT]: Set
w32_stat_get_owner_group to a non-zero value, to request accurate
owner and group information from 'lstat'.
nt/inc/sys/stat.h: Declare w32_stat_get_owner_group.
Michael Albinus [Fri, 14 Dec 2012 09:02:34 +0000 (10:02 +0100)]
Explain, why `tramp-*-file-name-p' is a defsubst.
Dmitry Gutov [Fri, 14 Dec 2012 06:58:15 +0000 (10:58 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Extract `ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-expansions): Only change syntax on
certain string delimiters, to punctuation. This way the common
functions like forward-word and thing-at-point still work.
(ruby-match-expression-expansion): Improve readability.
(ruby-block-contains-point): New function.
(ruby-add-log-current-method): Handle several edge cases.
* test/automated/ruby-mode-tests.el
Rename one interpolation test; add three more.
(ruby-with-temp-buffer): New macro, use it where appropriate.
(ruby-add-log-current-method-examples): Use "_" for target point.
Add four tests for ruby-add-log-current-method.
Dmitry Gutov [Fri, 14 Dec 2012 04:55:23 +0000 (08:55 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize-function):
Extract `ruby-syntax-propertize-expansions'.
(ruby-syntax-propertize-expansions): Only change syntax on
certain string delimiters, to punctuation. This way the common
functions like forward-word and thing-at-point still work.
* test/automated/ruby-mode-tests.el
Rename one interpolation test; add three more.
Akinori MUSHA [Fri, 14 Dec 2012 04:26:47 +0000 (20:26 -0800)]
sieve-mode font-lock fix (tiny change)
* sieve-mode.el (sieve-font-lock-keywords): Keywords should be word delimited.
Fixes: debbugs:13173
Paul Eggert [Thu, 13 Dec 2012 19:35:10 +0000 (11:35 -0800)]
* fileio.c (Finsert_file_contents): Don't put tail into head area,
as that confuses set-auto-coding, so insist on the head-read
returning the full 1024 bytes. Let lseek compute the tail offset;
less work for us. Do not ignore I/O errors when reading the tail.
Juanma Barranquero [Thu, 13 Dec 2012 18:15:42 +0000 (19:15 +0100)]
lisp/emacs-lisp/edebug.el: Fix previous change.
(edebug-unload-function): Make sure that unload-feature finishes even when
aborting an ongoing edebug session. Also, do not worry about edebug-mode,
unload-feature takes care of it.
Paul Eggert [Thu, 13 Dec 2012 16:55:28 +0000 (08:55 -0800)]
* xdisp.c: Minor style fixes.
(init_iterator): Hoist assignment out of if-expression.
(markpos_of_region): Callers now test for sign, not for -1.
Andreas Schwab [Thu, 13 Dec 2012 09:48:54 +0000 (10:48 +0100)]
* net/tls.el (tls-program): Update customize type.
Juanma Barranquero [Thu, 13 Dec 2012 09:45:54 +0000 (10:45 +0100)]
lisp/emacs-lisp/edebug.el: Fix bug#13163.
(edebug--require-cl-read): New function.
(edebug-setup-hook, cl-read-load-hooks): Use it.
(edebug-unload-function): New function.
Michael Albinus [Thu, 13 Dec 2012 08:42:25 +0000 (09:42 +0100)]
* net/tramp-adb.el (tramp-adb-file-name-p): Make it a defsubst.
Otherwise, there could be errors in autoloading. (Bug#13151)
Jürgen Hötzel [Thu, 13 Dec 2012 08:38:16 +0000 (09:38 +0100)]
* net/tramp-adb.el (tramp-adb-wait-for-output): Remove spurious " ^H"
sequences.
Dmitry Antipov [Thu, 13 Dec 2012 08:04:40 +0000 (12:04 +0400)]
Minor redisplay optimization when the region length is zero.
* xdisp.c (markpos_of_region): New function.
(init_iterator): Do not highlight the region of zero length.
(redisplay_window): Check whether the region is of non-zero length.
(try_cursor_movement): Allow if the region length is zero.
(try_window_reusing_current_matrix, try_window_id): Likewise.
Glenn Morris [Thu, 13 Dec 2012 05:33:36 +0000 (21:33 -0800)]
* doc/misc/cl.texi (Modify Macros, Obsolete Macros): Now letf == cl-letf.
* etc/NEWS: Related edit.
Glenn Morris [Thu, 13 Dec 2012 05:29:15 +0000 (21:29 -0800)]
Merge from emacs-24; up to 2012-11-30T04:44:52Z!cyd@gnu.org
Glenn Morris [Thu, 13 Dec 2012 04:47:14 +0000 (20:47 -0800)]
Add wisent manual to build process
* doc/misc/wisent.texi: Small edits. Set copyright to FSF, update license to
GFDL 1.3+.
* doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add wisent.
(wisent, $(buildinfodir)/wisent$(INFO_EXT), wisent.dvi, wisent.pdf):
New targets.
* doc/misc/makefile.w32-in (INFO_TARGETS, DVI_TARGETS, clean): Add wisent.
($(infodir)/wisent$(INFO_EXT), wisent.dvi): New targets.
* info/dir: wisent.
Eric M. Ludlam [Thu, 13 Dec 2012 04:44:07 +0000 (20:44 -0800)]
Import wisent manual from CEDET trunk
Ref
http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00419.html
and preceding discussion
Imported from
bzr://cedet.bzr.sourceforge.net/bzrroot/cedet/code/trunk
doc/texi/semantic/wisent.texi
bzr log shows (very) tiny change from authors with assignments:
David Engster <dengste@eml.cc>
and from:
emacsman@users.sourceforge.net
Glenn Morris [Thu, 13 Dec 2012 04:25:50 +0000 (20:25 -0800)]
Add bovine manual to build process
* doc/misc/bovine.texi: Small edits. Set copyright to FSF, update license to
GFDL 1.3+, remove empty index.
* doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add bovine.
(bovine, $(buildinfodir)/bovine$(INFO_EXT), bovine.dvi, bovine.pdf):
New targets.
* doc/misc/makefile.w32-in (INFO_TARGETS, DVI_TARGETS, clean): Add bovine.
($(infodir)/bovine$(INFO_EXT), bovine.dvi): New targets.
* info/dir: Add bovine.
Eric M. Ludlam [Thu, 13 Dec 2012 04:19:48 +0000 (20:19 -0800)]
Import bovine manual from CEDET trunk
Ref
http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00419.html
and preceding discussion
Imported from
bzr://cedet.bzr.sourceforge.net/bzrroot/cedet/code/trunk
doc/texi/semantic/bovine.texi
Paul Eggert [Thu, 13 Dec 2012 02:17:49 +0000 (18:17 -0800)]
* fileio.c (Fcopy_file): Make fstat failure as serious as open failure.
fstat shouldn't fail, and if it does fail copy-file should not proceed.
Remove unnecessary S_ISLNK test, as (contra the comments) this
function can't copy symlinks. Improve quality of error message
when attempting to copy files that are neither regular files nor
directories.
Stefan Monnier [Thu, 13 Dec 2012 01:46:47 +0000 (20:46 -0500)]
* lisp/emacs-lisp/cl.el (letf): Make it an alias of cl-letf.
(cl--symbol-function): Remove (now that funbound is like nil).
Juanma Barranquero [Thu, 13 Dec 2012 01:18:28 +0000 (02:18 +0100)]
nt/config.nt: Sync with autogen/config.in.
(HAVE_INOTIFY, HAVE_SYS_INOTIFY_H): New macros.
Katsumi Yamaoka [Thu, 13 Dec 2012 00:52:17 +0000 (00:52 +0000)]
gnus-start.el (gnus-before-resume-hook): Add :version
Glenn Morris [Wed, 12 Dec 2012 22:39:29 +0000 (17:39 -0500)]
* lisp/button.el (button--area-button-p): Fix typo (defun is not defalias).
Katsumi Yamaoka [Wed, 12 Dec 2012 22:29:54 +0000 (22:29 +0000)]
gnus.el (gnus-other-frame-resume-function): Add :version
Katsumi Yamaoka [Wed, 12 Dec 2012 22:22:31 +0000 (22:22 +0000)]
gnus-art.el (gnus-article-browse-html-parts): Use <div align="left"> instead of <pre> to align message header
Glenn Morris [Wed, 12 Dec 2012 18:37:52 +0000 (13:37 -0500)]
flymake.texi fix for flymake-buildfile-dirs (bug#13148)
* doc/misc/flymake.texi (Customizable variables, Locating the buildfile):
Remove refs to flymake-buildfile-dirs, removed 2007-07-20.
Andreas Schwab [Wed, 12 Dec 2012 17:52:01 +0000 (18:52 +0100)]
* Makefile.in (install-info): Use `${MAKE} -s' for echo-info.
(uninstall): Likewise.
Glenn Morris [Wed, 12 Dec 2012 17:19:20 +0000 (09:19 -0800)]
Add srecode manual to build process
* doc/misc/srecode.texi: Small edits. Set copyright to FSF, add explicit
GFDL 1.3+ license, fix up index.
* doc/misc/Makefile.in (INFO_TARGETS, DVI_TARGETS, PDF_TARGETS): Add srecode.
(srecode, $(buildinfodir)/srecode$(INFO_EXT), srecode.dvi)
(srecode.pdf): New targets.
* doc/misc/makefile.w32-in (INFO_TARGETS, DVI_TARGETS, clean): Add srecode.
($(infodir)/srecode$(INFO_EXT), srecode.dvi): New targets.
* info/dir: Add srecode.
Eric M. Ludlam [Wed, 12 Dec 2012 17:15:25 +0000 (09:15 -0800)]
Import srecode manual from CEDET trunk
Ref
http://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00419.html
and preceding discussion
Imported from
bzr://cedet.bzr.sourceforge.net/bzrroot/cedet/code/trunk
doc/texi/srecode.texi
bzr log shows (very) tiny changes from authors with assignments:
Alex Ott <ottalex@users.sourceforge.net>
David Engster <dengste@eml.cc>
Vincent Belaïche <vincentb1@users.sourceforge.net>
and from:
emacsman@users.sourceforge.net
scymtym@users.sourceforge.net
Fixes: debbugs:9966
Bastien Guerry [Wed, 12 Dec 2012 16:47:07 +0000 (17:47 +0100)]
Merge upstream Org (from commit 488eea)
Dmitry Antipov [Wed, 12 Dec 2012 15:33:30 +0000 (19:33 +0400)]
* dispnew.c (set_window_cursor_after_update): Use clip_to_bounds.
* gtkutil.c (xg_set_toolkit_scroll_bar_thumb):
* window.c (Frecenter):
* xdisp.c (resize_mini_window, hscroll_window_tree, draw_glyphs):
* xterm.c (x_set_toolkit_scroll_bar_thumb): Likewise.
Sam Steingold [Wed, 12 Dec 2012 14:46:58 +0000 (09:46 -0500)]
* lisp/gnus/gnus.el (gnus-other-frame-resume-function): Add user option.
(gnus-other-frame): Call `gnus-other-frame-resume-function' on resume.
Sam Steingold [Wed, 12 Dec 2012 14:43:45 +0000 (09:43 -0500)]
* lisp/frame.el (frame-maximization-style): New user option.
(toggle-frame-maximized): Toggle frame maximization according to
`frame-maximization-style', bound to <f11>.
(cycle-frame-maximized): Cycle between all maximization styles and
non-maximized frame, bound to shift-<f11>.
David Cadé [Wed, 12 Dec 2012 14:42:03 +0000 (09:42 -0500)]
* lisp/mpc.el (mpc-format): Use truncate-string-to-width.
Fixes: debbugs:13143
Glenn Morris [Wed, 12 Dec 2012 11:17:32 +0000 (06:17 -0500)]
Auto-commit of generated files.
Daniel Colascione [Wed, 12 Dec 2012 03:26:52 +0000 (19:26 -0800)]
2012-12-12 Daniel Colascione <dancol@dancol.org>
* unexcw.c (fixup_executable): use posix_fallocate to ensure that
the dumped Emacs is not a sparse file, greatly improving Cygwin
"make bootstrap" performance.
Jonas Bernoulli [Wed, 12 Dec 2012 02:16:05 +0000 (21:16 -0500)]
* lisp/emacs-lisp/eieio.el: Prettier object pretty-printing.
(eieio-override-prin1): Don't quote kewords and booleans.
(object-write) <eieio-default-superclass>: Don't put closing parens
on new line, avoid needless empty lines, align values that are objects
with the slot keyword (instead of beginning on the same line).
(eieio-list-prin1): Align value with slot keyword; increase
eieio-print-depth before printing members of the list.
Fixes: debbugs:13115
Alan Mackenzie [Tue, 11 Dec 2012 19:06:57 +0000 (19:06 +0000)]
Make CC Mode not hang when _some_ lines end in CRLF. Bug #11841.
cc-engine.el (c-backward-comments): Add code to work around
`forward-comment' not recognizing ^M as whitespace.
Stefan Monnier [Tue, 11 Dec 2012 18:52:31 +0000 (13:52 -0500)]
* lisp/mail/emacsbug.el (report-emacs-bug): Move the intangible text to
a display text-property.
(report-emacs-bug-hook): Don't bother deleting it any more.
Stefan Monnier [Tue, 11 Dec 2012 18:51:27 +0000 (13:51 -0500)]
* lisp/hilit-chg.el (highlight-save-buffer-state): Delete.
Use with-silent-modifications instead.
(hilit-chg-set-face-on-change): Only fixup the text that's modified.
Stefan Monnier [Tue, 11 Dec 2012 18:49:25 +0000 (13:49 -0500)]
* lisp/button.el: Handle buttons in display text-properties.
(button--area-button-p, button--area-button-string):
Use (STRING . STRING-POS) representation instead of just STRING.
Glenn Morris [Tue, 11 Dec 2012 18:43:57 +0000 (13:43 -0500)]
Backport spelling fix from trunk
Nicolas Avrutin [Tue, 11 Dec 2012 18:37:53 +0000 (13:37 -0500)]
Fix for install-info in non-English locales (tiny change)
* Makefile.in (install-info, uninstall):
Ensure make's messages about changing directories are in English.
Fixes: debbugs:13142
Paul Eggert [Tue, 11 Dec 2012 18:18:13 +0000 (10:18 -0800)]
Merge from gnulib for 'inline', incorporating:
2012-12-11 extern-inline: avoid incompatibility with Darwin Libc
* m4/extern-inline.m4: Update from gnulib.
Fixes: debbugs:13040
Paul Eggert [Tue, 11 Dec 2012 18:09:55 +0000 (10:09 -0800)]
Spelling fixes.
Michael Albinus [Tue, 11 Dec 2012 16:29:13 +0000 (17:29 +0100)]
* inotify.c (inotify_callback): Generate an Emacs event for every
incoming inotify event.
Eli Zaretskii [Tue, 11 Dec 2012 15:30:45 +0000 (17:30 +0200)]
Fix bug #13084 with crashes during search.
src/search.c (search_buffer): Check the inverse translations of each
character in pattern when the buffer being searched is unibyte.
Eli Zaretskii [Tue, 11 Dec 2012 12:22:35 +0000 (14:22 +0200)]
Fix part of bug #13011 with display of lines that have a box face.
src/xdisp.c (handle_face_prop): Fix logic of computing
it->start_of_box_run_p.
(append_space_for_newline): If the glyph row is R2L, reset the
iterator's end_of_box_run_p flag before prepending the space glyph.
(extend_face_to_end_of_line): If the glyph row is R2L, reset the
iterator's start_of_box_run_p flag before prepending the stretch.
(append_glyph, produce_image_glyph, append_composite_glyph)
(append_stretch_glyph, append_glyphless_glyph): Reverse the
left_box_line_p and right_box_line_p flags of the glyph for R2L
glyph rows.
Glenn Morris [Tue, 11 Dec 2012 11:17:38 +0000 (06:17 -0500)]
Auto-commit of generated files.
Dmitry Antipov [Tue, 11 Dec 2012 09:51:12 +0000 (13:51 +0400)]
* buffer.c (Fset_buffer_multibyte): Do not force redisplay
if changed buffer is not shown in a window.
* insdel.c (prepare_to_modify_buffer): Likewise.
* window.c (replace_buffer_in_windows_safely): Do nothing
if buffer is not shown in a window.
(Fforce_window_update): Likewise if string or buffer argument
is passed.
Eli Zaretskii [Tue, 11 Dec 2012 08:24:09 +0000 (10:24 +0200)]
Minor change in variable name in inotify.c.
src/inotify.c (Finotify_add_watch): Rename decoded_file_name to
encoded_file_name, which is what it is.
Eli Zaretskii [Tue, 11 Dec 2012 07:49:06 +0000 (09:49 +0200)]
Fix a typo in lisp/makefile.w32-in.
See http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00288.html
for the details.
lisp/makefile.w32-in (compile4-SH): Fix a typo that caused term
subdirectory be skipped.
Fabián Ezequiel Gallina [Tue, 11 Dec 2012 07:22:55 +0000 (04:22 -0300)]
* progmodes/python.el (python-skeleton-class)
(python-skeleton-def): Do not add space after defun name.
Dmitry Antipov [Tue, 11 Dec 2012 06:08:53 +0000 (10:08 +0400)]
Consistently use marker_position and marker_byte_position.
* fringe.c (Ffringe_bitmaps_at_pos):
* indent.c (Fvertical_motion):
* insdel.c (prepare_to_modify_buffer):
* keyboard.c (make_lispy_position):
* window.c (Fwindow_end, Fpos_visible_in_window_p, unshow_buffer)
(window_scroll_pixel_based, displayed_window_lines)
(Fset_window_configuration):
* xdisp.c (message_dolog, with_echo_area_buffer_unwind_data)
(mark_window_display_accurate_1, redisplay_window, decode_mode_spec):
Replace direct access to marker fields with calls
to marker_position and/or marker_byte_position.
Glenn Morris [Tue, 11 Dec 2012 04:44:26 +0000 (20:44 -0800)]
* lisp/net/rcirc.el (rcirc-urls, rcirc-condition-filter): Doc fixes.
Glenn Morris [Tue, 11 Dec 2012 04:42:49 +0000 (20:42 -0800)]
Fix for indentation of f90 preproc lines embedded in continuations
* lisp/progmodes/f90.el (f90-line-continued, f90-indent-region):
Treat preprocessor lines embedded in continuations like comments.
(f90-indent-line): Special-case preprocessor lines.
* test/automated/f90.el (f90-test-bug13138): New test.
Jay Belanger [Tue, 11 Dec 2012 02:37:36 +0000 (20:37 -0600)]
* lisp/calc/calc-forms.el (calc-date-notation): Fix typo.
Jay Belanger [Tue, 11 Dec 2012 02:29:21 +0000 (20:29 -0600)]
* lisp/calc/calc.el (calc-standard-date-formats): Add more date
formats.
* lisp/calc/calc-forms.el (math-parse-iso-date): New function.
(math-parse-date): Use `math-parse-iso-date' when appropriate.
(math-parse-iso-date-validate): Add extra error checking.
(calc-date-notation): Add ability to access new date formats.
Juanma Barranquero [Tue, 11 Dec 2012 02:06:53 +0000 (03:06 +0100)]
(lib-src,src,lib)/makefile.w32-in: Update dependencies.
Juanma Barranquero [Tue, 11 Dec 2012 01:35:28 +0000 (02:35 +0100)]
nt/config.nt: Sync with autogen/config.in.
(HAVE_DECL_UNSETENV, HAVE_SIG2STR, VOID_UNSETENV): New macros.
(ULIMIT_BREAK_VALUE): Remove.
Paul Eggert [Tue, 11 Dec 2012 00:13:44 +0000 (16:13 -0800)]
* internals.texi (C Integer Types): New section.
This follows up and records an email in
<http://lists.gnu.org/archive/html/emacs-devel/2012-07/msg00496.html>.
Paul Eggert [Mon, 10 Dec 2012 23:16:28 +0000 (15:16 -0800)]
* fileio.c (Fverify_visited_file_modtime): Don't read uninitialized st.st_size.
Paul Eggert [Mon, 10 Dec 2012 21:58:01 +0000 (13:58 -0800)]
* fileio.c (Fvisited_file_modtime): Return (-1 ...) for nonexistent
files, fixing a regression from 24.2.
Stefan Monnier [Mon, 10 Dec 2012 21:26:13 +0000 (16:26 -0500)]
* lisp/hi-lock.el (hi-lock--regexps-at-point): Fix boundary case for
font-lock as well as when there's no text-property.
Daniel Colascione [Mon, 10 Dec 2012 20:55:02 +0000 (12:55 -0800)]
Merge from private trunk
Daniel Colascione 2012-12-10 Add emacs.res to .bzrignore
Daniel Colascione 2012-12-10 Fix cygw32 build break
Daniel Colascione [Mon, 10 Dec 2012 20:47:57 +0000 (12:47 -0800)]
Add emacs.res to .bzrignore
Daniel Colascione [Mon, 10 Dec 2012 20:46:20 +0000 (12:46 -0800)]
Fix cygw32 build break
Paul Eggert [Mon, 10 Dec 2012 20:27:33 +0000 (12:27 -0800)]
* configure.ac (HAVE_INOTIFY): Speed up configure-time test.
There's no need to test for any of three inotify functions,
since we use all three. Check for just the first one.
Jambunathan K [Mon, 10 Dec 2012 18:33:59 +0000 (13:33 -0500)]
* lisp/hi-lock.el: Refine the choice of default face.
(hi-lock-keyword->face): New function. Use it wherever we used
cadadadr instead.
(hi-lock--regexps-at-point): Ignore faces that can't come from hi-lock.
(hi-lock--last-face): Remove var.
(hi-lock--unused-faces): New var to replace it.
(hi-lock-read-face-name): Use/maintain it.
(hi-lock-unface-buffer): Maintain it. Fix error for the C-u case.
(hi-lock-set-pattern): Ignore new rule if it has the same regexp even
if it has another face.
Fixes: debbugs:11095
Daniel Colascione [Mon, 10 Dec 2012 17:55:03 +0000 (09:55 -0800)]
Move fix for bug#12993 to trunk
Daniel Colascione [Mon, 10 Dec 2012 17:52:35 +0000 (09:52 -0800)]
Move fix for cygw32 icon issue from emacs-24 branch to trunk as Stefan Monnier requests
Dmitry Antipov [Mon, 10 Dec 2012 17:34:47 +0000 (21:34 +0400)]
Per-buffer window counters.
* buffer.h (struct buffer): New member window_count.
(buffer_window_count): New function.
* buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
Initialize window_count.
(Fkill_buffer): Verify window_count for the buffer being killed.
(modify_overlay): Do not force redisplay if buffer is not shown
in any window.
(init_buffer_once): Initialize window_count for buffer_defaults
and buffer_local_symbols.
* window.h (buffer_shared): Remove declaration.
(wset_buffer): Convert from inline ...
* window.c (wset_buffer): ... to an ordinary function.
(adjust_window_count): New function.
(make_parent_window): Use it.
* xdisp.c (buffer_shared): Remove.
(redisplay_internal, redisplay_window): Adjust users.
(buffer_shared_and_changed): Use per-buffer window counter.
Eli Zaretskii [Mon, 10 Dec 2012 13:25:17 +0000 (15:25 +0200)]
Final cleanups and updated ChangeLog entries.
Eli Zaretskii [Mon, 10 Dec 2012 12:38:49 +0000 (14:38 +0200)]
Proof-read comments on w32notify.c. Adapt NEWS entry.
Glenn Morris [Mon, 10 Dec 2012 12:17:35 +0000 (07:17 -0500)]
Auto-commit of generated files.
Eli Zaretskii [Mon, 10 Dec 2012 12:08:02 +0000 (14:08 +0200)]
Merge from trunk + rename the event. Not tested yet.
Rüdiger Sonderfeld [Mon, 10 Dec 2012 11:17:21 +0000 (06:17 -0500)]
Support filesystem notification through inotify on GNU/Linux.
configure.ac (inotify): New option.
(HAVE_INOTIFY): Test for inotify.
src/termhooks.h (enum event_kind) [HAVE_INOTIFY]: Add
FILE_NOTIFY_EVENT.
src/lisp.h (syms_of_inotify) [HAVE_INOTIFY]: Add prototype.
src/keyboard.c (Qfile_inotify) [HAVE_INOTIFY]: New variable.
(syms_of_keyboard): DEFSYM it.
(kbd_buffer_get_event) [HAVE_INOTIFY]: Generate FILE_NOTIFY_EVENT.
(make_lispy_event): Support FILE_NOTIFY_EVENT by generating
Qfile_inotify events.
(keys_of_keyboard) [HAVE_INOTIFY]: Bind file-inotify events in
special-event-map to inotify-handle-event.
src/emacs.c (main) [HAVE_INOTIFY]: Call syms_of_inotify.
src/Makefile.in (base_obj): Add inotify.o.
src/inotify.c: New file.
lisp/subr.el (inotify-event-p, inotify-handle-event): New functions.
test/automated/inotify-test.el: New test.
Daniel Colascione [Mon, 10 Dec 2012 07:11:21 +0000 (23:11 -0800)]
Compile Windows resources into cygw32 Emacs
Glenn Morris [Mon, 10 Dec 2012 02:00:42 +0000 (18:00 -0800)]
Merge from emacs-24; up to 2012-11-26T19:56:14Z!monnier@iro.umontreal.ca
Paul Eggert [Mon, 10 Dec 2012 01:44:32 +0000 (17:44 -0800)]
* fileio.c (Fsubstitute_in_file_name): Use ptrdiff_t, not int,
for string length.
Stefan Monnier [Mon, 10 Dec 2012 01:32:36 +0000 (20:32 -0500)]
* lisp/emacs-lisp/cl-lib.el (cl-declaim): Paren typo.
Eli Zaretskii [Sun, 9 Dec 2012 22:10:18 +0000 (00:10 +0200)]
Provide a prototype for unsetenv on MS-Windows.
nt/inc/unistd.h (unsetenv): Provide a prototype.
Eli Zaretskii [Sun, 9 Dec 2012 21:32:12 +0000 (23:32 +0200)]
Parallelize byte compilation on MS-Windows.
lisp/makefile.w32-in (WINS_BASIC1, WINS_BASIC2, WINS_BASIC3)
(WINS_BASIC4): New variables, subdivide subdirectories into 4
parts.
(WINS_BASIC): Define as concatenation of the above.
(compile): Subdivide into 4 separate and independent jobs that can
be run in parallel.
(compile0-CMD, compile0-SH): New targets for compiling
COMPILE_FIRST files, which are prerequisites for the rest of the
byte-compilation.
(compile1-CMD, compile2-CMD, compile3-CMD, compile4-CMD): New
targets for parallel compilation with cmd.exe.
(compile1-SH, compile2-SH, compile3-SH, compile4-SH): Ditto for
compiling under a Unixy shell.
Stefan Monnier [Sun, 9 Dec 2012 15:36:46 +0000 (10:36 -0500)]
* doc/lispref/control.texi (Pattern maching case statement): New node.
Glenn Morris [Sun, 9 Dec 2012 11:19:04 +0000 (06:19 -0500)]
Auto-commit of generated files.
Andreas Schwab [Sun, 9 Dec 2012 08:37:01 +0000 (09:37 +0100)]
* configure.ac: Fix source command in .gdbinit.
Don't quote $MAKEINFO.
Chong Yidong [Sun, 9 Dec 2012 03:44:59 +0000 (11:44 +0800)]
* simple.el (set-mark-default-inactive): Mark for removal after 24.3.
Chong Yidong [Sun, 9 Dec 2012 03:40:09 +0000 (11:40 +0800)]
* simple.el (set-mark-default-inactive): Delete accidentally-introduced option.
(set-mark-command, exchange-point-and-mark): Remove calls.
Paul Eggert [Sun, 9 Dec 2012 02:22:39 +0000 (18:22 -0800)]
Allow spaces in some configuration vars (Bug#13078).
* configure.ac (srcdir): Don't assume $PWD lacks spaces.
(srcdir, MAKEINFO, PKG_CONFIG, PKG_CONFIG_MIN_VERSION):
All uses quoted, to allow spaces in these vars.
Glenn Morris [Sun, 9 Dec 2012 01:04:43 +0000 (17:04 -0800)]
Make eval-defun on a pre-defined defcustom call any :set function
* lisp/emacs-lisp/lisp-mode.el (eval-defun-1): Doc fix.
Respect a defcustom's :set function, if appropriate.
(eval-defun): Doc fix.
* doc/lispref/customize.texi (Variable Definitions): Mention eval-defun
on a defcustom calls the :set function when appropriate.
* etc/NEWS: Mention this.
Fixes: debbugs:109
Juri Linkov [Sat, 8 Dec 2012 23:12:08 +0000 (01:12 +0200)]
* lisp/info.el (Info-copy-current-node-name, Info-breadcrumbs)
(Info-fontify-node, Info-bookmark-make-record): Remove the
file extension from Info-current-file.
Fixes: debbugs:13016
Jan Djärv [Sat, 8 Dec 2012 19:02:30 +0000 (20:02 +0100)]
* nsterm.m (fd_handler:): FD_ZERO fds.
Fixes: debbugs:13103