1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-02-02 20:16:25 +00:00

114430 Commits

Author SHA1 Message Date
Glenn Morris
150622a173 * src/lread.c (openp): Further fix for previous. 2013-12-17 20:19:08 -08:00
Glenn Morris
09af58633c * src/lread.c (openp): Fix previous change (don't leak file descriptors) 2013-12-17 20:05:57 -08:00
Glenn Morris
123d014362 ChangeLog tweak 2013-12-17 19:25:52 -08:00
Glenn Morris
1f41ee56ac Add load-prefer-newer option, to load .el if newer than .elc
* src/lread.c (Fload): Pass load_prefer_newer to openp.
Don't bother checking mtime if openp already did it.
(openp): Add `newer' argument, to check all suffixes
and find the newest file.
(syms_of_lread) <load_prefer_newer>: New option. 

* src/callproc.c (call_process):
* src/charset.c (load_charset_map_from_file):
* src/emacs.c (init_cmdargs):
* src/image.c (x_create_bitmap_from_file, x_find_image_file):
* src/lisp.h (openp):
* lread.c (Flocate_file_internal):
* src/process.c (Fformat_network_address):
* src/sound.c (Fplay_sound_internal):
* src/w32.c (check_windows_init_file):
* src/w32proc.c (sys_spawnve): Update for new arg spec of openp.

* lisp/Makefile.in (BYTE_COMPILE_FLAGS): Set load-prefer-newer to t.

* etc/NEWS: Mention this.

Fixes: debbugs:2061
2013-12-17 19:21:48 -08:00
Le Wang
e82134b1e4 * comint.el (comint-previous-matching-input-from-input): Retain point.
Fixes: debbugs:13404
2013-12-18 11:02:39 +08:00
Chong Yidong
33f5d4c15a * simple.el (append-next-kill): Doc fix (Bug#15995, Bug#16016). 2013-12-18 10:43:47 +08:00
Glenn Morris
9cdb8d8556 * src/emacs.c (standard_args) [HAVE_NS]: Remove -disable-font-backend. 2013-12-17 20:06:16 -05:00
Glenn Morris
ccc9f6dc47 * lisp/mail/emacsbug.el (report-emacs-bug):
Only mention enable-multibyte-characters if non-standard.
2013-12-17 20:03:07 -05:00
Juri Linkov
33dd8e9544 * lisp/arc-mode.el (archive-extract-by-file): Check if directory exists
before deletion to not show irrelevant errors if it doesn't exist.
2013-12-17 23:39:15 +02:00
Juri Linkov
7a409b3005 * lisp/menu-bar.el (menu-bar-tools-menu): Add `browse-web'.
* lisp/startup.el (fancy-startup-screen, fancy-about-screen):
Set browse-url-browser-function to eww-browse-url locally.
(Bug#14751)

* lisp/net/browse-url.el (browse-url-browser-function): Move `eww'
closer to similar functions.

* lisp/net/eww.el (browse-web): Add alias to `eww'.
(eww-mode-map): Bind "r" to `eww-forward-url' like in Info.
Bind "S-SPC" to `scroll-down-command'.  (Bug#16178)
2013-12-17 23:17:05 +02:00
Paul Eggert
e9ad5665ed Merge from gnulib, incorporating:
2013-12-17 gettimeofday: port recent C++ fix to Emacs
2013-12-17 gettimeofday: fix C++ crosscompilation
2013-12-17 qacl: port to Windows better
* lib/file-has-acl.c, lib/time.in.h, m4/gettimeofday.m4, m4/time_h.m4:
Update from gnulib.
* lib/gnulib.mk: Regenerate.
2013-12-17 12:43:43 -08:00
Stefan Monnier
2d6b6005bc * lisp/window.el (window--pixel-to-total): Remove unused `mini' var.
(maximize-window, minimize-window): Remove unused `pixelwise' arg.
(split-window): Remove unused `new' var.
(window--display-buffer): Remove unused `frame' and `delta' vars.
(fit-window-to-buffer): Remove unused vars `frame', `display-height',
and display-width'.
2013-12-17 13:11:37 -05:00
Eli Zaretskii
60e62dc596 Fix minor problems in Windows emulation of getloadavg.
src/w32.c (getloadavg): Don't index samples[] array with negative
 indices.  Recover from wall-clock time being set backwards.
2013-12-17 20:00:25 +02:00
Eli Zaretskii
af025ae850 Fix some warnings in w32 specific code.
src/w32term.c (w32_initialize): Declare the argument of
 set_user_model as const.
 src/w32menu.c <MessageBoxW_Proc>: Fix argument declarations.
 (w32_menu_show): Constify some arguments passed to MessageBox.
 src/w32uniscribe.c (uniscribe_font_driver): Use LISP_INITIALLY_ZERO
 to initialize Lisp objects.
 src/w32font.c (w32font_driver): Use LISP_INITIALLY_ZERO to
 initialize Lisp objects.
 src/frame.c (x_set_frame_parameters) [HAVE_X_WINDOWS]: Declare and
 use variables used only on X under that condition.
 src/fileio.c (Fcopy_file) [!WINDOWSNT]: Don't declare on Windows
 variables not used there.
2013-12-17 19:46:31 +02:00
Martin Rudalics
cf2b7efc78 Remove no more needed bindings of split-height-threshold.
* dired.el (dired-mark-pop-up):
* register.el (register-preview): Don't bind
split-height-threshold here since it's now done in
display-buffer-below-selected.
2013-12-17 18:29:11 +01:00
oblique
ed3af8a771 Fix 256 color mapping in rxvt.el
* term/rxvt.el (rxvt-rgb-convert-to-16bit): Standardize with
xterm-rgb-convert-to-16bit.
(rxvt-register-default-colors): Standardize with
xterm-register-default-colors.

Fixes: debbugs:14078
2013-12-18 00:03:23 +08:00
Chong Yidong
9718dea2e1 * killing.texi (Appending Kills): Note that append-next-kill can prepend the kill. 2013-12-17 23:57:38 +08:00
Dima Kogan
76da345537 * simple.el (kill-region): Pass mark first then point, so kill-append works right.
(copy-region-as-kill, kill-ring-save): Likewise.

Fixes: debbugs:12819
2013-12-17 23:48:26 +08:00
Leo Liu
2b84d76395 * net/rcirc.el (rcirc-add-face):
* eshell/em-prompt.el (eshell-emit-prompt):
* eshell/em-ls.el (eshell-ls-decorated-name): Use font-lock-face.

Fixes: debbugs:16167
2013-12-17 23:15:00 +08:00
Chong Yidong
e2f6a0bc34 * files.el (break-hardlink-on-save): Doc fix.
Suggested by Xue Fuqiao.

Fixes: debbugs:13801
2013-12-17 23:09:13 +08:00
Dmitry Gutov
35b249a653 * lisp/progmodes/ruby-mode.el (ruby-smie-rules): Indent ternary if. 2013-12-17 14:04:23 +02:00
Katsumi Yamaoka
cb8b0736d5 lisp/gnus/mm-util.el (mm-make-temp-file): Alias to make-temp-file for modern Emacsen 2013-12-17 10:12:07 +00:00
Stefan Monnier
e914544431 * lisp/net/shr.el (shr-insert-document): Remove unused var
`shr-preliminary-table-render'.
(shr-rescale-image): Remove unused arg `force'.
(shr-put-image): Update calls accordingly.
(shr-tag-a): Use `cont' rather than dyn-bound `dom'.
2013-12-16 21:48:06 -05:00
Dmitry Gutov
5556c0cef1 Fix bug#16116
* lisp/emacs-lisp/smie.el (smie-indent--rule): Extract `smie-indent--rule-1'.
(smie-indent-close): Call `smie-indent--rule-1' with METHOD
:close-all, to see which indentation method to use.
(smie-rules-function): Document the method :close-all.

* test/indent/ruby.rb: Update examples according to the change
in `smie-indent-close'.
2013-12-17 03:31:55 +02:00
Lars Magne Ingebrigtsen
1c4b1e6107 * net/shr.el (shr-tag-a): Support zero-length <a name="foo"> elements. 2013-12-17 00:40:17 +01:00
Lars Magne Ingebrigtsen
11bade0ad8 eww anchor pointer movement fixup
* net/eww.el (eww-display-html): If we can't find the anchor we're
looking for, then go to point-min.
2013-12-17 00:29:47 +01:00
Paul Eggert
8fb8c4f373 Fix problems with CANNOT_DUMP and EMACSLOADPATH.
* leim/Makefile.in (RUN_EMACS):
* lisp/Makefile.in (emacs): Add lisp src to EMACSLOADPATH.
* lisp/loadup.el: Check for src/bootstrap-emacs only when Emacs can dump.
Expand dir too, in case it's relative.
* src/lread.c (init_lread): If CANNOT_DUMP, we can't be dumping.
2013-12-16 14:35:57 -08:00
Juri Linkov
6c8e0ae69b * lisp/desktop.el (desktop-auto-save-timeout): Change default to
`auto-save-timeout'.  Doc fix.
(desktop-save): Skip the timestamp in desktop-saved-frameset
when checking for auto-save changes.
(desktop-auto-save): Don't call desktop-auto-save-set-timer since
`desktop-auto-save' is called repeatedly by the idle timer.
(desktop-auto-save-set-timer): Replace `run-with-timer' with
`run-with-idle-timer' and a non-nil arg REPEAT.  Doc fix.

Fixes: debbugs:15331
2013-12-16 23:48:51 +02:00
Juri Linkov
2178e8589a * lisp/isearch.el (isearch-mode-map): Remove [escape] key bindinds.
(isearch-pre-command-hook): Check `this-command' for symbolp.

Fixes: debbugs:16035
2013-12-16 22:32:15 +02:00
Eli Zaretskii
5e6d03b2ab Fix compilation errors introduced by changes in extend_face_to_end_of_line.
src/xdisp.c (extend_face_to_end_of_line): Don't reference tool_bar_window
 in GTK and NS builds, they don't have this member of struct frame.

Fixes: debbugs:16165
2013-12-16 21:29:04 +02:00
Stefan Monnier
39cb42c621 * lisp/emacs-lisp/gv.el (gv-ref): Mention lexbind restriction.
Fixes: debbugs:16153
2013-12-16 14:12:21 -05:00
Eli Zaretskii
2f43a3ee6a Update Emacs's Windows manifests to support Windows 8.1.
nt/emacs-x64.manifest:
 nt/emacs-x86.manifest: Declare that we target Windows 8.1 as well
 as earlier versions.  This is so GetVersion and GetVersionEx APIs
 used for bug reporting and other purposes return accurate version
 number on Windows 8.1.  See the discussion on MSDN
 http://msdn.microsoft.com/en-us/library/windows/desktop/dn302074.aspx
 for more details.
2013-12-16 20:18:44 +02:00
Eli Zaretskii
397e886f34 A better fix for bug #16148 and related issues.
src/xdisp.c (Fmove_point_visually): Fix subtle bugs in the fallback
 code, revealed in presence of R2L characters, character
 compositions, and display vectors.
 src/dispextern.h (struct composition_it): Correct a comment for the
 'width' member.
2013-12-16 20:09:36 +02:00
Paul Eggert
32779713e1 * font.h (valid_font_driver) [!ENABLE_CHECKING]: Define a dummy.
This prevents a compilation error on C compilers that do not
default functions to return 'int' if not declared.  Also, add
INLINE_HEADER_BEGIN and INLINE_HEADER_END to this include file,
since it now uses inline functions.
2013-12-16 10:05:53 -08:00
Eli Zaretskii
d865f6b555 Fix bug #16165 with memory corruption by extend_face_to_end_of_line.
src/xdisp.c (extend_face_to_end_of_line): Don't fill background of
 display margins on mode line, header line, and in the frame's
 tool-bar window.
2013-12-16 19:59:50 +02:00
Paul Eggert
062727ce6b * INSTALL: Clarify treatment of image libraries. 2013-12-16 09:58:25 -08:00
Andreas Schwab
2ee8ee54f3 Add more .gitignore 2013-12-16 17:18:19 +01:00
Andreas Schwab
0fa30f3361 * gnutls.c (Fgnutls_boot): Properly check Flistp return value. 2013-12-16 17:14:45 +01:00
Ted Zlatanov
5b9b750ae0 Cleanup cfengine3-mode so complete-symbol works again.
* progmodes/cfengine.el (cfengine3--current-word): Remove.
(cfengine3--current-function): Bring in the current-function
functionality from `cfengine3--current-word'.
(cfengine3-completion-function): Bring in the
bounds-of-current-word functionality from
`cfengine3--current-word'.
2013-12-16 10:49:25 -05:00
Ted Zlatanov
82cf20e452 Fix bug#16161: CHECK_LIST_CONS fails on nil
* src/gnutls.c (Fgnutls_boot): Use `Flistp' instead of
`CHECK_LIST_CONS`.
2013-12-16 10:47:09 -05:00
Martin Rudalics
d144ef069c Fix recent w32_enable_frame_resize_hack and display-buffer-below-selected fixes.
* w32term.c (w32_enable_frame_resize_hack): Default to 1.

* window.el (display-buffer-below-selected): Bind
split-height-threshold to 0 as suggested by Juri Linkov.
2013-12-16 10:58:44 +01:00
Leo Liu
a8bbe29833 * progmodes/compile.el (compile-goto-error): Do not push-mark.
Remove NOMSG arg and all uses changed.
2013-12-16 16:07:10 +08:00
Dmitry Antipov
5ae356d991 * font.c (valid_font_driver) [ENABLE_CHECKING]: New function
intended to find bogus pointers in font objects (Bug#16140).
* font.h (valid_font_driver) [ENABLE_CHECKING]: Add prototype.
* alloc.c (cleanup_vector): Use valid_font_driver in eassert.
(compact_font_cache_entry, compact_font_caches) [!HAVE_NTGUI]:
Disable for MS-Windows due to Bug#15876; apparently this
requires more or less substantial changes in fontset code.
* xfont.c (xfont_close):
* xftfont.c (xftfont_close): Call x_display_info_for_display
to check whether 'Display *' is valid (Bug#16093 and probably
Bug#16069).
2013-12-16 11:45:33 +04:00
Stefan Monnier
2013a2f955 * lisp/emulation/cua-rect.el (cua-rectangle-mark-mode): New minor mode.
(cua--deactivate-rectangle): Don't deactivate the mark.
(cua-set-rectangle-mark): Don't set mark-active since
cua--activate-rectangle already does it for us.
(cua--rectangle-highlight-for-redisplay): Unhighlight a previous
non-rectangular region.

* lisp/emulation/cua-base.el (cua-repeat-replace-region):
Use with-current-buffer.

* lisp/net/gnutls.el: Use cl-lib.
(gnutls-negotiate): `mapcan' -> cl-mapcan.
2013-12-15 21:24:08 -05:00
Eli Zaretskii
db50ad5f11 Fix bug with conditionals in expand-file-name on MS-Windows.
src/fileio.c (Fexpand_file_name) [WINDOWSNT]: Fix conditionals.
 Reported by Juanma Barranquero <lekktu@gmail.com>.
2013-12-15 22:39:36 +02:00
Eli Zaretskii
1014b1dc34 Fix bug #16152 with crashes in process-send-eof on MS-Windows.
src/process.c (Fprocess_send_eof): Don't crash if someone tries to
 open a pty on MS-Windows.
2013-12-15 20:37:48 +02:00
Eli Zaretskii
e088f89414 Minor fix in Windows-specific code in decode_env_path.
src/emacs.c (decode_env_path): Fix bogus comparison against
 emacs_dir.  Reported by Juanma Barranquero <lekktu@gmail.com>.
2013-12-15 19:52:14 +02:00
Juanma Barranquero
119f64dbf6 src/w32*.c: Silence compiler warnings.
* w32fns.c (Fw32_shell_execute): Remove unused local variable.
(Fx_file_dialog): Add parentheses around && to silence warning.

* w32term.c (construct_drag_n_drop): Remove unused local variable.
2013-12-15 18:40:44 +01:00
Eli Zaretskii
cdeb10ce51 Fix bug #16151 with background of display margins.
src/xdisp.c (extend_face_to_end_of_line): Extend background of
 non-default face in margin areas as well.  (Bug#16151)
 (display_line): Call extend_face_to_end_of_line for continued
 lines as well, if the display margins have non-zero width.
 (set_glyph_string_background_width): When needed, set the
 extends_to_end_of_line_p flag on glyph strings to be drawn in
 margin areas, not only in the text area.
2013-12-15 18:51:59 +02:00
Eli Zaretskii
dd1fb8cb77 Fix session GUI startup.
src/frame.h (FRAME_MOUSE_UPDATE): Fix a typo that caused infloop at
 startup.
2013-12-15 18:27:25 +02:00