]> git.eshelyaron.com Git - emacs.git/log
emacs.git
12 years agoFixes: debbugs:12197
Andreas Schwab [Tue, 14 Aug 2012 08:37:41 +0000 (10:37 +0200)]
Fixes: debbugs:12197
* emacs-lisp/bytecomp.el (byte-recompile-file): When LOAD is
non-nil always load the compiled file if it exists.

12 years ago* intervals.c (offset_intervals): Remove obsolete comment.
Paul Eggert [Tue, 14 Aug 2012 08:30:52 +0000 (01:30 -0700)]
* intervals.c (offset_intervals): Remove obsolete comment.

12 years ago* gtkutil.c (find_rtl_image, update_frame_tool_bar): Use NILP.
Andreas Schwab [Tue, 14 Aug 2012 08:06:07 +0000 (10:06 +0200)]
* gtkutil.c (find_rtl_image, update_frame_tool_bar): Use NILP.

12 years agoFix highlight-regexp's use of Font Lock mode.
Chong Yidong [Tue, 14 Aug 2012 06:52:59 +0000 (14:52 +0800)]
Fix highlight-regexp's use of Font Lock mode.

* hi-lock.el (hi-lock-mode): Do not unilaterally enable font lock.
(hi-lock-set-pattern): When deciding whether to use font lock or
overlays, look at font-lock-mode instead of font-lock-fontified.
(hi-lock-mode, hi-lock-line-face-buffer, hi-lock-unface-buffer)
(hi-lock-face-buffer, hi-lock-face-phrase-buffer): Doc fix.

Fixes: debbugs:12168
12 years ago* gnus-art.el (article-display-face): Handle failure in gnus-create-image.
Chong Yidong [Tue, 14 Aug 2012 05:34:20 +0000 (13:34 +0800)]
* gnus-art.el (article-display-face): Handle failure in gnus-create-image.

Fixes: debbugs:11802
12 years agoFix for undo recording in decode_coding.
Gergely Risko [Tue, 14 Aug 2012 05:09:35 +0000 (13:09 +0800)]
Fix for undo recording in decode_coding.

* coding.c (decode_coding): Record buffer modification before
disabling undo_list.

Fixes: debbugs:11773
12 years agoRevert and cleanup some recent overlay changes.
Dmitry Antipov [Tue, 14 Aug 2012 04:49:18 +0000 (08:49 +0400)]
Revert and cleanup some recent overlay changes.
* buffer.h (enum overlay_type): Remove.
(buffer_get_overlays, buffer_set_overlays): Likewise.
(buffer_set_overlays_before, buffer_set_overlays_after):
New function.  Adjust users.
(unchain_both): Add eassert.

12 years ago* gtkutil.c (update_frame_tool_bar): Use EQ where appropriate.
Dmitry Antipov [Tue, 14 Aug 2012 04:47:05 +0000 (08:47 +0400)]
* gtkutil.c (update_frame_tool_bar): Use EQ where appropriate.

12 years ago* subr.el (internal--after-with-selected-window): Fix typo.
Daiki Ueno [Tue, 14 Aug 2012 04:37:00 +0000 (12:37 +0800)]
* subr.el (internal--after-with-selected-window): Fix typo.

Fixes: debbugs:12193
12 years agoUse `completion-table-dynamic' for completion functions.
Fabián Ezequiel Gallina [Tue, 14 Aug 2012 04:18:41 +0000 (01:18 -0300)]
Use `completion-table-dynamic' for completion functions.
* progmodes/python.el
(python-shell-completion--do-completion-at-point)
(python-shell-completion--get-completions): Remove
functions.
(python-shell-completion-complete-at-point): New function.
(python-completion-complete-at-point): Use it.

12 years agoMerge from gnulib.
Paul Eggert [Tue, 14 Aug 2012 03:15:52 +0000 (20:15 -0700)]
Merge from gnulib.

This incorporates:
2012-08-05 extern-inline: also ignore -Wmissing-declarations

12 years ago* gtkutil.c (xg_mark_data): Don't assume C99.
Paul Eggert [Tue, 14 Aug 2012 02:39:59 +0000 (19:39 -0700)]
* gtkutil.c (xg_mark_data): Don't assume C99.

12 years ago* lisp/vc/vc-dir.el (vc-dir-hide-state): New command.
Jambunathan K [Mon, 13 Aug 2012 21:31:56 +0000 (17:31 -0400)]
* lisp/vc/vc-dir.el (vc-dir-hide-state): New command.
(vc-dir-hide-up-to-date): Route it to `vc-dir-hide-state'.

Fixes: debbugs:12159
12 years ago* lisp/subr.el (function-get): Refine `autoload' arg so it can also
Stefan Monnier [Mon, 13 Aug 2012 21:23:09 +0000 (17:23 -0400)]
* lisp/subr.el (function-get): Refine `autoload' arg so it can also
autoload functions for gv.el.
* lisp/emacs-lisp/edebug.el (get-edebug-spec): Adjust so it only
autoloads macros.

Fixes: debbugs:12191
12 years agoDon't redraw tool bar for Gtk+ unless out of date.
Jan Djärv [Mon, 13 Aug 2012 19:12:26 +0000 (21:12 +0200)]
Don't redraw tool bar for Gtk+ unless out of date.

* gtkutil.c (xg_frame_tb_info): New struct.
(TB_INFO_KEY): New define.
(xg_free_frame_widgets): Free xg_frame_tb_info for frame if present.
(xg_mark_data): Mark Lisp_Objects in xg_frame_tb_info.
(xg_create_tool_bar): Allocate and initialize a xg_frame_tb_info
if not present.
(update_frame_tool_bar): Return early if data in xg_frame_tb_info
is up to date. Otherwise store new data.
(free_frame_tool_bar): Free xg_frame_tb_info if present.

12 years ago* lisp/color.el (color-xyz-to-lab, color-lab-to-xyz, color-cie-de2000):
Stefan Monnier [Mon, 13 Aug 2012 19:10:35 +0000 (15:10 -0400)]
* lisp/color.el (color-xyz-to-lab, color-lab-to-xyz, color-cie-de2000):
Prefer pcase-let over destructuring-bind.
* lisp/vc/diff-mode.el (diff-remove-trailing-whitespace): Same.
Also, remove whitespace as we go, rather than after accumulating the
various places.

12 years ago* lisp/subr.el (internal--before-with-selected-window)
Stefan Monnier [Mon, 13 Aug 2012 14:12:47 +0000 (10:12 -0400)]
* lisp/subr.el (internal--before-with-selected-window)
(internal--after-with-selected-window): Fix typo seleted->selected.
(with-selected-window): Adjust callers.
Reported by Dmitry Gutov <dgutov@yandex.ru>.

12 years agowindow.el: Minor dosctring enhancement (Bug#12172).
Bastien Guerry [Mon, 13 Aug 2012 14:05:24 +0000 (16:05 +0200)]
window.el: Minor dosctring enhancement (Bug#12172).

* window.el (special-display-popup-frame): Minor docstring
enhancement.  (Bug#12172)

12 years ago* tar-mode.el (tar-header-data-end): Only ignore size for files of
Andreas Schwab [Mon, 13 Aug 2012 10:34:25 +0000 (12:34 +0200)]
* tar-mode.el (tar-header-data-end): Only ignore size for files of
type 1-6.
(tar-header-block-summarize, tar-get-descriptor): Handle pax
extended headers.

12 years ago* files.el (hack-local-variables-filter): Remove useless eval.
Andreas Schwab [Mon, 13 Aug 2012 07:37:05 +0000 (09:37 +0200)]
* files.el (hack-local-variables-filter): Remove useless eval.

12 years agoFix last change to with-selected-window.
Martin Rudalics [Mon, 13 Aug 2012 07:25:30 +0000 (09:25 +0200)]
Fix last change to with-selected-window.

* subr.el (with-selected-window): Fix last change.

12 years agoUse KSET for write access to Lisp_Object members of struct kboard.
Dmitry Antipov [Mon, 13 Aug 2012 03:44:27 +0000 (07:44 +0400)]
Use KSET for write access to Lisp_Object members of struct kboard.
* keyboard.h (KSET): New macro.
* callint.c, category.c, frame.c, keyboard.c, keyboard.h, macros.c:
* msdos.c, nsfns.m, nsterm.m, term.c, w32fns.c, w32term.c, xfns.c:
* xterm.c: Adjust users.

12 years agoUse BSET for write access to Lisp_Object members of struct buffer.
Dmitry Antipov [Mon, 13 Aug 2012 03:39:07 +0000 (07:39 +0400)]
Use BSET for write access to Lisp_Object members of struct buffer.
* buffer.h (BSET): New macro.
* buffer.c, casetab.c, cmds.c, coding.c, data.c, editfns.c:
* fileio.c, frame.c, indent.c, insdel.c, intervals.c, keymap.c:
* minibuf.c, print.c, process.c, syntax.c, undo.c, w32fns.c:
* window.c, xdisp.c, xfns.c: Adjust users.

12 years ago* lisp/subr.el (internal--before-with-seleted-window)
Stefan Monnier [Sun, 12 Aug 2012 22:52:33 +0000 (18:52 -0400)]
* lisp/subr.el (internal--before-with-seleted-window)
(internal--after-with-seleted-window): New functions.
(with-selected-window): Use them, to replace dependency on tty-top-frame.

12 years agoMerge from upstream ruby-mode.el
Nobuyoshi Nakada [Sun, 12 Aug 2012 22:06:56 +0000 (18:06 -0400)]
Merge from upstream ruby-mode.el
* lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove unnecessary
binding for `newline'.
(ruby-move-to-block): When moving backward, stop at block opening,
not indentation.
* progmodes/ruby-mode.el (ruby-brace-to-do-end)
(ruby-do-end-to-brace, ruby-toggle-block): New functions.
* progmodes/ruby-mode.el (ruby-mode-map): Add binding for
`ruby-toggle-block'.
* test/automated/ruby-mode-tests.el (ruby-move-to-block-stops-at-opening)
(ruby-toggle-block-to-do-end, ruby-toggle-block-to-brace): New test.

12 years ago* lisp/url/url-util.el (url-file-directory, url-file-nondirectory): Avoid
David Engster [Sun, 12 Aug 2012 17:35:15 +0000 (13:35 -0400)]
* lisp/url/url-util.el (url-file-directory, url-file-nondirectory): Avoid
file-name-directory and file-name-nondirectory internally.

Fixes: debbugs:11981
12 years ago* lisp/ibuffer.el (ibuffer-do-toggle-read-only):
Stefan Monnier [Sun, 12 Aug 2012 17:29:53 +0000 (13:29 -0400)]
* lisp/ibuffer.el (ibuffer-do-toggle-read-only):
* lisp/dired.el (dired-toggle-read-only):
* lisp/buff-menu.el (Buffer-menu-toggle-read-only):
* lisp/bindings.el (mode-line-toggle-read-only):
* lisp/bs.el (bs-toggle-readonly): Call toggle-read-only interactively.

12 years ago* descr-text.el (describe-char): Put the overlays over the
Andreas Schwab [Sun, 12 Aug 2012 09:35:57 +0000 (11:35 +0200)]
* descr-text.el (describe-char): Put the overlays over the
"displayed as" character.

12 years agocalc/calc-units.el (math-default-units-table): Give it an
Jay Belanger [Sun, 12 Aug 2012 04:32:28 +0000 (23:32 -0500)]
calc/calc-units.el (math-default-units-table): Give it an
initial value.
(math-put-default-units): Add options to put composite units and unit
systems in default units table.
(calc-convert-units): Send composite units to `math-put-default-units'
when appropriate.

12 years agoCPP-DEFINES misc cleanup
Glenn Morris [Sun, 12 Aug 2012 03:13:37 +0000 (20:13 -0700)]
CPP-DEFINES misc cleanup

12 years agoRemove some defines that are no longer present
Glenn Morris [Sat, 11 Aug 2012 22:39:36 +0000 (15:39 -0700)]
Remove some defines that are no longer present

12 years ago* src/lread.c (syms_of_lread): Initialize Vlexical_binding.
BT Templeton [Sat, 11 Aug 2012 15:34:01 +0000 (11:34 -0400)]
* src/lread.c (syms_of_lread): Initialize Vlexical_binding.

12 years agoLast change fixes Bug#12069
Jason Rumney [Sat, 11 Aug 2012 14:50:28 +0000 (22:50 +0800)]
Last change fixes Bug#12069

12 years ago* lisp/url/url-http.el (url-http-create-request): Use url-http-proxy to
Jason Rumney [Sat, 11 Aug 2012 14:48:37 +0000 (22:48 +0800)]
* lisp/url/url-http.el (url-http-create-request): Use url-http-proxy to
look up proxy credentials.

12 years ago* nsterm.m (not_in_argv): New function.
Jan Djärv [Sat, 11 Aug 2012 09:10:08 +0000 (11:10 +0200)]
* nsterm.m (not_in_argv): New function.
(application:openFile, application:openTempFile:):
(application:openFileWithoutUI:, application:openFiles:): Open file
if not_in_argv returns non-zero.

Fixes: debbugs:12171
12 years agoUse GtkFontChooser on Gtk+ 3.2 and up.
Jan Djärv [Sat, 11 Aug 2012 08:54:35 +0000 (10:54 +0200)]
Use GtkFontChooser on Gtk+ 3.2 and up.

* src/gtkutil.c (gtk_font_chooser_dialog_new, GTK_FONT_CHOOSER)
(gtk_font_chooser_set_font, gtk_font_chooser_get_font): Define
for Gtk+ versions less than 3.2.
(xg_get_font_name): Use those functions/macros here.
Reported by Frans Oilinki <moilinki@gmail.com>.

12 years agoChangeLog date fixes
Glenn Morris [Sat, 11 Aug 2012 04:46:38 +0000 (21:46 -0700)]
ChangeLog date fixes

12 years agoMerge from emacs-24; up to 2012-05-02T11:38:01Z!lekktu@gmail.com
Chong Yidong [Sat, 11 Aug 2012 02:13:55 +0000 (10:13 +0800)]
Merge from emacs-24; up to 2012-05-02T11:38:01Z!lekktu@gmail.com

12 years ago* lib/makefile.w32-in (STAT_TIME_H): New macro.
Juanma Barranquero [Fri, 10 Aug 2012 21:29:38 +0000 (23:29 +0200)]
* lib/makefile.w32-in (STAT_TIME_H): New macro.
(FTOASTR_C, $(BLD)/stat-time.$(O), $(BLD)/timespec.$(O))
($(BLD)/u64.$(O)): Update dependencies.

12 years ago* lisp/gnus/gnus-agent.el (gnus-agent-cat-defaccessor, gnus-agent-cat-groups):
Stefan Monnier [Fri, 10 Aug 2012 21:20:24 +0000 (17:20 -0400)]
* lisp/gnus/gnus-agent.el (gnus-agent-cat-defaccessor, gnus-agent-cat-groups):
Use defsetf.

12 years ago* lisp/emacs-lisp/rx.el (rx-constituents): Don't define as constant.
Stefan Monnier [Fri, 10 Aug 2012 21:03:10 +0000 (17:03 -0400)]
* lisp/emacs-lisp/rx.el (rx-constituents): Don't define as constant.
(rx-form): Simplify.

12 years ago* test/automated/ruby-mode-tests.el (ruby-should-indent):
Dmitry Gutov [Fri, 10 Aug 2012 20:25:43 +0000 (16:25 -0400)]
* test/automated/ruby-mode-tests.el (ruby-should-indent):
Add docstring, check (current-indentation) instead of (current-column).
(ruby-should-indent-buffer): New function.
Add tests for `ruby-deep-indent-paren' behavior.
Port all tests from test/misc/test_ruby_mode.rb in Ruby repo.

Fixes: debbugs:12169
12 years agoMerge stuff from upsteam ruby-mode, part 1.
Dmitry Gutov [Fri, 10 Aug 2012 20:19:09 +0000 (16:19 -0400)]
Merge stuff from upsteam ruby-mode, part 1.
* lisp/progmodes/ruby-mode.el (ruby-mode-map): Remove deprecated
binding (use `M-;' instead).
(ruby-expr-beg, ruby-parse-partial): ?, _, and : are symbol
constituents, ! is not (but kinda should be).
(ruby-singleton-class-p): New function.
(ruby-expr-beg, ruby-in-here-doc-p)
(ruby-syntax-propertize-heredoc): Use it.
(ruby-syntax-propertize-function): Adjust for changes in
`ruby-syntax-propertize-heredoc'.

* test/automated/ruby-mode-tests.el (ruby-should-indent)
(ruby-assert-state): New functions.
Add new tests.

Fixes: debbugs:12169
12 years ago* lisp/emacs-lisp/cl-macs.el (cl-loop): Improve debug spec.
Stefan Monnier [Fri, 10 Aug 2012 19:34:36 +0000 (15:34 -0400)]
* lisp/emacs-lisp/cl-macs.el (cl-loop): Improve debug spec.

12 years agoMove IF_LINT from lisp.h to conf_post.h
Glenn Morris [Fri, 10 Aug 2012 18:23:45 +0000 (14:23 -0400)]
Move IF_LINT from lisp.h to conf_post.h

* src/conf_post.h (IF_LINT, lint_assume): Move here from lisp.h.
* src/lisp.h (IF_LINT, lint_assume): Move to conf_post.h.

* lib-src/make-docfile.c (IF_LINT):
* lib-src/emacsclient.c (IF_LINT): Remove (in config.h now).

12 years agoRemove some unnecessary bindings of same-window-* variables.
Chong Yidong [Fri, 10 Aug 2012 16:46:07 +0000 (00:46 +0800)]
Remove some unnecessary bindings of same-window-* variables.

* lisp/progmodes/python.el (python-shell-get-process-name): Don't mess
with same-window-buffer-names.

* lisp/eshell/eshell.el (eshell-add-to-window-buffer-names)
(eshell-remove-from-window-buffer-names): Make obsolete.
(eshell-buffer-name, eshell-unload-hook): Don't use them.
(eshell): Just use pop-to-buffer-same-window instead.

12 years agoBind M-= back to count-words-region, and let it accept a prefix arg.
Chong Yidong [Fri, 10 Aug 2012 16:02:48 +0000 (00:02 +0800)]
Bind M-= back to count-words-region, and let it accept a prefix arg.

* lisp/bindings.el: Bind M-= back to count-words-region.

* lisp/simple.el (count-words-region): Accept a prefix arg for acting
on the entire buffer.
(count-words--buffer-message): New helper function.

12 years ago* lisp/term/x-win.el (x-menu-bar-open): Always pass last-nonmenu-event.
Stefan Monnier [Fri, 10 Aug 2012 14:47:12 +0000 (10:47 -0400)]
* lisp/term/x-win.el (x-menu-bar-open): Always pass last-nonmenu-event.
* lisp/subr.el (eventp): `nil' is not an event, and eventp is not hot.
(event-start, event-end): Use posn-at-point to return a more
informative posn.
(posnp): New function.
* lisp/mouse.el (popup-menu-normalize-position): Use it.

12 years agolisp/gnus/auth-source.el: (auth-source-plstore-search, auth-source-secrets-search...
Daiki Ueno [Fri, 10 Aug 2012 14:38:37 +0000 (14:38 +0000)]
lisp/gnus/auth-source.el: (auth-source-plstore-search, auth-source-secrets-search): Ignore :require and :type in search spec

12 years agoFix last change to allow compilation with low optimization levels.
Dmitry Antipov [Fri, 10 Aug 2012 13:24:20 +0000 (17:24 +0400)]
Fix last change to allow compilation with low optimization levels.
* intervals.c (INTERVALS_INLINE): Define to EXTERN_INLINE.
Reported by Jan Djärv <jan.h.d@swipnet.se>.

12 years ago* lisp/mouse.el (popup-menu-normalize-position): New function.
Masatake YAMATO [Fri, 10 Aug 2012 12:44:06 +0000 (08:44 -0400)]
* lisp/mouse.el (popup-menu-normalize-position): New function.
(popup-menu): Use `popup-menu-normalize-position' to normalize
the form for POSITION argument.
* lisp/term/x-win.el (x-menu-bar-open):
Use the value returend from (posn-at-point) as position
passed to `popup-menu'.

12 years agoAuto-commit of generated files.
Glenn Morris [Fri, 10 Aug 2012 10:17:28 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years agoUse common inline syntax in intervals.h.
Dmitry Antipov [Fri, 10 Aug 2012 09:37:43 +0000 (13:37 +0400)]
Use common inline syntax in intervals.h.
* intervals.h (INTERVALS_INLINE): New macro.
Change all users from LISP_INLINE.

12 years agoDefine Qnone once for all platforms.
Dmitry Antipov [Fri, 10 Aug 2012 09:24:03 +0000 (13:24 +0400)]
Define Qnone once for all platforms.
* frame.c (Qnone): Define here.
(syms_of_frame): DEFSYM it.
* lisp.h (Qnone): New declaration.
* nsfns.m, nsterm.h, nsterm.m, w32fns.c, w32font.c:
* xfns.c: Remove duplication.  Adjust users.

12 years agoRemove unused macros from intervals.h.
Dmitry Antipov [Fri, 10 Aug 2012 09:04:19 +0000 (13:04 +0400)]
Remove unused macros from intervals.h.
* intervals.h (MERGE_INSERTIONS, DISPLAY_INVISIBLE_GLYPH): Remove.
* intervals.c: Adjust comment.

12 years agoImprove commit in 2012-08-10T06:54:37Z!eliz@gnu.org.
Eli Zaretskii [Fri, 10 Aug 2012 07:16:58 +0000 (10:16 +0300)]
Improve commit in 2012-08-10T06:54:37Z!eliz@gnu.org.

 src/w32fns.c <w32_unicode_gui>: New static variable.
 (globals_of_w32fns): Initialize it according to os_subtype.
 (w32_init_class, w32_msg_pump, w32_wnd_proc): Use it instead of
 testing os_subtype.

12 years ago* test/automated/files.el (files-test-disable-local-variables): New test.
Glenn Morris [Fri, 10 Aug 2012 07:13:06 +0000 (00:13 -0700)]
* test/automated/files.el (files-test-disable-local-variables): New test.

12 years agoComments
Glenn Morris [Fri, 10 Aug 2012 07:07:07 +0000 (00:07 -0700)]
Comments

12 years agoChangeLog fixes
Glenn Morris [Fri, 10 Aug 2012 07:00:40 +0000 (00:00 -0700)]
ChangeLog fixes

12 years ago* admin/bzrmerge.el (bzrmerge-resolve): Disable local eval:.
Glenn Morris [Fri, 10 Aug 2012 06:57:34 +0000 (23:57 -0700)]
* admin/bzrmerge.el (bzrmerge-resolve): Disable local eval:.

12 years ago* lisp/emacs-lisp/copyright.el (copyright-update-directory): Logic fix.
Glenn Morris [Fri, 10 Aug 2012 06:56:01 +0000 (23:56 -0700)]
* lisp/emacs-lisp/copyright.el (copyright-update-directory): Logic fix.

12 years agoFix bug #10299 with Unicode characters sent on MS-Windows by MSKLC.
Eli Zaretskii [Fri, 10 Aug 2012 06:54:37 +0000 (09:54 +0300)]
Fix bug #10299 with Unicode characters sent on MS-Windows by MSKLC.

 src/w32fns.c (INIT_WINDOW_CLASS): New macro.
 (w32_init_class): Use it to initialize the Emacs class with either
 ANSI or Unicode API calls.
 (w32_msg_pump): Call GetMessageW and DispatchMessageW on NT and
 later.
 (w32_wnd_proc): If the character code sent by WM_CHAR or
 WM_SYSCHAR is above 255, post a WM_UNICHAR message, not the
 original message.  Call DefWindowProcW on NT and later.

12 years agoDisable local eval: in some places
Glenn Morris [Fri, 10 Aug 2012 06:53:52 +0000 (23:53 -0700)]
Disable local eval: in some places

* tutorial.el (help-with-tutorial):
* emacs-lisp/copyright.el (copyright-update-directory):
* emacs-lisp/autoload.el (autoload-find-generated-file)
(autoload-find-file): Disable local eval: (for insurance).

12 years ago* src/Makefile.in (config_h): Fix conf_post.h out-of-tree build location.
Glenn Morris [Fri, 10 Aug 2012 00:47:21 +0000 (20:47 -0400)]
* src/Makefile.in (config_h): Fix conf_post.h out-of-tree build location.

12 years agoRemove some make-docfile.c undes that are no longer needed
Glenn Morris [Fri, 10 Aug 2012 00:16:33 +0000 (20:16 -0400)]
Remove some make-docfile.c undes that are no longer needed

* lib-src/make-docfile.c (main):
(fopen) [!WINDOWSNT]:
(chdir) [!DOS_NT]: No more need to undef.

12 years agoMove DIRECTORY_SEP from lisp.h to config.h
Glenn Morris [Fri, 10 Aug 2012 00:02:10 +0000 (20:02 -0400)]
Move DIRECTORY_SEP from lisp.h to config.h

* configure.ac (DIRECTORY_SEP): Move here from src/lisp.h.

* src/lisp.h (DIRECTORY_SEP): Let configure set it.

* nt/config.nt (DIRECTORY_SEP): Move here from src/lisp.h.

* lib-src/movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
* lib-src/make-docfile.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
* lib-src/emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP):
Remove (they are in config.h now).

12 years agoComments
Glenn Morris [Thu, 9 Aug 2012 23:59:38 +0000 (19:59 -0400)]
Comments

12 years ago* lib-src/ebrowse.c (PATH_LIST_SEPARATOR): Remove
Glenn Morris [Thu, 9 Aug 2012 23:53:07 +0000 (19:53 -0400)]
* lib-src/ebrowse.c (PATH_LIST_SEPARATOR): Remove
Replace with SEPCHAR from config.h.

12 years agocalccomp.el (math-compose-expr): Add extra argument indicating that
Jay Belanger [Thu, 9 Aug 2012 14:46:03 +0000 (09:46 -0500)]
calccomp.el (math-compose-expr): Add extra argument indicating that
parentheses should be put around products in denominators.  Give
multiplication precedence over division during composition.

12 years agoConvert several man.el defvars to defcustoms.
Chong Yidong [Thu, 9 Aug 2012 13:37:31 +0000 (21:37 +0800)]
Convert several man.el defvars to defcustoms.

* man.el (Man-switches, Man-sed-command, Man-awk-command)
(Man-mode-hook, Man-cooked-hook, Man-untabify-command-args)
(Man-untabify-command, manual-program): Convert to defcustom.

Fixes: debbugs:10429
12 years agoAuto-commit of generated files.
Glenn Morris [Thu, 9 Aug 2012 10:17:30 +0000 (06:17 -0400)]
Auto-commit of generated files.

12 years ago* lisp/vc/add-log.el (change-log-mode): Bind comment-start to nil.
Chong Yidong [Thu, 9 Aug 2012 08:16:13 +0000 (16:16 +0800)]
* lisp/vc/add-log.el (change-log-mode): Bind comment-start to nil.

This fixes M-q for Change Log entries which contain "(Bug#123)".

12 years ago* descr-text.el (describe-char): Don't insert extra newlines.
Chong Yidong [Thu, 9 Aug 2012 08:10:32 +0000 (16:10 +0800)]
* descr-text.el (describe-char): Don't insert extra newlines.

Fixes: debbugs:10127
12 years agoUpdate docstrings for last change.
Chong Yidong [Thu, 9 Aug 2012 07:50:49 +0000 (15:50 +0800)]
Update docstrings for last change.

12 years ago* lisp/vc/log-view.el (log-view-diff): Use use-region-p.
Chong Yidong [Thu, 9 Aug 2012 07:45:23 +0000 (15:45 +0800)]
* lisp/vc/log-view.el (log-view-diff): Use use-region-p.
(log-view-diff-changeset, log-view-minor-wrap): Likewise.

Fixes: debbugs:10133
12 years ago* align.el (align-region): Delete temporary markers.
Chong Yidong [Thu, 9 Aug 2012 07:34:53 +0000 (15:34 +0800)]
* align.el (align-region): Delete temporary markers.
Plus some code cleanups.

Fixes: debbugs:10047
12 years agoChangeLog merge date fixes
Glenn Morris [Thu, 9 Aug 2012 07:15:04 +0000 (00:15 -0700)]
ChangeLog merge date fixes

12 years ago* etc/images/splash.svg, etc/images/splash.png: Tweak SVG paths
Chong Yidong [Thu, 9 Aug 2012 05:25:21 +0000 (13:25 +0800)]
* etc/images/splash.svg, etc/images/splash.png: Tweak SVG paths
to improve legibility.

12 years agoUse TSET for write access to Lisp_Object slots of struct terminal.
Dmitry Antipov [Thu, 9 Aug 2012 05:14:23 +0000 (09:14 +0400)]
Use TSET for write access to Lisp_Object slots of struct terminal.
* termhooks.h (TSET): New macro.
* coding.c, terminal.c, xselect.c: Adjust users.

12 years ago* progmodes/python.el (python-pdbtrack-tracked-buffer)
Fabián Ezequiel Gallina [Thu, 9 Aug 2012 04:08:29 +0000 (01:08 -0300)]
* progmodes/python.el (python-pdbtrack-tracked-buffer)
(python-pdbtrack-buffers-to-kill, python-shell-internal-buffer)
(python-shell-internal-last-output): Use make-local-variable
instead of make-variable-buffer-local.

12 years ago* progmodes/python.el: Enhancements to forward-sexp.
Fabián Ezequiel Gallina [Thu, 9 Aug 2012 03:30:37 +0000 (00:30 -0300)]
* progmodes/python.el: Enhancements to forward-sexp.
(python-nav-forward-sexp): Rename from
python-nav-forward-sexp-function.
(python-nav--forward-sexp, python-nav--backward-sexp): New
functions.

12 years agocalc/calc-menu.el (calc-modes-menu): Fix menu item.
Jay Belanger [Thu, 9 Aug 2012 03:19:34 +0000 (22:19 -0500)]
calc/calc-menu.el (calc-modes-menu): Fix menu item.

12 years agocalc-menu.el (calc-modes-menu): Add entries for matrix modes
Jay Belanger [Thu, 9 Aug 2012 02:51:58 +0000 (21:51 -0500)]
calc-menu.el (calc-modes-menu): Add entries for matrix modes
and simplification modes.

12 years ago* lisp/delsel.el (delete-selection-pre-hook): Don't propagate the
Stefan Monnier [Thu, 9 Aug 2012 02:18:50 +0000 (22:18 -0400)]
* lisp/delsel.el (delete-selection-pre-hook): Don't propagate the
file-supersession signals.

Fixes: debbugs:12161
12 years ago* src/xdisp.c (safe_eval_handler): Remove prototype. Receive args describing
Stefan Monnier [Wed, 8 Aug 2012 19:53:44 +0000 (15:53 -0400)]
* src/xdisp.c (safe_eval_handler): Remove prototype.  Receive args describing
the failing expression, include them in the error message.
* src/eval.c (internal_condition_case_n): Pass nargs and args to hfun.
* src/lisp.h (internal_condition_case_n): Update declaration.

12 years ago* lisp/emacs-lisp/cl.el (cl-map-keymap-recursively, cl-map-intervals)
Stefan Monnier [Wed, 8 Aug 2012 18:56:01 +0000 (14:56 -0400)]
* lisp/emacs-lisp/cl.el (cl-map-keymap-recursively, cl-map-intervals)
(cl-map-extents): Add compatibility aliases.

Fixes: debbugs:12135
12 years agoFix and document recently introduced configuration options.
Dmitry Antipov [Wed, 8 Aug 2012 16:17:15 +0000 (20:17 +0400)]
Fix and document recently introduced configuration options.
* configure.ac (--disable-features): Rename to --without-all.
(OPTION_DEFAULT_ON): Change to use with_features.
* INSTALL: Fix description.
* etc/NEWS: Mention --without-all and --enable-link-time-optimization.

12 years agoRemove reference to src/s file
Glenn Morris [Wed, 8 Aug 2012 16:07:24 +0000 (09:07 -0700)]
Remove reference to src/s file

12 years agoRefill comment
Glenn Morris [Wed, 8 Aug 2012 16:03:04 +0000 (09:03 -0700)]
Refill comment

12 years agoComments
Glenn Morris [Wed, 8 Aug 2012 16:01:28 +0000 (09:01 -0700)]
Comments

12 years agoTiny comment updates
Glenn Morris [Wed, 8 Aug 2012 15:53:52 +0000 (08:53 -0700)]
Tiny comment updates

12 years agoChangeLog fix
Glenn Morris [Wed, 8 Aug 2012 15:47:21 +0000 (08:47 -0700)]
ChangeLog fix

12 years agoInline functions to examine and change buffer overlays.
Dmitry Antipov [Wed, 8 Aug 2012 14:47:11 +0000 (18:47 +0400)]
Inline functions to examine and change buffer overlays.
* buffer.c (unchain_both): New function.
* buffer.h (buffer_get_overlays, buffer_set_overlays):
(buffer_has_overlays): New function.
(enum overlay_type): New enum.
* alloc.c, buffer.c, editfns.c, fileio.c, indent.c:
* insdel.c, intervals.c, print.c, xdisp.c: Adjust users.

12 years ago* net/tramp-sh.el (tramp-find-file-exists-command): Protect the
Michael Albinus [Wed, 8 Aug 2012 13:40:45 +0000 (15:40 +0200)]
* net/tramp-sh.el (tramp-find-file-exists-command): Protect the
tests by `ignore-error'.
(tramp-find-shell): Open also a new shell, when cache is already
set.  Reported by Carsten Bormann <cabo@tzi.org>.  (Bug#12148)

12 years agoInline functions to examine and change buffer intervals.
Dmitry Antipov [Wed, 8 Aug 2012 12:12:40 +0000 (16:12 +0400)]
Inline functions to examine and change buffer intervals.
* alloc.c (mark_interval_tree): Remove.
(MARK_INTERVAL_TREE): Simplify.
(UNMARK_BALANCE_INTERVALS): Remove.  Adjust users.
* intervals.c (buffer_balance_intervals): New function.
(graft_intervals_into_buffer): Adjust indentation.
(set_intervals_multibyte): Simplify.
* buffer.h (BUF_INTERVALS): Remove.
(buffer_get_intervals, buffer_set_intervals): New function.
* alloc.c, buffer.c, editfns.c, fileio.c, indent.c, insdel.c:
* intervals.c, textprop.c: Adjust users.

12 years agoInline functions to examine and change string intervals.
Dmitry Antipov [Wed, 8 Aug 2012 10:23:04 +0000 (14:23 +0400)]
Inline functions to examine and change string intervals.
* lisp.h (STRING_INTERVALS, STRING_SET_INTERVALS): Remove.
(string_get_intervals, string_set_intervals): New function.
* alloc.c, buffer.c, editfns.c, fns.c, insdel.c, intervals.c:
* lread.c, print.c, textprop.c: Adjust users.

12 years ago* lisp/bookmark.el: Add `defaults' property to the bookmark record.
Juri Linkov [Wed, 8 Aug 2012 08:48:57 +0000 (11:48 +0300)]
* lisp/bookmark.el: Add `defaults' property to the bookmark record.
(bookmark-current-buffer): Doc fix.
(bookmark-make-record): Add `defaults' property with default values
to the bookmark record.
(bookmark-minibuffer-read-name-map): Remove key binding "\C-u"
with `bookmark-insert-current-bookmark'.
(bookmark-set): Get `defaults' property from the bookmark record
and use it in `read-from-minibuffer'.
(bookmark-insert-current-bookmark): Remove function.

* lisp/info.el (Info-bookmark-make-record): Add `defaults' property
with values of canonical Info node name, the current Info file name
and the current Info node name.

Fixes: debbugs:12107
12 years ago* lisp/files.el (basic-save-buffer): Use `buffer-name' as the default
Juri Linkov [Wed, 8 Aug 2012 08:17:13 +0000 (11:17 +0300)]
* lisp/files.el (basic-save-buffer): Use `buffer-name' as the default
of `read-file-name' when buffer is not visiting a file.

Fixes: debbugs:12128
12 years ago* lisp/info.el (Info-isearch-search): Doc fix.
Juri Linkov [Wed, 8 Aug 2012 08:05:58 +0000 (11:05 +0300)]
* lisp/info.el (Info-isearch-search): Doc fix.
(Info-search): Change search-failed message from "initial node" to
"end of node".
(Info-isearch-search): Change `isearch-string-state' to
`isearch--state-string'.

Fixes: debbugs:12078
12 years ago* test/automated/files.el: New file.
Glenn Morris [Wed, 8 Aug 2012 07:33:10 +0000 (00:33 -0700)]
* test/automated/files.el: New file.