]> git.eshelyaron.com Git - emacs.git/log
emacs.git
9 years agoFixes to compile cairo branch without cairo. old-branches/cairo
Jan D [Sat, 23 May 2015 10:27:56 +0000 (12:27 +0200)]
Fixes to compile cairo branch without cairo.

* src/gtkutil.c (xg_update_scrollbar_pos): x_clear_area takes frame as
first argument.

* src/xterm.c (handle_one_xevent): Surround x_cr_destroy_surface with
USE_CAIRO.

9 years agoMerge branch 'master' into cairo
Jan D [Sun, 17 May 2015 14:46:34 +0000 (16:46 +0200)]
Merge branch 'master' into cairo

9 years agoAdd comment that x_shift_glyphs_for_insert is never called.
Jan D [Sun, 17 May 2015 09:30:09 +0000 (11:30 +0200)]
Add comment that x_shift_glyphs_for_insert is never called.

* xterm.c (x_shift_glyphs_for_insert, x_redisplay_interface): Add
comment that this function is never called.

9 years ago* src/lisp.mk: Remove from repository and generate at build-time.
Glenn Morris [Sun, 17 May 2015 00:52:27 +0000 (17:52 -0700)]
* src/lisp.mk: Remove from repository and generate at build-time.

* src/Makefile.in (lisp.mk): New rule to generate from loadup.el.
(shortlisp_filter): New variable.
(emacs$(EXEEXT), $(etc)/DOC): Depend on lisp.mk.
(distclean): Remove lisp.mk.
* Makefile.in ($(MAKEFILE_NAME)): No longer depend on src/lisp.mk.
* lisp/loadup.el: Tweak layout to make it easier to parse.
* make-dist: Do not distribute src/lisp.mk.

9 years agoDisplay shorter dates in Git annotate output
Dmitry Gutov [Sat, 16 May 2015 23:45:51 +0000 (02:45 +0300)]
Display shorter dates in Git annotate output

* lisp/vc/vc-git.el (vc-git-annotate-command): Use the short date
format (when not overridden with vc-git-annotate-switches).
(vc-git-annotate-time): Support the short format, as well as ISO
8601 that has been used until now (bug#5428).

9 years agoASCIIfy curved quotes on displays lacking them
Paul Eggert [Sat, 16 May 2015 20:47:36 +0000 (13:47 -0700)]
ASCIIfy curved quotes on displays lacking them

* lisp/international/mule-cmds.el (set-locale-environment):
If curved quotes don't work, display straight ASCII approximations
(Bug#20545).

9 years agoSmall src/Makefile simplification.
Glenn Morris [Sat, 16 May 2015 20:15:20 +0000 (13:15 -0700)]
Small src/Makefile simplification.

* src/lisp.mk (shortlisp): Rename from lisp, remove $lispsource prefix.
* src/Makefile.in (lisp): Derive from shortlisp.
($(etc)/DOC): Use $shortlisp rather than parsing lisp.mk.

9 years ago* lisp/help-mode.el (help-go-forward): Doc fix.
Eli Zaretskii [Sat, 16 May 2015 14:34:13 +0000 (17:34 +0300)]
* lisp/help-mode.el (help-go-forward): Doc fix.

(Bug#20577)

9 years ago* doc/lispref/debugging.texi (Profiling): Improve indexing.
Eli Zaretskii [Sat, 16 May 2015 14:30:50 +0000 (17:30 +0300)]
* doc/lispref/debugging.texi (Profiling): Improve indexing.

(Bug#20576)

9 years agoUse `unless' to have one fewer `not'
Dmitry Gutov [Sat, 16 May 2015 14:11:33 +0000 (17:11 +0300)]
Use `unless' to have one fewer `not'

* lisp/vc/vc-git.el (vc-git-resolve-when-done): Use `unless' to
have one fewer `not'.

9 years agoRemove redundant :group declarations from vc-git.el
Dmitry Gutov [Sat, 16 May 2015 14:06:10 +0000 (17:06 +0300)]
Remove redundant :group declarations from vc-git.el

* lisp/vc/vc-git.el (vc-git-diff-switches)
(vc-git-annotate-switches, vc-git-resolve-conflicts)
(vc-git-program, vc-git-root-log-format): Remove the redundant
:group declarations.

9 years agoRemoves the predicate from lisp-complete-symbol (Bug#20456)
Nicolas Petton [Sat, 16 May 2015 13:53:44 +0000 (15:53 +0200)]
Removes the predicate from lisp-complete-symbol (Bug#20456)

* lisp/emacs-lisp/lisp.el (lisp-complete-symbol): Do not use predicate
and remove it from the docstring.

9 years agoAdd new option vc-git-resolve-conflicts
Dmitry Gutov [Sat, 16 May 2015 13:14:01 +0000 (16:14 +0300)]
Add new option vc-git-resolve-conflicts

* lisp/vc/vc-git.el (vc-git-resolve-conflicts): New variable.
(vc-git-find-file-hook): Add to after-save-hook only when the
above is non-nil.
(vc-git-resolve-when-done): Update to honor the new variable.
(Bug#20292)

9 years ago; * lisp/textmodes/ispell.el (ispell-aspell-find-dictionary): Add a comment.
Eli Zaretskii [Sat, 16 May 2015 09:41:02 +0000 (12:41 +0300)]
; * lisp/textmodes/ispell.el (ispell-aspell-find-dictionary): Add a comment.

9 years agoMerge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
Eli Zaretskii [Sat, 16 May 2015 09:33:12 +0000 (12:33 +0300)]
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs

9 years ago* lisp/emacs-lisp/tabulated-list.el: Don't error on nil header-string
Artur Malabarba [Sat, 16 May 2015 08:52:53 +0000 (09:52 +0100)]
* lisp/emacs-lisp/tabulated-list.el: Don't error on nil header-string

(tabulated-list-init-header): Document new behavior.
(tabulated-list-print-fake-header): No nothing if
`tabulated-list--header-string' is nil.
(tabulated-list--header-string): Add a docstring.

* doc/lispref/modes.texi (Tabulated List Mode): Document it.
* etc/NEWS: Document it.

9 years agoRevert "Fix cps--gensym"
Leo Liu [Sat, 16 May 2015 01:03:29 +0000 (09:03 +0800)]
Revert "Fix cps--gensym"

* lisp/emacs-lisp/generator.el (cps--gensym): Revert commit
  fbda511ab8069d0115eafca411a43353b85431b1 on 2015-05-14.

9 years ago; * lib-src/etags.c: Comment.
Glenn Morris [Sat, 16 May 2015 01:04:28 +0000 (21:04 -0400)]
; * lib-src/etags.c: Comment.

Ref: http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00342.html

9 years agoReplace AC_SUBST_FILE in configure with include in Makefiles.
Glenn Morris [Sat, 16 May 2015 00:51:45 +0000 (20:51 -0400)]
Replace AC_SUBST_FILE in configure with include in Makefiles.

* configure.ac (DEPDIR, MKDEPDIR, deps_frag, lwlib_deps_frag)
(oldxmenu_deps_frag, lisp_frag): Remove output variables/files.
(AUTO_DEPEND): New output variable.
* lwlib/Makefile.in (AUTO_DEPEND): New, set by configure.
(DEPFLAGS, MKDEPDIR): Set directly via conditional.
(lwlib_deps_frag): Replace by conditional include.
* lwlib/autodeps.mk: Remove file.
* oldXMenu/Makefile.in (AUTO_DEPEND): New, set by configure.
(DEPFLAGS, MKDEPDIR): Set directly via conditional.
(oldxmenu_deps_frag): Replace by conditional include.
* oldXMenu/autodeps.mk: Remove file.
* src/Makefile.in (AUTO_DEPEND): New, set by configure.
(DEPFLAGS, MKDEPDIR): Set directly via conditional.
(lisp_frag): Replace by an include.
(deps_frag): Replace by conditional include.
* src/autodeps.mk: Remove file.

9 years agoTweak japanese.el's loading of dependencies.
Glenn Morris [Fri, 15 May 2015 22:33:09 +0000 (18:33 -0400)]
Tweak japanese.el's loading of dependencies.

* lisp/loadup.el: Explicitly load cp51932 and eucjp-ms.
* lisp/language/japanese.el: Use require rather than load.
* lisp/international/cp51932.el, lisp/international/eucjp-ms.el:
Provide a feature.
* admin/charsets/eucjp-ms.awk, admin/charsets/cp51932.awk:
Provide a feature in the generated file.

9 years agoFix NS warnings.
Jan D [Fri, 15 May 2015 15:06:03 +0000 (17:06 +0200)]
Fix NS warnings.

* nsmenu.m (ns_popup_dialog)
* nsimage.m (initFromXBM:width:height:fg:bg:)
* nsfns.m (Fx_create_frame): Remove unused variables.
(Fns_read_file_name): Initialize fname, remove ret.

* nsterm.m (ns_draw_window_cursor): Handle DEFAULT_CURSOR in switch.
(ns_get_color, ns_set_horizontal_scroll_bar, keyDown): Remove unused
variable.
(init): Add parantesis in if.
(ns_create_terminal): Assign set_horizontal_scroll_bar_hook.

9 years agoFix a enum conversion warning in macfont.m
Jan Djärv [Fri, 15 May 2015 14:50:01 +0000 (16:50 +0200)]
Fix a enum conversion warning in macfont.m

* src/macfont.h (CharacterCollection): Typedef to NSCharacterCollection.
(MAC_CHARACTER_COLLECTION_*): Use the NS variants.

9 years agoSupport de-alt dictionary with Aspell.
Eli Zaretskii [Fri, 15 May 2015 14:24:06 +0000 (17:24 +0300)]
Support de-alt dictionary with Aspell.

* lisp/textmodes/ispell.el (ispell-aspell-find-dictionary):
Support Aspell dictionaries with names like "de-alt".  (Bug#20581)

9 years agocus-start.el: Add ns-confirm-quit.
Jan Djärv [Fri, 15 May 2015 14:23:29 +0000 (16:23 +0200)]
cus-start.el: Add ns-confirm-quit.

* cus-start.el: Add ns-confirm-quit.

9 years agoFix warnings on OSX 10.10.
Jan Djärv [Fri, 15 May 2015 14:21:59 +0000 (16:21 +0200)]
Fix warnings on OSX 10.10.

* nsfns.m (MODAL_OK_RESPONSE): New define for different OSX versions.
(Fns_read_file_name): Check against MODAL_OK_RESPONSE.
(compute_tip_xy): Use convertRectToScreen for OSX >= 10.7

* nsmenu.m (initWithContentRect:styleMask:backing:defer:)
* nsimage.m (allocInitFromFile, setPixmapData): Only call
setScalesWhenResized for OSX < 10.6.

* nsterm.h (EmacsScroller): Declare scrollerWidth.

* nsterm.m (ns_copy_bits): New function that does not use deprecated
NSCopyBits.
(ns_scroll_run, ns_shift_glyphs_for_insert): Call ns_copy_bits.
(runAlertPanel): New function.
(applicationShouldTerminate:): Call runAlertPanel.
(initFrameFromEmacs, toggleFullScreen:): Only call useOptimizedDrawing
for OSX < 10.10.
(initFrameFromEmacs:): Only call allocateGState for OSX < 10.10.
(windowWillUseStandardFrame:defaultFrame:): Cast arg to abs to int.
(draggingEntered:): Returns NSDragOperation.
(scrollerWidth): Use scrollerWidthForControlSize for OSX >= 10.7.

9 years ago* lisp/emacs-lisp/package.el: Don't ensure-init during startup
Artur Malabarba [Fri, 15 May 2015 09:54:48 +0000 (10:54 +0100)]
* lisp/emacs-lisp/package.el: Don't ensure-init during startup

(package--init-file-ensured): New variable.
(package-initialize, package--ensure-init-file): Use it.

9 years agoHonor :fore/background for XBM on NS (Bug#14969).
Jan Djärv [Fri, 15 May 2015 09:31:38 +0000 (11:31 +0200)]
Honor :fore/background for XBM on NS (Bug#14969).

* nsterm.h (EmacsImage): Add xbm_fg, remove initFromSkipXBM,
initFromXBM takes bg, fg args, remove flip arg.
(ns_image_from_XBM): Add bg, fg args.
* image.c (x_create_bitmap_from_data)
(Create_Pixmap_From_Bitmap_Data): ns_image_from_XBM takes bg, fg args.

* nsimage.m (ns_image_from_XBM): Add fg, bg args, pass to initFromXBM.
Remove flip arg.
(initFromSkipXBM): Move code to initFromXBM.
(initFromXBM): Actually set fg and bg, instead of playing alpha games.
Use fg, bg from args (Bug#14969).  Remove if (length) section, was always
false.
Remove bit flipping (bitPat, swt), generated incorrect images when
width/height wasn't a multiple of 8.
(setXBMColor:): Modify planes by comparing to saved xbm_fg.

* nsterm.m (ns_draw_fringe_bitmap): initFromXBM takes fg, bg args, remove
flip arg.

9 years ago* lisp/emacs-lisp/package.el: Be more careful with the init file
Artur Malabarba [Fri, 15 May 2015 09:17:48 +0000 (10:17 +0100)]
* lisp/emacs-lisp/package.el: Be more careful with the init file

(package--ensure-init-file): Check that user-init-file is set,
exists, is readable, and is writable.  (Bug#20584)
Also expand the docstring.

9 years agoSync with upstream verilog-mode revision 6232468
Wilson Snyder [Fri, 15 May 2015 01:37:32 +0000 (21:37 -0400)]
Sync with upstream verilog-mode revision 6232468

* lisp/progmodes/verilog-mode.el (verilog-font-lock-grouping-keywords-face)
(verilog-highlight-grouping-keywords): Fix use of face when
`verilog-highlight-grouping-keywords' set.  Reported by Jeff
Pompa.
(verilog-auto-reset): Fix AUTORESET to ignore member resets if
parent is reset, bug906. Reported by Ken Schmidt.
(verilog-auto-inout-module): Add fourth regexp argument to
AUTOINOUTMODULE and AUTOINOUTCOMP for signals to not match,
bug856. Reported by John Tillema.
(verilog-auto-inst-port): Fix AUTOINST interfaces to not show
modport if signal attachment is itself a modport.  Reported by
Matthew Lovell.
(verilog-auto-reset, verilog-auto-sense-sigs): Fix AUTORESET with
always_comb and always_latch, bug844.  Reported by Greg Hilton.
(verilog-at-constraint-p, verilog-beg-of-statement-1): Fix hanging
with many curly-bracket pairs, bug663.
(verilog-set-auto-endcomments): Fix end comments for functions of
type void, etc.  Reported by Alex Reed.
(verilog-do-indent): Fix electric tab deleting form-feeds.  Note
caused by indent-line-to deleting tabls pre 24.5.
(verilog-nameable-item-re): Fix nameable items that can have an
end-identifier to include endchecker, endgroup, endprogram,
endproperty, and endsequence.  Reported by Alex Reed.
(verilog-label-be): When auto-commenting a buffer, consider
auto-comments on all known keywords (not just a subset thereof).
Reported by Alex Reed.
(verilog-auto-end-comment-lines-re)
(verilog-end-block-ordered-re, verilog-set-auto-endcomments):
Automatically comment property/endproperty blocks to match other
similar blocks like sequence/endsequence, function/endfunction,
etc. Reported by Alex Reed.
(verilog-set-auto-endcomments): Detect the function- or task-name
when auto-commenting blocks that lack an explicit
portlist. Reported by Alex Reed.
(verilog-auto, verilog-auto-insert-last): Add AUTOINSERTLAST to
allow post-AUTO user fixups, bug826. Reported by Dennis
Muhlestein.
(verilog-no-indent-begin-re): When `verilog-indent-begin-after-if'
is nil, fix indenting initial/final to match always statements,
bug825. Reported by Tim Clapp.
(verilog-extended-complete-re): Fix indentation of DPI-C imports
with c_identifiers, and DPI-C imports, bug557. Reported by ZeDong
Mao and Jason Forkey.
(verilog-read-decls): Fix parsing typed interfaces.  Fix
AUTOINOUTMODPORT missing types.  Reported by Stephan Bourduas.
Fix localparam not being ignored in AUTOINSTPARAM,
bug889. Reported by Shannon Hill.
(verilog-auto-output-every): Add regexp to AUTOOUTPUTEVERY,
bug793.  Reported by Pierre-David Pfister.
(verilog-auto-arg-format, verilog-auto-arg-ports): Add
verilog-auto-arg-format to support newlines in AUTOARG. Reported
by Jie Xiao.
(verilog-batch-execute-func): Do not batch re-auto files loaded by
Local Variables. Fix printing "no changes to be saved" with
verilog-batch. Reported by Dan Dever.
(verilog-auto-inout-module): Fix AUTOINOUTMODULE not inserting
interface-only modules, bug721.  Reported by Dean Hoyt.

Author: Alex Reed <acreed4@gmail.com>
* lisp/progmodes/verilog-mode.el (verilog-beg-of-statement): Don't
treat '<keyword>:<identifier>' as the start of a labeled
statement, bug905.  Reported by Enzo Chi.
(verilog-directive-re, verilog-compiler-directives)
(verilog-keywords): Match full set of IEEE 2012-1800 compiler
directives (plus some extras) when determining indentation, bug
901.  Reported by Bernd Beuster.
(verilog-at-constraint-p): Fix indentation of coverpoint bins if
iff expression doesn't start with word-character, bug900.
(verilog-optional-signed-range-re, verilog-optional-signed-re):
Fix incorrect indentation/alignment of unsigned declarations,
bug897.
(verilog-looking-back, verilog-in-attribute-p): Fix labling of
always constructs, bug895.
(verilog-calc-1): Fix verilog-mode constraint indentation,
bug324. Reported by Eric Mastromarchi.
(verilog-beg-of-statement): Fix indenting for some forms of
constraintsm bug433.  Reported by Brad Parker.  Fix indentation of
continued assignment incorrect if first line ends with ']',
bug437. Reported by Dan Dever.  Fix indention of cover inside an
ifdef, bug 862. Reported by Bernd Beuster Fix labeling do-while
blocks, bug842.
(verilog-preprocessor-re): Fix fork/end UNMATCHED warning,
bug859. Reported by Kaushal Modi.
(verilog-set-auto-endcomments): Fix endlabel end comments, bug888.
(verilog-backward-token): Fix indenting sensitivity lists with
named events, bug840.  Reed.
(verilog-no-indent-begin-re): Fix `verilog-indent-begin-after-if'
nil not honoring 'forever', 'foreach', and 'do' keywords.

9 years agoCheck for invalid GTK+ monitor scales
Paul Eggert [Thu, 14 May 2015 16:21:56 +0000 (09:21 -0700)]
Check for invalid GTK+ monitor scales

* src/gtkutil.c (xg_get_gdk_scale): Return 1 for invalid scales,
INT_MAX for too-large scales.  All callers changed to assume the
result is valid (Bug#20432).
(xg_frame_set_char_size, xg_update_scrollbar_pos):
Calculate scale only if needed.

show ASCII approximations instead.

9 years agoFix daemon crashes when linum-mode is turned on early on
Eli Zaretskii [Thu, 14 May 2015 15:48:38 +0000 (18:48 +0300)]
Fix daemon crashes when linum-mode is turned on early on

* src/window.c (Fwindow_end): Don't try calling display engine
functions on initial-frame frame.  (Bug#20565)

9 years ago; Remove etags test files whose copyright is incompatible
Eli Zaretskii [Thu, 14 May 2015 15:35:13 +0000 (18:35 +0300)]
; Remove etags test files whose copyright is incompatible

9 years agoFix selective diff browsing in Ediff
Eli Zaretskii [Thu, 14 May 2015 15:24:19 +0000 (18:24 +0300)]
Fix selective diff browsing in Ediff

* lisp/vc/ediff-util.el (ediff-focus-on-regexp-matches): Go to the
beginning of the region before searching for the
ediff-regexp-focus-* regexps.  (Bug#20568)

9 years agoFixes Bug#20142.
Jan D [Thu, 14 May 2015 15:16:46 +0000 (17:16 +0200)]
Fixes Bug#20142.

* gtkutil.c (delete_cb): Don't send delete event here, it does arrive
in the main loop, even for Gtk 3 (Bug#20142).

9 years agoDon't access display after i/o error (Bug#19147).
Jan D [Thu, 14 May 2015 14:21:02 +0000 (16:21 +0200)]
Don't access display after i/o error (Bug#19147).

* xterm.c (x_connection_closed): Add third arg ioerror.
If ioerror, set display to 0 (Bug#19147).
(x_error_quitter): Call x_connection_closed with third arg false.
(x_io_error_quitter): Call x_connection_closed with third arg true.

9 years agoHandle GTK_SCALE, fixes Bug#20432.
Jan D [Thu, 14 May 2015 11:24:53 +0000 (13:24 +0200)]
Handle GTK_SCALE, fixes Bug#20432.

* gtkutil.c (xg_get_gdk_scale): New function.
(xg_frame_set_char_size)
(x_wm_set_size_hint, xg_get_default_scrollbar_width)
(xg_get_default_scrollbar_height)
(xg_update_horizontal_scrollbar_pos): Take GTK_SCALE in to account
when setting sizes (Bug#20432).

9 years agoFix cps--gensym
Leo Liu [Thu, 14 May 2015 03:18:54 +0000 (11:18 +0800)]
Fix cps--gensym

* lisp/emacs-lisp/generator.el (cps--gensym): Fix.

9 years agoFix bootstrap (void function cl-member).
Glenn Morris [Wed, 13 May 2015 23:02:31 +0000 (19:02 -0400)]
Fix bootstrap (void function cl-member).

* lisp/emacs-lisp/cl-lib.el: Load cl-seq if no cl-loaddefs file.
* lisp/emacs-lisp/cl-seq.el: Provide a feature.

9 years ago* lisp/loadup.el ("emacs-lisp/cl-generic"): Preload
Stefan Monnier [Wed, 13 May 2015 22:39:49 +0000 (18:39 -0400)]
* lisp/loadup.el ("emacs-lisp/cl-generic"): Preload

* src/lisp.mk (lisp): Add emacs-lisp/cl-generic.elc.
* lisp/emacs-lisp/cl-generic.el (cl-generic-define-method):
Avoid defalias for closures which are not immutable.
(cl--generic-prefill-dispatchers): New macro.  Use it to prefill the
dispatchers table with various entries.

* lisp/emacs-lisp/ert.el (emacs-lisp-mode-hook):
* lisp/emacs-lisp/seq.el (emacs-lisp-mode-hook): Use add-hook.

9 years agoImprove tagging of C bindings in DEFVAR_*
Eli Zaretskii [Wed, 13 May 2015 17:26:07 +0000 (20:26 +0300)]
Improve tagging of C bindings in DEFVAR_*

* src/Makefile.in (TAGS): Add --regex options to tag the C binding
from DEFVAR_*.

9 years ago; * etc/NEWS: Small edit.
Glenn Morris [Wed, 13 May 2015 16:38:05 +0000 (12:38 -0400)]
; * etc/NEWS: Small edit.

9 years ago* src/editfns.c (Fformat): Fix use-after-free bug (Bug#20548).
Paul Eggert [Wed, 13 May 2015 06:44:39 +0000 (23:44 -0700)]
* src/editfns.c (Fformat): Fix use-after-free bug (Bug#20548).

9 years ago* lisp/progmodes/tcl.el (tcl-filter):
Glenn Morris [Wed, 13 May 2015 01:19:38 +0000 (21:19 -0400)]
* lisp/progmodes/tcl.el (tcl-filter):

Handle comint-prompt-read-only like gud.el does.  (Bug#20549)

9 years agoAdd basic VC push support.
Glenn Morris [Wed, 13 May 2015 00:42:42 +0000 (20:42 -0400)]
Add basic VC push support.

* lisp/vc/vc.el (vc-push): New autoloaded command.
* lisp/vc/vc-hooks.el (vc-prefix-map, vc-menu-map): Add vc-push.
* lisp/vc/vc-bzr.el (vc-bzr--pushpull): New, factored from vc-bzr-pull.
(vc-bzr-pull): Reimplement using vc-bzr--pushpull.
(vc-bzr-push): New.
* lisp/vc/vc-git.el (vc-git--pushpull): New, factored from vc-git-pull.
(vc-git-pull): Reimplement using vc-git--pushpull.
(vc-git-push): New.
* lisp/vc/vc-hg.el (vc-hg--pushpull): New, factored from vc-hg-pull.
(vc-hg-pull, vc-hg-push): Reimplement using vc-hg--pushpull.
* doc/emacs/maintaining.texi (Pulling / Pushing):
Rename from "VC Pull".  Mention pushing.
(VC With A Merging VCS, VC Change Log): Update xrefs.
(Branches): Update menu.
* doc/emacs/emacs.texi: Update menu.
* etc/NEWS: Mention this.

9 years agoImprove the seq pcase pattern and the `seq-let' macro
Nicolas Petton [Tue, 12 May 2015 19:57:18 +0000 (21:57 +0200)]
Improve the seq pcase pattern and the `seq-let' macro

* lisp/emacs-lisp/seq.el: The pcase pattern now matches only if the
object is a sequence, and binds each element of ARGS to the
corresponding element of the sequence.

9 years agoFix tags created from DEFVAR_* declarations in C
Eli Zaretskii [Tue, 12 May 2015 19:55:13 +0000 (22:55 +0300)]
Fix tags created from DEFVAR_* declarations in C

* src/Makefile.in (TAGS): Improve the --regex argument to etags,
to make tags extracted from DEFVAR_* declarations more accurate.

9 years agoAdd a test suite for etags
Eli Zaretskii [Tue, 12 May 2015 17:05:52 +0000 (20:05 +0300)]
Add a test suite for etags

* test/etags/: New test suite, adapted from
http://fly.isti.cnr.it/pub/software/unix/etags-regression-test.tar.bz2,
whose original author is Francesco Potortì <pot@gnu.org>.

9 years agoFix tagging of symbols in C enumerations
Eli Zaretskii [Tue, 12 May 2015 16:35:54 +0000 (19:35 +0300)]
Fix tagging of symbols in C enumerations

* lib-src/etags.c (consider_token): Don't tag symbols in
expressions that assign values to enum constants.  See
http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00291.html
for details.
(C_entries): Reset fvdef to fvnone after processing a preprocessor
conditional and after a comma outside of parentheses.

9 years ago* lisp/url/url-handlers.el (url-file-name-completion)
Glenn Morris [Tue, 12 May 2015 06:51:58 +0000 (23:51 -0700)]
* lisp/url/url-handlers.el (url-file-name-completion)

(url-file-name-all-completions): Silence compiler.

9 years ago* lisp/emacs-lisp/chart.el (chart-axis-draw): Replace obsolete alias.
Glenn Morris [Tue, 12 May 2015 06:50:08 +0000 (23:50 -0700)]
* lisp/emacs-lisp/chart.el (chart-axis-draw): Replace obsolete alias.

9 years ago* lisp/play/dunnet.el (dun-dos-boot-msg): Fix time. (Bug#20554)
Glenn Morris [Tue, 12 May 2015 06:46:40 +0000 (23:46 -0700)]
* lisp/play/dunnet.el (dun-dos-boot-msg): Fix time.  (Bug#20554)

9 years ago* lisp/emacs-lisp/cl-generic.el: Add dispatch on &context arguments
Stefan Monnier [Tue, 12 May 2015 04:10:38 +0000 (00:10 -0400)]
* lisp/emacs-lisp/cl-generic.el: Add dispatch on &context arguments

(cl--generic-mandatory-args): Remove.
(cl--generic-split-args): New function.
(cl-generic-define, cl--generic-lambda): Use it.
(cl-generic-define-method): Use it as well, and add support for
context args.
(cl--generic-get-dispatcher): Handle &context dispatch.
(cl--generic-cache-miss): `dispatch-arg' can now be a context expression.
(cl--generic-dispatchers): Pre-fill.

* test/automated/cl-generic-tests.el (sm-generic-test-12-context): New test.

9 years ago* make-dist: Abort if "make ChangeLog" fails. Add "--no-changelog".
Glenn Morris [Tue, 12 May 2015 00:29:06 +0000 (20:29 -0400)]
* make-dist: Abort if "make ChangeLog" fails.  Add "--no-changelog".

9 years ago* lisp/term/xterm.el: Fix xterm-paste handling for rxvt
Stefan Monnier [Mon, 11 May 2015 21:23:36 +0000 (17:23 -0400)]
* lisp/term/xterm.el: Fix xterm-paste handling for rxvt

* lisp/term/rxvt.el: Require term/xterm.
(rxvt-function-map): Use xterm-rxvt-function-map.
(rxvt-standard-colors): Move before first use.
(terminal-init-rxvt): Use xterm--push-map and xterm-register-default-colors.
(rxvt-rgb-convert-to-16bit, rxvt-register-default-colors): Remove.

* lisp/term/xterm.el (xterm-rxvt-function-map): New var.
Move shared bindings between rxvt and xterm to it.
(xterm-function-map): Use it.  Move the xterm-paste binding to
xterm-rxvt-function-map (bug#20444).
(xterm-standard-colors): Move before first use.
(xterm--push-map): New function.
(xterm-register-default-colors): Take standard colors as argument.
(terminal-init-xterm): Use it.  Adjust call to
xterm-register-default-colors.

9 years ago* lisp/term/x-win.el: Quieten --without-x compilation.
Glenn Morris [Mon, 11 May 2015 06:34:45 +0000 (23:34 -0700)]
* lisp/term/x-win.el: Quieten --without-x compilation.

(x-own-selection-internal, x-disown-selection-internal)
(x-selection-owner-p, x-selection-exists-p, x-get-selection-internal):
Declare.

9 years ago* Makefile.in (emacslog): Remove srcdir.
Glenn Morris [Mon, 11 May 2015 06:22:08 +0000 (23:22 -0700)]
* Makefile.in (emacslog): Remove srcdir.

(ChangeLog): Update for the above.

9 years agoSpelling fix
Paul Eggert [Mon, 11 May 2015 05:54:38 +0000 (22:54 -0700)]
Spelling fix

9 years agopython.el: better limit for looking-back calls
Fabián Ezequiel Gallina [Mon, 11 May 2015 03:03:08 +0000 (00:03 -0300)]
python.el: better limit for looking-back calls

* lisp/progmodes/python.el (python-shell-accept-process-output):
Use last comint prompt start as limit for looking-back.

9 years agoCEDET (srecode-insert-fcn): Fix use of oref on a class
Stefan Monnier [Mon, 11 May 2015 02:15:12 +0000 (22:15 -0400)]
CEDET (srecode-insert-fcn): Fix use of oref on a class

* lisp/cedet/srecode/insert.el (srecode-insert-fcn): Fix use of oref on
a class.  Reported by Pierre Lorenzon.
(srecode-template-inserter-point): Remove declaration.

9 years agoCEDET (srecode-create-dictionary): Avoid obsolete object name
Stefan Monnier [Mon, 11 May 2015 02:08:07 +0000 (22:08 -0400)]
CEDET (srecode-create-dictionary): Avoid obsolete object name

* lisp/cedet/srecode/dictionary.el (srecode-create-dictionary):
Don't use a symbol as an object name.  Reported by Pierre Lorenzon.

9 years agoC-x 8 shorthands for curved quotes, Euro, etc.
Paul Eggert [Mon, 11 May 2015 00:24:05 +0000 (17:24 -0700)]
C-x 8 shorthands for curved quotes, Euro, etc.

Although C-x 8 lets you insert arbitrary Unicode characters,
it's awkward to use this to insert commonly used symbols such as curved
quotes, the Euro symbol, etc.  This patch adds simpler sequences for
characters commonly found in English text and in basic math.
For example, assuming the Alt key works on your keyboard and iso-transl
is loaded, one can now type "A-[" instead of "A-RET LEFT SIN TAB RET"
to get the character "‘" (U+2018 LEFT SINGLE QUOTATION MARK).
(Bug#20499)
* doc/emacs/mule.texi (Unibyte Mode):
A few other printing characters now work too.
* etc/NEWS: Document this.
* lisp/international/iso-transl.el (iso-transl-char-map):
Also support the following characters:
‐ ‑ ‒ – — ― ‘ ’ “ ” † ‡ • ′ ″ € № ← → ↔ − ≈ ≠ ≤ ≥

9 years agoAdd xref-find-regexp
Dmitry Gutov [Sun, 10 May 2015 23:07:27 +0000 (02:07 +0300)]
Add xref-find-regexp

* lisp/progmodes/xref.el (xref-find-function): Describe the
`matches' action.
(xref-find-regexp): New command, using it.
(xref-collect-references): Rename to xref-collect-matches.
(xref--collect-reference): Rename to xref--collect-match.
(xref-collect-matches, xref--collect-match): Accept new argument,
KIND.  Update accordingly.
(xref--regexp-to-extended): New function.

* lisp/progmodes/elisp-mode.el (elisp-xref-find): Support the
`matches' action.
(elisp--xref-find-matches): Accept new argument.  Resolve a FIXME.

* lisp/progmodes/etags.el (etags-xref-find):
Support the `matches' action.
(etags--xref-find-matches): New function.

9 years ago* Makefile.in: Fixes for recent change-history changes.
Glenn Morris [Sun, 10 May 2015 19:01:39 +0000 (12:01 -0700)]
* Makefile.in: Fixes for recent change-history changes.

(change-history-nocommit): Update footer regexp.
Ensure output script stays executable.

9 years agoNew version of `seq-let' based on a pcase pattern
Nicolas Petton [Sun, 10 May 2015 18:19:38 +0000 (20:19 +0200)]
New version of `seq-let' based on a pcase pattern

* lisp/emacs-lisp/seq.el (seq-let): Define the macro in terms of a
pcase pattern if `pcase-defmacro' is defined (Emacs>=25.1).

9 years agoAdd basic HTML5 tags and a template
Przemysław Wojnowski [Tue, 28 Apr 2015 17:10:01 +0000 (19:10 +0200)]
Add basic HTML5 tags and a template

* lisp/textmodes/sgml-mode.el: Basic HTML5 support.
(html-tag-alist): Add HTML5 tags.
(html-tag-help): Add new tags descriptions.
(html-navigational-links): Template for nav links.
(html-html5-template): Template for a HTML5 page.

9 years agosemantic/symref/grep: Don't use word boundaries
Dmitry Gutov [Sun, 10 May 2015 17:43:54 +0000 (20:43 +0300)]
semantic/symref/grep: Don't use word boundaries

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-perform-search): Instead of wrapping input in
word boundaries, check that the characters before and after are
not word constituents.

9 years agosemantic/symref/grep: Support regexp search
Dmitry Gutov [Sun, 10 May 2015 14:27:16 +0000 (17:27 +0300)]
semantic/symref/grep: Support regexp search

* lisp/cedet/semantic/symref.el
(semantic-symref-hit-to-tag-via-buffer): Don't regexp-quote when
the search type is regexp.

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-perform-search): Support the regexp search type.
Pass -E to Grep when it's used.

9 years agosemantic-symref-regexp: Allow to input an arbitrary string
Dmitry Gutov [Sun, 10 May 2015 00:49:11 +0000 (03:49 +0300)]
semantic-symref-regexp: Allow to input an arbitrary string

* lisp/cedet/semantic/symref/list.el (semantic-symref-regexp):
Allow to input an arbitrary string interactively.

9 years agoRemove tag-symbol-match-p from etags-xref-find-definitions-tag-order
Dmitry Gutov [Sat, 9 May 2015 21:36:46 +0000 (00:36 +0300)]
Remove tag-symbol-match-p from etags-xref-find-definitions-tag-order

* lisp/progmodes/etags.el (etags-xref-find-definitions-tag-order):
Remove tag-symbol-match-p from the default value
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00292.html).

9 years agoDeclare find-tag obsolete
Dmitry Gutov [Fri, 8 May 2015 00:06:42 +0000 (03:06 +0300)]
Declare find-tag obsolete

* lisp/progmodes/etags.el (find-tag): Declare obsolete in favor of
xref-find-definitions.

9 years agoDraw composite string correctly (Bug#20537).
Jan D [Sun, 10 May 2015 17:30:39 +0000 (19:30 +0200)]
Draw composite string correctly (Bug#20537).

* nsterm.m (ns_draw_composite_glyph_string_foreground): New function.
(ns_draw_glyph_string): Call it (Bug#20537).

9 years ago; Auto-commit of ChangeLog files.
Glenn Morris [Sun, 10 May 2015 10:24:00 +0000 (06:24 -0400)]
; Auto-commit of ChangeLog files.

9 years agoAvoid infloop in ERC
Eli Zaretskii [Sat, 9 May 2015 13:06:48 +0000 (16:06 +0300)]
Avoid infloop in ERC

* lisp/simple.el (line-move-to-column): Ignore field boundaries
while computing line beginning position.  (Bug#20498)

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Sat, 9 May 2015 10:24:38 +0000 (06:24 -0400)]
; Auto-commit of loaddefs files.

9 years ago* Makefile.in (ChangeLog): No longer pass "srcprefix"; cd instead.
Glenn Morris [Sat, 9 May 2015 01:34:35 +0000 (21:34 -0400)]
* Makefile.in (ChangeLog): No longer pass "srcprefix"; cd instead.

* build-aux/gitlog-to-emacslog: Check called from right directory.
(srcprefix): Remove.

9 years ago* build-aux/gitlog-to-emacslog: Get rid of "distprefix".
Glenn Morris [Sat, 9 May 2015 01:15:48 +0000 (21:15 -0400)]
* build-aux/gitlog-to-emacslog: Get rid of "distprefix".

* Makefile.in (ChangeLog): No longer pass "distprefix".
* make-dist: Update "make ChangeLog" syntax for the above change.

9 years ago* build-aux/gitlog-to-emacslog: Don't hard-code "ChangeLog.2".
Glenn Morris [Sat, 9 May 2015 01:02:36 +0000 (21:02 -0400)]
* build-aux/gitlog-to-emacslog: Don't hard-code "ChangeLog.2".

* Makefile.in (ChangeLog): Pass -n to gitlog-to-emacslog.

9 years ago* build-aux/gitlog-to-emacslog: Add "for earlier changes" to footer.
Glenn Morris [Sat, 9 May 2015 00:55:41 +0000 (20:55 -0400)]
* build-aux/gitlog-to-emacslog: Add "for earlier changes" to footer.

9 years agoAdd command-line option-parsing to gitlog-to-emacslog.
Glenn Morris [Sat, 9 May 2015 00:45:22 +0000 (20:45 -0400)]
Add command-line option-parsing to gitlog-to-emacslog.

* build-aux/gitlog-to-emacslog: Add command-line options.
By default, refuse to remove an existing output file.
* Makefile.in (CHANGELOG): Update default.
(ChangeLog): Do not test for existing file.
(change-history-nocommit): Ensure temp file does not exist.

9 years agoQuieten --without-x compilation.
Glenn Morris [Sat, 9 May 2015 00:24:37 +0000 (20:24 -0400)]
Quieten --without-x compilation.

* lisp/term/common-win.el: Provide a feature.
* lisp/term/x-win.el (term/common-win): Require it.

9 years ago* lisp/dired-aux.el (dired-do-print): Require lpr.
Glenn Morris [Sat, 9 May 2015 00:14:42 +0000 (20:14 -0400)]
* lisp/dired-aux.el (dired-do-print): Require lpr.

9 years agoQuieten compilation, eg in --without-x builds.
Glenn Morris [Sat, 9 May 2015 00:13:47 +0000 (20:13 -0400)]
Quieten compilation, eg in --without-x builds.

* lisp/dired-aux.el (lpr-printer-switch):
* lisp/frame.el (tool-bar-height):
* lisp/linum.el (font-info):
* lisp/window.el (font-info, overflow-newline-into-fringe)
(tool-bar-height):
* lisp/emacs-lisp/package-x.el (tar-data-buffer):
* lisp/gnus/gnus-util.el (iswitchb-mode):
* lisp/mail/rmailmm.el (libxml-parse-html-region):
* lisp/net/nsm.el (gnutls-peer-status)
(gnutls-peer-status-warning-describe):
* lisp/net/shr.el (libxml-parse-xml-region):
* lisp/url/url-http.el (gnutls-peer-status): Declare.

9 years agoCEDET (srecode-pop, srecode-peek): Don't use `subclass'
Stefan Monnier [Fri, 8 May 2015 17:28:57 +0000 (13:28 -0400)]
CEDET (srecode-pop, srecode-peek): Don't use `subclass'

* lisp/cedet/srecode/insert.el (srecode-pop, srecode-peek): Don't use
`subclass' since they're never called with a class.
(srecode-insert-method, srecode-insert-subtemplate): Avoid obsolete
srecode-dictionary-child-p.

9 years agohelp--binding-locus: Document argument POSITION.
Nicolas Richard [Fri, 8 May 2015 15:26:20 +0000 (17:26 +0200)]
help--binding-locus: Document argument POSITION.

* lisp/help.el (help--binding-locus): Document argument POSITION. (bug#20530)

9 years agoMerge from gnulib.
Paul Eggert [Fri, 8 May 2015 15:05:25 +0000 (08:05 -0700)]
Merge from gnulib.

* doc/misc/texinfo.tex: Get latest version.

9 years agoffap.el (ffap-read-file-or-url): Fix completing-read call
Oleh Krehel [Fri, 8 May 2015 14:43:21 +0000 (16:43 +0200)]
ffap.el (ffap-read-file-or-url): Fix completing-read call

* lisp/ffap.el (ffap-read-file-or-url): The HIST argument of
  `completing-read' should be a symbol.

9 years ago; Auto-commit of loaddefs files.
Glenn Morris [Fri, 8 May 2015 10:22:25 +0000 (06:22 -0400)]
; Auto-commit of loaddefs files.

9 years agoVerify file modifications by other programs
Eli Zaretskii [Fri, 8 May 2015 09:20:16 +0000 (12:20 +0300)]
Verify file modifications by other programs

* src/filelock.c (lock_file): Check whether the file was modified
since it was visited even if 'create-lockfiles' is nil.  (Bug#18828)

9 years agoFix keyboard macros that include function keys
Eli Zaretskii [Fri, 8 May 2015 09:11:05 +0000 (12:11 +0300)]
Fix keyboard macros that include function keys

* src/keyboard.c (read_char_minibuf_menu_prompt): Record function
keys in the macro before returning.  (Bug#20454)

9 years ago* build-aux/gitlog-to-changelog: Treat "Tiny-change" like
Glenn Morris [Fri, 8 May 2015 06:10:57 +0000 (23:10 -0700)]
* build-aux/gitlog-to-changelog: Treat "Tiny-change" like

"Copyright-paperwork-exempt".  (Bug#20324)

9 years ago* lisp/vc/log-edit.el: Handle "(tiny change)". (Bug#20324)
Glenn Morris [Fri, 8 May 2015 06:03:02 +0000 (23:03 -0700)]
* lisp/vc/log-edit.el: Handle "(tiny change)".  (Bug#20324)
(log-edit-rewrite-tiny-change): New variable.
(log-edit-insert-changelog): Maybe add "Copyright-paperwork-exempt".
(log-edit-changelog-ours-p): Set log-edit-author to a cons.
* etc/NEWS: Mention this.

9 years ago* lisp/calc/calc.el (math-zerop): Declare.
Glenn Morris [Fri, 8 May 2015 05:42:37 +0000 (22:42 -0700)]
* lisp/calc/calc.el (math-zerop): Declare.

9 years ago* lisp/emacs-lisp/eieio-opt.el (help-fns-short-filename): Declare.
Glenn Morris [Fri, 8 May 2015 05:42:12 +0000 (22:42 -0700)]
* lisp/emacs-lisp/eieio-opt.el (help-fns-short-filename): Declare.

9 years ago* lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec
Artur Malabarba [Thu, 7 May 2015 20:13:29 +0000 (21:13 +0100)]
* lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec

Support the case when BINDINGS is a single tuple.  (Bug#20525)

9 years ago* etc/NEWS: Fix typo in commit 14bb519
Artur Malabarba [Thu, 7 May 2015 19:32:24 +0000 (20:32 +0100)]
* etc/NEWS: Fix typo in commit 14bb519

9 years agoWarn for multiple display crash for all Gtk+ versions.
Jan D [Thu, 7 May 2015 18:09:16 +0000 (20:09 +0200)]
Warn for multiple display crash for all Gtk+ versions.

* configure.ac: Warn for multiple display crash for all Gtk+
versions.  Output URL to Gtk+ bug (Bug#20452).

9 years agons-win.el (ns-paste-secondary): Use gui-get-selection.
Jan D [Thu, 7 May 2015 17:48:19 +0000 (19:48 +0200)]
ns-win.el (ns-paste-secondary): Use gui-get-selection.

* ns-win.el (ns-paste-secondary): Use gui-get-selection.

9 years ago* lisp/emacs-lisp/package.el: New "external" package status
Artur Malabarba [Thu, 7 May 2015 15:11:50 +0000 (16:11 +0100)]
* lisp/emacs-lisp/package.el: New "external" package status

An external package is any installed package that's not built-in
and not from `package-user-dir', which usually means it's from an
entry in `package-directory-list'.  They are treated much like
built-in packages, in that they cannot be through the Package Menu
deleted and are not considered for upgrades.

(package-desc-status): Identify if a package is installed outside
`package-user-dir'.
(package-menu--print-info-simple)
(package-menu--status-predicate): Add support for it.

* etc/NEWS: Document it.

9 years ago* lisp/mail/rmail.el: Use lexical-binding
Stefan Monnier [Thu, 7 May 2015 02:27:36 +0000 (22:27 -0400)]
* lisp/mail/rmail.el: Use lexical-binding

(rmail-bury): Remove unused var `buffer-to-bury'.
(rmail-get-new-mail): Remove unused vars `opoint' and `success'.
(rmail-parse-url): Remove unused var `proto', `user', and `host'.
(rmail-unrmail-new-mail-maybe): Remove unused var `new-file'.
(rmail-insert-inbox-text): Remove unused var `movemail'.
(rmail-add-mbox-headers): Remove unused var `limit'.
(rmail-undelete-previous-message): Remove unused var `value'.
(rmail-reply): Remove unused vars `resent-to', `resent-cc',
`resent-reply-to'.
(rmail-mime-mbox-buffer, rmail-mime-view-buffer): Declare.
(rmail-restore-desktop-buffer): Rename arguments.

9 years ago* Makefile.in (change-history-commit): Add missing piece of previous.
Glenn Morris [Thu, 7 May 2015 02:01:02 +0000 (22:01 -0400)]
* Makefile.in (change-history-commit): Add missing piece of previous.