1. 15 May, 2015 5 commits
    • Jan Djärv's avatar
      Fix warnings on OSX 10.10. · e0e07535
      Jan Djärv authored
      * 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
      (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.
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/package.el: Don't ensure-init during startup · 2abfe21d
      Artur Malabarba authored
      (package--init-file-ensured): New variable.
      (package-initialize, package--ensure-init-file): Use it.
    • Jan Djärv's avatar
      Honor :fore/background for XBM on NS (Bug#14969). · 67a878f7
      Jan Djärv authored
      * 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
      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.
    • Artur Malabarba's avatar
      * lisp/emacs-lisp/package.el: Be more careful with the init file · b1c23fb9
      Artur Malabarba authored
      (package--ensure-init-file): Check that user-init-file is set,
      exists, is readable, and is writable.  (Bug#20584)
      Also expand the docstring.
    • Wilson Snyder's avatar
      Sync with upstream verilog-mode revision 6232468 · ca6a7774
      Wilson Snyder authored
      * 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
      (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-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
      (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,
      (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.
  2. 14 May, 2015 8 commits
    • Paul Eggert's avatar
      Check for invalid GTK+ monitor scales · 1d1581a2
      Paul Eggert authored
      * 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.
    • Eli Zaretskii's avatar
      Fix daemon crashes when linum-mode is turned on early on · f85318cd
      Eli Zaretskii authored
      * src/window.c (Fwindow_end): Don't try calling display engine
      functions on initial-frame frame.  (Bug#20565)
    • Eli Zaretskii's avatar
    • Eli Zaretskii's avatar
      Fix selective diff browsing in Ediff · 2958e523
      Eli Zaretskii authored
      * 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)
    • Jan D's avatar
      Fixes Bug#20142. · f2c4fd22
      Jan D authored
      * gtkutil.c (delete_cb): Don't send delete event here, it does arrive
      in the main loop, even for Gtk 3 (Bug#20142).
    • Jan D's avatar
      Don't access display after i/o error (Bug#19147). · 9341956c
      Jan D authored
      * 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.
    • Jan D's avatar
      Handle GTK_SCALE, fixes Bug#20432. · c0055ff5
      Jan D authored
      * gtkutil.c (xg_get_gdk_scale): New function.
      (x_wm_set_size_hint, xg_get_default_scrollbar_width)
      (xg_update_horizontal_scrollbar_pos): Take GTK_SCALE in to account
      when setting sizes (Bug#20432).
    • Leo Liu's avatar
      Fix cps--gensym · fbda511a
      Leo Liu authored
      * lisp/emacs-lisp/generator.el (cps--gensym): Fix.
  3. 13 May, 2015 7 commits
    • Glenn Morris's avatar
      Fix bootstrap (void function cl-member). · 912d4a49
      Glenn Morris authored
      * lisp/emacs-lisp/cl-lib.el: Load cl-seq if no cl-loaddefs file.
      * lisp/emacs-lisp/cl-seq.el: Provide a feature.
    • Stefan Monnier's avatar
      * lisp/loadup.el ("emacs-lisp/cl-generic"): Preload · 37ab2245
      Stefan Monnier authored
      * 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.
    • Eli Zaretskii's avatar
      Improve tagging of C bindings in DEFVAR_* · 8d69f38a
      Eli Zaretskii authored
      * src/Makefile.in (TAGS): Add --regex options to tag the C binding
      from DEFVAR_*.
    • Glenn Morris's avatar
      ; * etc/NEWS: Small edit. · a8a0be4f
      Glenn Morris authored
    • Paul Eggert's avatar
    • Glenn Morris's avatar
      * lisp/progmodes/tcl.el (tcl-filter): · 8a9ba4d6
      Glenn Morris authored
      Handle comint-prompt-read-only like gud.el does.  (Bug#20549)
    • Glenn Morris's avatar
      Add basic VC push support. · 660c30cc
      Glenn Morris authored
      * 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.
  4. 12 May, 2015 9 commits
  5. 11 May, 2015 8 commits
    • Stefan Monnier's avatar
      * lisp/term/xterm.el: Fix xterm-paste handling for rxvt · 0a21b26c
      Stefan Monnier authored
      * 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
    • Glenn Morris's avatar
      * lisp/term/x-win.el: Quieten --without-x compilation. · 3c5cc185
      Glenn Morris authored
      (x-own-selection-internal, x-disown-selection-internal)
      (x-selection-owner-p, x-selection-exists-p, x-get-selection-internal):
    • Glenn Morris's avatar
      * Makefile.in (emacslog): Remove srcdir. · a0dd752f
      Glenn Morris authored
      (ChangeLog): Update for the above.
    • Paul Eggert's avatar
      Spelling fix · 1c6e02ca
      Paul Eggert authored
    • Fabián Ezequiel Gallina's avatar
      python.el: better limit for looking-back calls · e35bf572
      Fabián Ezequiel Gallina authored
      * lisp/progmodes/python.el (python-shell-accept-process-output):
      Use last comint prompt start as limit for looking-back.
    • Stefan Monnier's avatar
      CEDET (srecode-insert-fcn): Fix use of oref on a class · b47f3356
      Stefan Monnier authored
      * 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.
    • Stefan Monnier's avatar
      CEDET (srecode-create-dictionary): Avoid obsolete object name · 70ac376a
      Stefan Monnier authored
      * lisp/cedet/srecode/dictionary.el (srecode-create-dictionary):
      Don't use a symbol as an object name.  Reported by Pierre Lorenzon.
    • Paul Eggert's avatar
      C-x 8 shorthands for curved quotes, Euro, etc. · 4b41540b
      Paul Eggert authored
      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).
      * 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:
      ‐ ‑ ‒ – — ― ‘ ’ “ ” † ‡ • ′ ″ € № ← →  − ≈ ≠ ≤ ≥
  6. 10 May, 2015 3 commits
    • Dmitry Gutov's avatar
      Add xref-find-regexp · 08963280
      Dmitry Gutov authored
      * 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.
    • Glenn Morris's avatar
      * Makefile.in: Fixes for recent change-history changes. · e20b70bf
      Glenn Morris authored
      (change-history-nocommit): Update footer regexp.
      Ensure output script stays executable.
    • NicolasPetton's avatar
      New version of `seq-let' based on a pcase pattern · 387e1e19
      NicolasPetton authored
      * lisp/emacs-lisp/seq.el (seq-let): Define the macro in terms of a
      pcase pattern if `pcase-defmacro' is defined (Emacs>=25.1).