]> git.eshelyaron.com Git - emacs.git/log
emacs.git
11 years agolisp/gnus/shr.el: Support <img src="data:...">
David Edmondson [Tue, 16 Apr 2013 06:44:35 +0000 (06:44 +0000)]
lisp/gnus/shr.el: Support <img src="data:...">

11 years agoFix typos in ChangeLogs.
Juanma Barranquero [Tue, 16 Apr 2013 02:52:53 +0000 (04:52 +0200)]
Fix typos in ChangeLogs.

11 years agoSilence byte-compiler warnings.
Juanma Barranquero [Tue, 16 Apr 2013 02:41:37 +0000 (04:41 +0200)]
Silence byte-compiler warnings.
lisp/minibuffer.el (completion--twq-all):
lisp/term/ns-win.el (ns-initialize-window-system):
lisp/term/w32-win.el (w32-initialize-window-system): Mark unused argument.

11 years agosrc/minibuf.c (Ftest_completion): Silence compiler warning.
Juanma Barranquero [Tue, 16 Apr 2013 02:39:47 +0000 (04:39 +0200)]
src/minibuf.c (Ftest_completion): Silence compiler warning.

11 years ago* lisp/emacs-lisp/nadvice.el (add-function): Default simple vars to their
Stefan Monnier [Tue, 16 Apr 2013 02:10:16 +0000 (22:10 -0400)]
* lisp/emacs-lisp/nadvice.el (add-function): Default simple vars to their
global bindings.

11 years ago* lisp/doc-view.el (doc-view-start-process): Handle url-handler directories.
Stefan Monnier [Tue, 16 Apr 2013 00:51:46 +0000 (20:51 -0400)]
* lisp/doc-view.el (doc-view-start-process): Handle url-handler directories.

11 years ago* lisp/progmodes/ruby-mode.el (ruby-beginning-of-defun)
Dmitry Gutov [Mon, 15 Apr 2013 23:07:14 +0000 (03:07 +0400)]
* lisp/progmodes/ruby-mode.el (ruby-beginning-of-defun)
(ruby-end-of-defun, ruby-move-to-block): Bind `case-fold-search'
to nil.
(ruby-end-of-defun): Remove the unused arg, change the docstring
to reflect that this function is only used as the value of
`end-of-defun-function'.
(ruby-beginning-of-defun): Remove "top-level" from the docstring,
to reflect an earlier change that beginning/end-of-defun functions
jump between methods in a class definition, as well as top-level
functions.

11 years ago* lisp/minibuffer.el (minibuffer-complete): Don't just scroll
Stefan Monnier [Mon, 15 Apr 2013 19:55:41 +0000 (15:55 -0400)]
* lisp/minibuffer.el (minibuffer-complete): Don't just scroll
a *Completions* that's been iconified.
(minibuffer-force-complete): Make sure repetitions do cycle when going
through completion-in-region -> minibuffer-complete.

11 years ago* etc/NEWS, doc/lispref/tips.texi (Coding Conventions): Mention
Christopher Schmidt [Mon, 15 Apr 2013 17:01:00 +0000 (19:01 +0200)]
* etc/NEWS, doc/lispref/tips.texi (Coding Conventions): Mention
separation of package descriptor and name of internal symbols by
two hyphens.

11 years agoCorrect the placement of c-cpp-delimiters when there're #s not at col 0.
Alan Mackenzie [Mon, 15 Apr 2013 16:10:24 +0000 (16:10 +0000)]
Correct the placement of c-cpp-delimiters when there're #s not at col 0.

        * progmodes/cc-langs.el (c-anchored-cpp-prefix): Reformulate and
        place a submatch around the #.
        * progmodes/cc-mode.el(c-neutralize-syntax-in-and-mark-CPP): Start
        a search at BOL.  Put the c-cpp-delimiter category text propertiy
        on the #, not BOL.

11 years ago* lisp/emacs-lisp/nadvice.el: Properly test names when adding advice.
Stefan Monnier [Mon, 15 Apr 2013 15:06:51 +0000 (11:06 -0400)]
* lisp/emacs-lisp/nadvice.el: Properly test names when adding advice.
(advice--member-p): New arg `name'.
(advice--add-function, advice-member-p): Use it.

Fixes: debbugs:14202
11 years agoReformulate java imenu-generic-expression.
Alan Mackenzie [Mon, 15 Apr 2013 14:32:20 +0000 (14:32 +0000)]
Reformulate java imenu-generic-expression.
        The old expression contained ill formed regexps.

        * progmodes/cc-menus.el (cc-imenu-java-ellipsis-regexp)
        (cc-imenu-java-type-spec-regexp, cc-imenu-java-comment-regexp)
        (cc-imenu-java-method-arg-regexp): New defconsts.
        (cc-imenu-java-build-type-args-regex): New defun.
        (cc-imenu-java-generic-expression): Fixed, to remove "ambiguous"
        handling of spaces in the regexp.

11 years agonet/tramp.texi: Improve last change.
Michael Albinus [Mon, 15 Apr 2013 13:42:29 +0000 (15:42 +0200)]
net/tramp.texi: Improve last change.

11 years agoispell.el: No longer mark as wrong-by-flyspell words just accepted by ispell (bug...
Agustín Martín [Mon, 15 Apr 2013 10:00:14 +0000 (12:00 +0200)]
ispell.el: No longer mark as wrong-by-flyspell words just accepted by ispell (bug #14178).

textmodes/ispell.el (ispell-command-loop): Remove flyspell highlighting
of a word when ispell accepts it (bug #14178).

11 years ago* net/ange-ftp.el (ange-ftp-run-real-handler-orig): New defun,
Michael Albinus [Mon, 15 Apr 2013 09:43:20 +0000 (11:43 +0200)]
* net/ange-ftp.el (ange-ftp-run-real-handler-orig): New defun,
uses code from the previous `ange-ftp-run-real-handler'.
(ange-ftp-run-real-handler): Set it to `tramp-run-real-handler'
only in case that function exist.  This is needed for proper
unloading of Tramp.

11 years ago* tramp.texi (Frequently Asked Questions): New item for
Michael Albinus [Mon, 15 Apr 2013 08:52:19 +0000 (10:52 +0200)]
* tramp.texi (Frequently Asked Questions): New item for
ControlPath settings.

11 years ago* textmodes/reftex-vars.el (reftex-label-regexps): New defcustom.
Tassilo Horn [Mon, 15 Apr 2013 07:55:05 +0000 (09:55 +0200)]
* textmodes/reftex-vars.el (reftex-label-regexps): New defcustom.

* textmodes/reftex.el (reftex-compile-variables): Use it.

11 years agoChangeLog for the last commit.
Eli Zaretskii [Mon, 15 Apr 2013 07:29:39 +0000 (10:29 +0300)]
ChangeLog for the last commit.

11 years agoMore debugging code to investigate bug #14062.
Eli Zaretskii [Mon, 15 Apr 2013 07:27:56 +0000 (10:27 +0300)]
More debugging code to investigate bug #14062.

 src/w32fns.c (w32_wnd_proc): Add more assertions to investigate
 bug#14062.
 src/frame.h (WINDOW_FRAME): Protect macro and its argument with
 parentheses.
 src/dispextern.h (CURRENT_MODE_LINE_HEIGHT)
 (CURRENT_HEADER_LINE_HEIGHT, WINDOW_WANTS_MODELINE_P)
 (WINDOW_WANTS_HEADER_LINE_P): Protect macro arguments with
 parentheses where appropriate.

11 years agolisp/gnus/nnir.el (nnir-request-set-mark): Make sure we are in the right group
Andrew Cohen [Sun, 14 Apr 2013 22:16:44 +0000 (22:16 +0000)]
lisp/gnus/nnir.el (nnir-request-set-mark): Make sure we are in the right group

11 years agoSpelling fixes.
Paul Eggert [Sun, 14 Apr 2013 21:57:21 +0000 (14:57 -0700)]
Spelling fixes.

11 years ago* keyboard.c (timer_start_idle): Remove no-longer-used local.
Paul Eggert [Sun, 14 Apr 2013 20:33:57 +0000 (13:33 -0700)]
* keyboard.c (timer_start_idle): Remove no-longer-used local.

11 years agoImprove doc strings of left/right-margin/fringe-width.
Eli Zaretskii [Sun, 14 Apr 2013 06:51:15 +0000 (09:51 +0300)]
Improve doc strings of left/right-margin/fringe-width.

 src/buffer.c (syms_of_buffer) <left-margin-width, right-margin-width>
 <left-fringe-width, right-fringe-width, fringes-outside-margins>:
 Mention in the doc string that setting these variables takes
 effect only after a call to set-window-buffer.  (Bug#14200)

11 years ago* lisp/files.el (normal-mode): Only use default major-mode if no other mode
Stefan Monnier [Sun, 14 Apr 2013 02:55:21 +0000 (22:55 -0400)]
* lisp/files.el (normal-mode): Only use default major-mode if no other mode
was specified.

Fixes: debbugs:14089
11 years ago* lisp/emacs-lisp/trace.el (trace-values): New function.
Stefan Monnier [Sun, 14 Apr 2013 01:02:29 +0000 (21:02 -0400)]
* lisp/emacs-lisp/trace.el (trace-values): New function.

11 years ago* lisp/files.el: Allow : in local variables.
Stefan Monnier [Sun, 14 Apr 2013 00:59:48 +0000 (20:59 -0400)]
* lisp/files.el: Allow : in local variables.
(hack-local-variable-regexp): New var.
(hack-local-variables-prop-line, hack-local-variables): Use it.

Fixes: debbugs:14089
11 years agolisp/textmodes/bibtex.el (bibtex-search-entries): Bug fix
Roland Winkler [Sat, 13 Apr 2013 20:45:03 +0000 (15:45 -0500)]
lisp/textmodes/bibtex.el (bibtex-search-entries): Bug fix

11 years agolisp/textmodes/bibtex.el (bibtex-url): Doc fix
Roland Winkler [Sat, 13 Apr 2013 20:41:52 +0000 (15:41 -0500)]
lisp/textmodes/bibtex.el (bibtex-url): Doc fix

11 years agolisp/textmodes/bibtex.el (bibtex-initialize): If the current buffer does not visit...
Roland Winkler [Sat, 13 Apr 2013 20:38:52 +0000 (15:38 -0500)]
lisp/textmodes/bibtex.el (bibtex-initialize): If the current buffer does not visit a BibTeX file, exclude it from the list of buffers returned by bibtex-initialize

11 years agoMake `split-window' a non-interactive function.
Stephen Berman [Sat, 13 Apr 2013 14:37:20 +0000 (16:37 +0200)]
Make `split-window' a non-interactive function.

* doc/lispref/windows.texi (Splitting Windows): Change category of
split-window from a command to a function.

* etc/NEWS: Mention fixing `split-window' to be non-interactive.

* window.el (split-window): Remove interactive form, since as a
command this function is a special case of split-window-below.
Correct doc string.

11 years agoAuto-commit of generated files.
Glenn Morris [Sat, 13 Apr 2013 10:17:45 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years agoFix vertical cursor motion when there are overlay strings at EOL.
Eli Zaretskii [Sat, 13 Apr 2013 08:54:02 +0000 (11:54 +0300)]
Fix vertical cursor motion when there are overlay strings at EOL.

 src/indent.c (Fvertical_motion): Don't consider display strings on
 overlay strings as display strings on the buffer position we
 started from.  This prevents vertical cursor motion from jumping
 more than one line when there's an overlay string with a display
 property at end of line.
 Reported by Karl Chen <Karl.Chen@quarl.org> in
 http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00362.html.

11 years agofaces.el (read-face-name): Do not override value of arg default, call instead face...
Roland Winkler [Sat, 13 Apr 2013 01:10:09 +0000 (20:10 -0500)]
faces.el (read-face-name): Do not override value of arg default, call instead face-at-point

11 years ago* src/window.c (select_window): `record_buffer' even if window is
Stefan Monnier [Fri, 12 Apr 2013 17:32:52 +0000 (13:32 -0400)]
* src/window.c (select_window): `record_buffer' even if window is
already selected.

Fixes: debbugs:14191
11 years agognus-msg.el (gnus-msg-mail): Make it avoid using posting styles corresponding to...
Katsumi Yamaoka [Fri, 12 Apr 2013 15:17:47 +0000 (15:17 +0000)]
gnus-msg.el (gnus-msg-mail): Make it avoid using posting styles corresponding to any existing group (Bug#14166)

11 years ago* info.el (Info-file-list-for-emacs): Add "tramp" and "dbus".
Michael Albinus [Fri, 12 Apr 2013 13:56:03 +0000 (15:56 +0200)]
* info.el (Info-file-list-for-emacs): Add "tramp" and "dbus".

11 years ago* configure.ac (canonical): Adapt to 64-bit Cygwin.
Ken Brown [Fri, 12 Apr 2013 13:00:57 +0000 (09:00 -0400)]
* configure.ac (canonical): Adapt to 64-bit Cygwin.

11 years agoFix bug #14170 with window-end returning a stale value.
Eli Zaretskii [Thu, 11 Apr 2013 16:06:47 +0000 (19:06 +0300)]
Fix bug #14170 with window-end returning a stale value.

This bug was introduced in 2012-10-15T09:03:56Z!rudalics@gmx.at
while solving bug #12600.

 src/window.c (Fwindow_end): Test more flags, including the buffer's
 last_overlay_modified flag, to determine whether the window's
 display is really up-to-date.  Prevents the function from
 returning a stale value.
 (Fwindow_line_height): Fix the test for up-to-date-ness of the
 current matrix.

11 years agolisp/gnus/nnir.el: Fix last change
Katsumi Yamaoka [Wed, 10 Apr 2013 22:17:51 +0000 (22:17 +0000)]
lisp/gnus/nnir.el: Fix last change

11 years agolisp/gnus/nnir.el: Small optimizations. Use 'gnus-group-guess-full-name-from-command...
Andrew Cohen [Wed, 10 Apr 2013 22:14:14 +0000 (22:14 +0000)]
lisp/gnus/nnir.el: Small optimizations. Use 'gnus-group-guess-full-name-from-command-method

11 years agolisp/gnus/nnir.el: Improve marks handling
Andrew Cohen [Wed, 10 Apr 2013 22:13:37 +0000 (22:13 +0000)]
lisp/gnus/nnir.el: Improve marks handling

11 years agoFix bug #13864 with flickering of TTY frames in an emacslient session.
Eli Zaretskii [Wed, 10 Apr 2013 15:38:20 +0000 (18:38 +0300)]
Fix bug #13864 with flickering of TTY frames in an emacslient session.

 src/frame.c (do_switch_frame): Mark the TTY frame we switch to as
 garbaged only if it is not already the top frame on its TTY.  This
 prevents flickering due to constant redrawing of TTY frames when
 there are GUI frames open in the same session.

11 years ago* textmodes/reftex-cite.el (reftex-parse-bibtex-entry): Don't cut
Tassilo Horn [Wed, 10 Apr 2013 14:48:44 +0000 (16:48 +0200)]
* textmodes/reftex-cite.el (reftex-parse-bibtex-entry): Don't cut
off leading { and trailing } from field values.

11 years ago* src/keyboard.c (timer_start_idle): Call internal-timer-start-idle instead
Stefan Monnier [Wed, 10 Apr 2013 13:31:35 +0000 (09:31 -0400)]
* src/keyboard.c (timer_start_idle): Call internal-timer-start-idle instead
of marking the idle timers directly.
* lisp/emacs-lisp/timer.el (timer--check): New function.
(timer--time, timer-set-function, timer-event-handler): Use it.
(timer-set-idle-time): Simplify.
(timer--activate): CSE.
(timer-event-handler): Give more info in error message.
(internal-timer-start-idle): New function, moved from C.

11 years ago* lisp/mpc.el (mpc-proc): Add `restart' argument.
Stefan Monnier [Wed, 10 Apr 2013 13:17:27 +0000 (09:17 -0400)]
* lisp/mpc.el (mpc-proc): Add `restart' argument.
(mpc-proc-cmd): Use it.
(mpc--status-timer-run): Also catch signals from `mpc-proc'.
(mpc-status-buffer-show, mpc-tagbrowser-dir-toggle): Call `mpc-proc'
less often.

11 years agoStandardize license text
Glenn Morris [Wed, 10 Apr 2013 01:22:15 +0000 (18:22 -0700)]
Standardize license text

11 years agoFix typos
Glenn Morris [Wed, 10 Apr 2013 01:20:51 +0000 (18:20 -0700)]
Fix typos

11 years ago* src/minibuf.c (Ftest_completion): Ignore non-string/symbol keys in hash
Stefan Monnier [Tue, 9 Apr 2013 20:10:47 +0000 (16:10 -0400)]
* src/minibuf.c (Ftest_completion): Ignore non-string/symbol keys in hash
tables.

Fixes: debbugs:14054
11 years ago* themes/tsdh-dark-theme.el (tsdh-dark): Add some more faces.
Tassilo Horn [Tue, 9 Apr 2013 19:18:53 +0000 (21:18 +0200)]
* themes/tsdh-dark-theme.el (tsdh-dark): Add some more faces.

11 years ago* etc/NEWS: Mention `sh-mode' own `add-log-current-defun-function'.
Masatake YAMATO [Tue, 9 Apr 2013 17:54:50 +0000 (02:54 +0900)]
* etc/NEWS: Mention `sh-mode' own `add-log-current-defun-function'.

11 years ago* test/automated/add-log-tests.el: New file.
Masatake YAMATO [Tue, 9 Apr 2013 17:37:17 +0000 (02:37 +0900)]
* test/automated/add-log-tests.el: New file.

Fixes: debbugs:14112
11 years ago* lisp/progmodes/sh-script.el: Implement `sh-mode' own
Masatake YAMATO [Tue, 9 Apr 2013 17:31:17 +0000 (02:31 +0900)]
* lisp/progmodes/sh-script.el: Implement `sh-mode' own
`add-log-current-defun-function'.
(sh-current-defun-name): New function.
(sh-mode): Use the function.

Fixes: debbugs:14112
11 years agoAuto-commit of generated files.
Glenn Morris [Tue, 9 Apr 2013 10:17:36 +0000 (06:17 -0400)]
Auto-commit of generated files.

11 years ago* simple.el (choose-completion-string): Fix docstring (bug#14163).
Bastien Guerry [Tue, 9 Apr 2013 09:36:25 +0000 (11:36 +0200)]
* simple.el (choose-completion-string): Fix docstring (bug#14163).

11 years agoFix icon for the cygw32 build on 64-bit Cygwin. (Bug#12993)
Ken Brown [Tue, 9 Apr 2013 02:38:56 +0000 (22:38 -0400)]
Fix icon for the cygw32 build on 64-bit Cygwin.  (Bug#12993)

* nt/emacs.rc: Use 64-bit manifest for 64-bit Cygwin build.

* configure.ac (W32_RES_LINK): Remove unnecessary linker directive
`-Wl,-bpe-i386', which is confusing in the 64-bit case.

11 years ago* src/window.c (select_window): Don't record_buffer while the invariant is
Stefan Monnier [Mon, 8 Apr 2013 18:04:58 +0000 (14:04 -0400)]
* src/window.c (select_window): Don't record_buffer while the invariant is
temporarily broken.
* src/fns.c (Fdelq): Don't assume !NILP => CONSP.

Fixes: debbugs:14161
11 years ago* lisp/emacs-lisp/edebug.el (edebug-mode): Fix typo.
Stefan Monnier [Mon, 8 Apr 2013 02:21:59 +0000 (22:21 -0400)]
* lisp/emacs-lisp/edebug.el (edebug-mode): Fix typo.

Fixes: debbugs:14144
11 years ago* lisp/emacs-lisp/timer.el (timer-event-handler): Don't retrigger a canceled
Stefan Monnier [Mon, 8 Apr 2013 02:08:45 +0000 (22:08 -0400)]
* lisp/emacs-lisp/timer.el (timer-event-handler): Don't retrigger a canceled
timer.

Fixes: debbugs:14156
11 years ago* emacs-lisp/ert.el: Fix paren typo.
Stefan Monnier [Sun, 7 Apr 2013 20:42:11 +0000 (16:42 -0400)]
* emacs-lisp/ert.el: Fix paren typo.

11 years ago* lisp/emacs-lisp/ert.el (should, should-not, should-error): Add edebug
Nic Ferrier [Sun, 7 Apr 2013 18:56:28 +0000 (14:56 -0400)]
* lisp/emacs-lisp/ert.el (should, should-not, should-error): Add edebug
declaration.

11 years agoProvide definition of ACL_NOT_WELL_SUPPORTED for MS-Windows.
Eli Zaretskii [Sun, 7 Apr 2013 16:18:41 +0000 (19:18 +0300)]
Provide definition of ACL_NOT_WELL_SUPPORTED for MS-Windows.

 src/fileio.c (ACL_NOT_WELL_SUPPORTED): Define macro for WINDOWSNT.

Fixes: debbugs:13702
11 years agoIgnore additional platform-specific ACL errors (Bug#13702).
Romain Francoise [Sun, 7 Apr 2013 11:21:39 +0000 (13:21 +0200)]
Ignore additional platform-specific ACL errors (Bug#13702).

* fileio.c (ACL_NOT_WELL_SUPPORTED): New macro copied from gnulib.
(Fcopy_file, Fset_file_acl) [HAVE_POSIX_ACL]: Use it.

11 years ago* PROBLEMS: Mention Ubuntu warnings about libdbusmenu.
Jan Djärv [Sun, 7 Apr 2013 11:01:56 +0000 (13:01 +0200)]
* PROBLEMS: Mention Ubuntu warnings about libdbusmenu.

11 years ago* nsterm.m (ns_mouse_position): Use NS_FRAME_P instead of checking
Jan Djärv [Sun, 7 Apr 2013 10:51:29 +0000 (12:51 +0200)]
* nsterm.m (ns_mouse_position): Use NS_FRAME_P instead of checking
f->output_data.ns.

11 years agoAuto-commit of generated files.
Glenn Morris [Sun, 7 Apr 2013 10:19:05 +0000 (06:19 -0400)]
Auto-commit of generated files.

11 years ago* pcmpl-x.el: New file.
Leo Liu [Sun, 7 Apr 2013 07:14:00 +0000 (15:14 +0800)]
* pcmpl-x.el: New file.

11 years agoFix --enable-profiling bug introduced by 2013-02-25 change.
Paul Eggert [Sun, 7 Apr 2013 06:21:40 +0000 (23:21 -0700)]
Fix --enable-profiling bug introduced by 2013-02-25 change.

This bug was introduced by my 2013-02-25 change that simplified
data_start configuration.  Without this change, on GNU/Linux
an Emacs configured with --enable-profiling fails immediately
due to a profiler signal.
* configure.ac (LD_SWITCH_SYSTEM_TEMACS): Append -pg if profiling
and if not on GNU/Linux or FreeBSD.
* lib/Makefile.am (AM_CFLAGS): Add $(PROFILING_CFLAGS), so that
lib/*.o is profiled too.
* src/Makefile.in: Compile with $(PROFILING_CFLAGS), but do not link
with these flags.  On platforms where special flags are needed
when linking temacs, the flags are now in LD_SWITCH_SYSTEM_TEMACS.
(ALL_CFLAGS): Remove $(PROFILING_CFLAGS).
(.c.o, .m.o): Compile with $(PROFILING_CFLAGS).

Fixes: debbugs:13783
11 years agoGet rid of some platform-specific functions examining window
Dmitry Antipov [Sun, 7 Apr 2013 04:41:19 +0000 (08:41 +0400)]
Get rid of some platform-specific functions examining window
system and its capabilities.  This is a partial rework of the
2013-04-05 change.
* lisp.h (have_menus_p): Remove prototype.  This function is
replaced with platform-independent window_system_available.
(check_window_system): Move to...
* frame.h (decode_window_system_frame, window_system_available):
...here, add new prototypes.
* frame.c (window_system_available, decode_window_system_frame):
New functions.
(check_window_system): Platform-independent now.
* xterm.h (x_in_use): Remove declaration.
(check_x_frame):
* w32term.h (check_x_frame):
* nsterm.h (check_x_frame): Remove prototypes.  This function
is replaced with platform-independent decode_window_system_frame.
* msdos.c (have_menus_p): Remove.
* nsfns.m (check_window_system, have_menus_p, check_ns_frame):
Remove platform-specific functions.  Use check_window_system,
decode_window_system_frame and check_ns_display_info where
appropriate.  Minor style and comment tweaks.
* w32fns.c (w32_in_use, check_window_system, have_menus_p)
(check_x_frame): Likewise.
* xfns.c (x_in_use, check_window_system, have_menus_p, check_x_frame):
Likewise.
* fileio.c, fns.c, font.c, fontset.c, image.c, menu.c, nsmenu.m:
* nsselect.m, nsterm.m, w32font.c, w32menu.c, xfaces.c, xgselect.c:
* xmenu.c, xselect.c: All related users changed.

11 years agoFix typo
Glenn Morris [Sat, 6 Apr 2013 20:03:38 +0000 (13:03 -0700)]
Fix typo

11 years agoDo not set x-display-name until X connection is established.
Dmitry Antipov [Sat, 6 Apr 2013 14:06:39 +0000 (18:06 +0400)]
Do not set x-display-name until X connection is established.
This is needed to prevent from weird situation described at
<http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00212.html>.
* frame.el (make-frame): Set x-display-name after call to
window system initialization function, not before.
* term/x-win.el (x-initialize-window-system): Add optional
display argument and use it.
* term/w32-win.el (w32-initialize-window-system):
* term/ns-win.el (ns-initialize-window-system):
* term/pc-win.el (msdos-initialize-window-system):
Add compatible optional display argument.

11 years agoFix the non-creation of backup files in temporary-file directory on Windows.
Eli Zaretskii [Sat, 6 Apr 2013 07:41:09 +0000 (10:41 +0300)]
Fix the non-creation of backup files in temporary-file directory on Windows.

 lisp/files.el (normal-backup-enable-predicate): On MS-Windows and
 MS-DOS compare truenames of temporary-file-directory and of the
 file, so that 8+3 aliases (usually found in $TEMP on Windows)
 don't fail comparison by compare-strings.  Also, compare file
 names case-insensitively on MS-Windows and MS-DOS.

11 years agoImprove Lisp manual documentation on setting faces.
Chong Yidong [Sat, 6 Apr 2013 07:39:48 +0000 (15:39 +0800)]
Improve Lisp manual documentation on setting faces.

* display.texi (Faces): Minor clarifications.
(Defining Faces): Clarify default vs custom face specs.  Document
face-spec-set.

* display.texi (Overlay Properties):
* text.texi (Special Properties): Use the "anonymous face"
terminology.  Describe foreground-color and background-color forms
as compatibility-only.

11 years agoSpelling fix.
Paul Eggert [Sat, 6 Apr 2013 07:33:18 +0000 (00:33 -0700)]
Spelling fix.

11 years ago* lisp/whitespace.el (whitespace-color-on, whitespace-color-off): Only
Dmitry Gutov [Fri, 5 Apr 2013 22:22:12 +0000 (02:22 +0400)]
* lisp/whitespace.el (whitespace-color-on, whitespace-color-off): Only
call `font-lock-fontify-buffer' when `font-lock-mode' is on.

11 years ago* lisp/emacs-lisp/package.el (package-compute-transaction): Fix last fix.
Stefan Monnier [Fri, 5 Apr 2013 18:46:59 +0000 (14:46 -0400)]
* lisp/emacs-lisp/package.el (package-compute-transaction): Fix last fix.
Suggested by Donald Curtis <dcurtis@coe.edu>.

Fixes: debbugs:14082
11 years agoispell.el (ispell-set-spellchecker-params): Really set `ispell-args' for all equivs.
Agustín Martín [Fri, 5 Apr 2013 15:43:07 +0000 (17:43 +0200)]
ispell.el (ispell-set-spellchecker-params): Really set `ispell-args' for all equivs.

Was not actually modifying ispell-args for dicts where it was nil before.
Thanks Jacek Chrzaszcz.

11 years agomerge trunk
Kenichi Handa [Fri, 5 Apr 2013 14:17:55 +0000 (23:17 +0900)]
merge trunk

11 years agoOptimize the code for reading UTF-8 files.
Kenichi Handa [Fri, 5 Apr 2013 14:08:56 +0000 (23:08 +0900)]
Optimize the code for reading UTF-8 files.

11 years agoConsistently use platform-specific function to detect window system.
Dmitry Antipov [Fri, 5 Apr 2013 14:07:02 +0000 (18:07 +0400)]
Consistently use platform-specific function to detect window system.
* lisp.h (check_window_system): New prototype.  This function is
going to replace check_x, check_w32 and check_ns.
(have_menus_p): Mention msdos.c in comment.
* fontset.c (check_window_system_func): Remove.  Adjust all users.
* fontset.h (check_window_system_func): Remove prototype.
* nsterm.h (check_ns):
* xterm.h (check_x):
* w32term.h (check_w32): Likewise.
* menu.c (Fx_popup_menu): Use check_window_system.
* msdos.c (check_window_system): Define for MS-DOS.
* nsfns.m (check_window_system): Define for NS.  Adjust all users.
* w32fns.c (check_window_system): Likewise for MS-Windows.
* xfns.c (check_window_system): Likewise for X.
* font.c, frame.c, nsmenu.m, nsselect.m, nsterm.m, w32menu.c:
* xfaces.c, xmenu.c: Use check_window_system where appropriate.

11 years ago* lisp/ido.el (ido-completions): Use extra elements of ido-decorations.
Stefan Monnier [Fri, 5 Apr 2013 14:00:08 +0000 (10:00 -0400)]
* lisp/ido.el (ido-completions): Use extra elements of ido-decorations.
(ido-decorations): Update docstring.

Fixes: debbugs:14143
11 years ago* autorevert.el (auto-revert-mode, auto-revert-tail-mode)
Michael Albinus [Fri, 5 Apr 2013 10:18:43 +0000 (12:18 +0200)]
* autorevert.el (auto-revert-mode, auto-revert-tail-mode)
(global-auto-revert-mode): Let-bind `auto-revert-use-notify' to
nil during initialization, in order not to miss changes since the
file was opened.  (Bug#14140)

11 years ago* kmacro.el (kmacro-call-macro): Fix bug#14135.
Leo Liu [Fri, 5 Apr 2013 08:38:06 +0000 (16:38 +0800)]
* kmacro.el (kmacro-call-macro): Fix bug#14135.

11 years ago* lisp/calc/calc.el (calc-allow-units-as-numbers): Move declaration.
Jay Belanger [Fri, 5 Apr 2013 02:20:35 +0000 (21:20 -0500)]
* lisp/calc/calc.el (calc-allow-units-as-numbers): Move declaration.

* lisp/calc/calc-units.el (calc-convert-units): Redo conditional.

11 years agognus-msg.el: Fix detection of nnir group
Andrew Cohen [Thu, 4 Apr 2013 22:15:25 +0000 (22:15 +0000)]
gnus-msg.el: Fix detection of nnir group

11 years agoChangeLog fixes
Glenn Morris [Thu, 4 Apr 2013 03:46:25 +0000 (20:46 -0700)]
ChangeLog fixes
2013-03-16 was not the date Emacs 24.3 was released, it was not even
the date on which I merged all changes from that release into trunk.
Ref: http://lists.gnu.org/archive/html/emacs-devel/2013-03/msg00990.html

11 years ago* lisp/electric.el (electric-pair-inhibit-predicate): Add :version.
Glenn Morris [Thu, 4 Apr 2013 03:42:10 +0000 (20:42 -0700)]
* lisp/electric.el (electric-pair-inhibit-predicate): Add :version.

11 years ago* lisp/emacs-lisp/package.el (package-compute-transaction): Fix ordering
Stefan Monnier [Thu, 4 Apr 2013 02:46:38 +0000 (22:46 -0400)]
* lisp/emacs-lisp/package.el (package-compute-transaction): Fix ordering
when a package is required several times.

Fixes: debbugs:14082
11 years agolisp/gnus/mml.el (mml-minibuffer-read-description): Use `default' insted of `initial...
Katsumi Yamaoka [Thu, 4 Apr 2013 02:35:55 +0000 (02:35 +0000)]
lisp/gnus/mml.el (mml-minibuffer-read-description): Use `default' insted of `initial-input' for the argument name

11 years agolisp/faces.el (read-face-name): Behave as promised by the docstring.
Roland Winkler [Thu, 4 Apr 2013 02:12:25 +0000 (21:12 -0500)]
lisp/faces.el (read-face-name): Behave as promised by the docstring.

11 years ago* lisp/bookmark.el: Fix deletion of bookmarks.
Thierry Volpiatto [Thu, 4 Apr 2013 01:59:09 +0000 (21:59 -0400)]
* lisp/bookmark.el: Fix deletion of bookmarks.
(bookmark-bmenu-list): Don't toggle filenames if alist is empty.
(bookmark-bmenu-execute-deletions): Only skip first line if it's
the header.
(bookmark-exit-hook-internal): Save even if list is empty.

Fixes: debbugs:13972
11 years ago* lisp/emacs-lisp/package.el (package-pinned-packages): New var.
Yann Hodique [Thu, 4 Apr 2013 01:51:33 +0000 (21:51 -0400)]
* lisp/emacs-lisp/package.el (package-pinned-packages): New var.
(package--add-to-archive-contents): Obey it.

Fixes: debbugs:14118
11 years agolisp/gnus/mml.el (mml-minibuffer-read-description): Allow passing in a prefix (used...
Kevin Layer [Wed, 3 Apr 2013 23:19:58 +0000 (23:19 +0000)]
lisp/gnus/mml.el (mml-minibuffer-read-description): Allow passing in a prefix (used by MH-E)

11 years agoHandle `parse-partial-sexp' landing inside a comment opener
Alan Mackenzie [Wed, 3 Apr 2013 17:50:39 +0000 (17:50 +0000)]
Handle `parse-partial-sexp' landing inside a comment opener
(Bug#13244). Also adapt to the new values of element 7 of a parse
state.

* progmodes/cc-engine.el (c-state-pp-to-literal): New optional
parameter `not-in-delimiter'.  Handle being inside comment opener.
(c-invalidate-state-cache-1): Reckon with an extra "invalid"
character in case we're typing a '*' after a '/'.
(c-literal-limits): Handle the awkward "not-in-delimiter" cond arm
instead by passing the parameter to c-state-pp-to-literal.

* progmodes/cc-fonts.el (c-font-lock-doc-comments): New handling
for elt. 7 of a parse state.

11 years agoSpelling fix.
Paul Eggert [Wed, 3 Apr 2013 17:07:50 +0000 (10:07 -0700)]
Spelling fix.

11 years ago* etc/themes/leuven-theme.el: Update theme.
Fabrice Niessen [Tue, 2 Apr 2013 03:33:31 +0000 (11:33 +0800)]
* etc/themes/leuven-theme.el: Update theme.

11 years agoPrefer < to > in range checks such as 0 <= i && i < N.
Paul Eggert [Tue, 2 Apr 2013 01:54:56 +0000 (18:54 -0700)]
Prefer < to > in range checks such as 0 <= i && i < N.

This makes it easier to visualize quantities on a number line.
This patch doesn't apply to all such range checks,
only to the range checks affected by the 2013-03-24 change.
This patch reverts most of the 2013-03-24 change.
* alloc.c (xpalloc, Fgarbage_collect):
* ccl.c (ccl_driver, resolve_symbol_ccl_program):
* character.c (string_escape_byte8):
* charset.c (read_hex):
* data.c (cons_to_unsigned):
* dispnew.c (update_frame_1):
* doc.c (Fsubstitute_command_keys):
* doprnt.c (doprnt):
* editfns.c (hi_time, decode_time_components):
* fileio.c (file_offset):
* fns.c (larger_vector, make_hash_table, Fmake_hash_table):
* font.c (font_intern_prop):
* frame.c (x_set_alpha):
* gtkutil.c (get_utf8_string):
* indent.c (check_display_width):
* keymap.c (Fkey_description):
* lisp.h (FIXNUM_OVERFLOW_P, vcopy):
* lread.c (read1):
* minibuf.c (read_minibuf_noninteractive):
* process.c (wait_reading_process_output):
* search.c (Freplace_match):
* window.c (get_phys_cursor_glyph):
* xdisp.c (redisplay_internal):
* xsmfns.c (smc_save_yourself_CB):
Prefer < to > for range checks.
* dispnew.c (sit_for): Don't mishandle NaNs.
This fixes a bug introduced in the 2013-03-24 change.
* editfns.c (decode_time_components): Don't hoist comparison.
This fixes another bug introduced in the 2013-03-24 change.

11 years agoUse UTF-8 for most files with non-ASCII characters.
Paul Eggert [Tue, 2 Apr 2013 01:18:40 +0000 (18:18 -0700)]
Use UTF-8 for most files with non-ASCII characters.

* admin/notes/unicode (etc/tutorials/TUTORIAL.ko, leim/quail/hanja.el)
(leim/quail/hanja3.el, leim/quail/symbol-ksc.el):
Now utf-8, not iso-2022-7bit.  Also, files that contain non-UTF-8
characters are now encoded in utf-8-emacs, not iso-2022-7bit.
* etc/tutorials/TUTORIAL.ko, tutorials/TUTORIAL.th:
Switch from iso-2022-7bit to utf-8.
* leim/quail/cyrillic.el, leim/quail/czech.el, leim/quail/ethiopic.el:
* leim/quail/greek.el, leim/quail/hanja.el, leim/quail/hanja3.el:
* leim/quail/hebrew.el, leim/quail/lao.el, leim/quail/lrt.el:
* leim/quail/slovak.el, leim/quail/symbol-ksc.el, leim/quail/thai.el:
* leim/quail/tibetan.el, leim/quail/viqr.el, leim/quail/vntelex.el:
* leim/quail/vnvni.el, leim/quail/welsh.el:
* lisp/international/latin1-disp.el, lisp/international/mule-util.el:
* lisp/language/cyril-util.el, lisp/language/european.el:
* lisp/language/ind-util.el, lisp/language/lao-util.el, lisp/language/thai.el:
* lisp/language/tibet-util.el, lisp/language/tibetan.el:
* lisp/language/viet-util.el:
Switch from iso-2022-7bit to utf-8 or (if needed) utf-8-emacs.

Fixes: debbugs:13936
11 years agognus-msg.el: Add nnir-article-* autoloads;
Andrew Cohen [Mon, 1 Apr 2013 22:54:32 +0000 (22:54 +0000)]
gnus-msg.el: Add nnir-article-* autoloads;
nnir.el: Improve mark updating in original groups

11 years ago* lisp/electric.el (electric-pair-inhibit-predicate): New var.
Stefan Monnier [Mon, 1 Apr 2013 13:28:19 +0000 (09:28 -0400)]
* lisp/electric.el (electric-pair-inhibit-predicate): New var.
(electric-pair-post-self-insert-function): Use it.
(electric-pair-default-inhibit): New function, extracted from
electric-pair-post-self-insert-function.

Fixes: debbugs:14000
11 years agoAuto-commit of loaddefs files.
Glenn Morris [Mon, 1 Apr 2013 10:21:03 +0000 (06:21 -0400)]
Auto-commit of loaddefs files.