1. 01 Jan, 2020 1 commit
  2. 12 Dec, 2019 1 commit
  3. 05 Nov, 2019 2 commits
  4. 22 Jul, 2019 1 commit
    • Paul Eggert's avatar
      Remove no-longer-needed integer overflow code · c63e7f1b
      Paul Eggert authored
      * lisp/calculator.el (calculator-number-to-string):
      Use truncate, not calculator-truncate, since integer
      overflow cannot occur here.
      * lisp/calendar/cal-persia.el (calendar-persian-year-from-absolute):
      * lisp/gnus/gnus-agent.el (gnus-agent-read-article-number):
      * lisp/gnus/nnmaildir.el (nnmaildir--group-maxnum)
      (nnmaildir--new-number):
      * lisp/scroll-bar.el (scroll-bar-scale):
      * lisp/simple.el (beginning-of-buffer, end-of-buffer):
      Simplify, now that integer overflow cannot occur.
      c63e7f1b
  5. 01 Jan, 2019 1 commit
  6. 25 Nov, 2018 1 commit
    • Michael Heerdegen's avatar
      Replace insignificant backquotes · 1808d254
      Michael Heerdegen authored
      Replace most insignificant occurrences of '`' with a straight quote,
      sharp quote or nothing.  This includes backquotes in 'pcase' patterns.
      
      * admin/admin.el:
      * lisp/apropos.el:
      * lisp/arc-mode.el:
      * lisp/auth-source.el:
      * lisp/avoid.el:
      * lisp/bindings.el:
      * lisp/bs.el:
      * lisp/calculator.el:
      * lisp/calendar/todo-mode.el:
      * lisp/cedet/semantic.el:
      * lisp/cedet/semantic/analyze/debug.el:
      * lisp/cedet/semantic/bovine.el:
      * lisp/cedet/semantic/dep.el:
      * lisp/cedet/semantic/grammar.el:
      * lisp/cedet/semantic/wisent/comp.el:
      * lisp/cedet/semantic/wisent/grammar.el:
      * lisp/cedet/srecode/mode.el:
      * lisp/cus-edit.el:
      * lisp/doc-view.el:
      * lisp/elec-pair.el:
      * lisp/electric.el:
      * lisp/emacs-lisp/autoload.el:
      * lisp/emacs-lisp/benchmark.el:
      * lisp/emacs-lisp/byte-opt.el:
      * lisp/emacs-lisp/bytecomp.el:
      * lisp/emacs-lisp/cconv.el:
      * lisp/emacs-lisp/cl-extra.el:
      * lisp/emacs-lisp/cl-generic.el:
      * lisp/emacs-lisp/cl-macs.el:
      * lisp/emacs-lisp/copyright.el:
      * lisp/emacs-lisp/debug.el:
      * lisp/emacs-lisp/eieio-compat.el:
      * lisp/emacs-lisp/ert.el:
      * lisp/emacs-lisp/generator.el:
      * lisp/emacs-lisp/inline.el:
      * lisp/emacs-lisp/macroexp.el:
      * lisp/emacs-lisp/map.el:
      * lisp/emacs-lisp/package-x.el:
      * lisp/emacs-lisp/package.el:
      * lisp/emacs-lisp/radix-tree.el:
      * lisp/emacs-lisp/smie.el:
      * lisp/epa.el:
      * lisp/erc/erc-dcc.el:
      * lisp/erc/erc-track.el:
      * lisp/erc/erc.el:
      * lisp/eshell/em-ls.el:
      * lisp/eshell/esh-cmd.el:
      * lisp/files.el:
      * lisp/filesets.el:
      * lisp/font-lock.el:
      * lisp/frameset.el:
      * lisp/gnus/gnus-agent.el:
      * lisp/gnus/gnus-art.el:
      * lisp/gnus/gnus-cite.el:
      * lisp/gnus/gnus-group.el:
      * lisp/gnus/gnus-msg.el:
      * lisp/gnus/gnus-salt.el:
      * lisp/gnus/gnus-srvr.el:
      * lisp/gnus/gnus-sum.el:
      * lisp/gnus/gnus-topic.el:
      * lisp/gnus/gnus-util.el:
      * lisp/gnus/gnus.el:
      * lisp/gnus/message.el:
      * lisp/gnus/mm-util.el:
      * lisp/gnus/mml.el:
      * lisp/gnus/nnheader.el:
      * lisp/gnus/nnimap.el:
      * lisp/gnus/nnmairix.el:
      * lisp/gnus/spam.el:
      * lisp/hexl.el:
      * lisp/hi-lock.el:
      * lisp/ibuf-ext.el:
      * lisp/ibuffer.el:
      * lisp/ido.el:
      * lisp/info.el:
      * lisp/international/mule-cmds.el:
      * lisp/international/mule-util.el:
      * lisp/json.el:
      * lisp/jsonrpc.el:
      * lisp/language/cyrillic.el:
      * lisp/language/european.el:
      * lisp/language/georgian.el:
      * lisp/language/tibetan.el:
      * lisp/language/utf-8-lang.el:
      * lisp/language/vietnamese.el:
      * lisp/ldefs-boot.el:
      * lisp/mail/mail-extr.el:
      * lisp/man.el:
      * lisp/menu-bar.el:
      * lisp/mh-e/mh-acros.el:
      * lisp/mh-e/mh-folder.el:
      * lisp/mh-e/mh-mime.el:
      * lisp/mh-e/mh-show.el:
      * lisp/mh-e/mh-speed.el:
      * lisp/minibuffer.el:
      * lisp/mpc.el:
      * lisp/net/ange-ftp.el:
      * lisp/net/hmac-def.el:
      * lisp/net/newst-backend.el:
      * lisp/net/quickurl.el:
      * lisp/net/tramp-archive.el:
      * lisp/net/tramp-compat.el:
      * lisp/notifications.el:
      * lisp/obsolete/pgg-parse.el:
      * lisp/obsolete/vc-arch.el:
      * lisp/obsolete/xesam.el:
      * lisp/org/ob-C.el:
      * lisp/org/ob-core.el:
      * lisp/org/ob-exp.el:
      * lisp/org/ob-groovy.el:
      * lisp/org/ob-haskell.el:
      * lisp/org/ob-io.el:
      * lisp/org/ob-lisp.el:
      * lisp/org/ob-lob.el:
      * lisp/org/ob-lua.el:
      * lisp/org/ob-octave.el:
      * lisp/org/ob-perl.el:
      * lisp/org/ob-python.el:
      * lisp/org/ob-ref.el:
      * lisp/org/ob-ruby.el:
      * lisp/org/ob-sql.el:
      * lisp/org/org-agenda.el:
      * lisp/org/org-capture.el:
      * lisp/org/org-clock.el:
      * lisp/org/org-colview.el:
      * lisp/org/org-duration.el:
      * lisp/org/org-element.el:
      * lisp/org/org-entities.el:
      * lisp/org/org-gnus.el:
      * lisp/org/org-indent.el:
      * lisp/org/org-info.el:
      * lisp/org/org-inlinetask.el:
      * lisp/org/org-lint.el:
      * lisp/org/org-list.el:
      * lisp/org/org-mouse.el:
      * lisp/org/org-plot.el:
      * lisp/org/org-src.el:
      * lisp/org/org-table.el:
      * lisp/org/org.el:
      * lisp/org/ox-ascii.el:
      * lisp/org/ox-html.el:
      * lisp/org/ox-latex.el:
      * lisp/org/ox-man.el:
      * lisp/org/ox-md.el:
      * lisp/org/ox-org.el:
      * lisp/org/ox-publish.el:
      * lisp/org/ox-texinfo.el:
      * lisp/org/ox.el:
      * lisp/play/bubbles.el:
      * lisp/play/gamegrid.el:
      * lisp/progmodes/autoconf.el:
      * lisp/progmodes/cc-defs.el:
      * lisp/progmodes/cc-engine.el:
      * lisp/progmodes/cc-fonts.el:
      * lisp/progmodes/cc-langs.el:
      * lisp/progmodes/cperl-mode.el:
      * lisp/progmodes/ebrowse.el:
      * lisp/progmodes/elisp-mode.el:
      * lisp/progmodes/flymake-cc.el:
      * lisp/progmodes/flymake.el:
      * lisp/progmodes/fortran.el:
      * lisp/progmodes/grep.el:
      * lisp/progmodes/gud.el:
      * lisp/progmodes/idlwave.el:
      * lisp/progmodes/js.el:
      * lisp/progmodes/m4-mode.el:
      * lisp/progmodes/make-mode.el:
      * lisp/progmodes/mixal-mode.el:
      * lisp/progmodes/modula2.el:
      * lisp/progmodes/octave.el:
      * lisp/progmodes/opascal.el:
      * lisp/progmodes/prolog.el:
      * lisp/progmodes/ps-mode.el:
      * lisp/progmodes/python.el:
      * lisp/progmodes/ruby-mode.el:
      * lisp/progmodes/sh-script.el:
      * lisp/progmodes/sql.el:
      * lisp/progmodes/verilog-mode.el:
      * lisp/ps-mule.el:
      * lisp/rtree.el:
      * lisp/ruler-mode.el:
      * lisp/ses.el:
      * lisp/simple.el:
      * lisp/startup.el:
      * lisp/subr.el:
      * lisp/term/ns-win.el:
      * lisp/textmodes/bibtex.el:
      * lisp/textmodes/conf-mode.el:
      * lisp/textmodes/css-mode.el:
      * lisp/textmodes/refill.el:
      * lisp/textmodes/sgml-mode.el:
      * lisp/textmodes/tex-mode.el:
      * lisp/tutorial.el:
      * lisp/url/url-dav.el:
      * lisp/url/url-gw.el:
      * lisp/url/url-http.el:
      * lisp/url/url-methods.el:
      * lisp/url/url-privacy.el:
      * lisp/vc/cvs-status.el:
      * lisp/vc/diff-mode.el:
      * lisp/vc/ediff-init.el:
      * lisp/vc/ediff-ptch.el:
      * lisp/vc/log-edit.el:
      * lisp/vc/log-view.el:
      * lisp/vc/pcvs-info.el:
      * lisp/vc/pcvs.el:
      * lisp/vc/smerge-mode.el:
      * lisp/vc/vc-git.el:
      * lisp/vc/vc-hg.el:
      * lisp/vc/vc-mtn.el:
      * lisp/vc/vc-rcs.el:
      * lisp/whitespace.el:
      * lisp/window.el:
      * test/lisp/electric-tests.el:
      * test/lisp/emacs-lisp/cl-lib-tests.el:
      * test/lisp/emacs-lisp/ert-tests.el:
      * test/lisp/epg-tests.el:
      * test/lisp/jsonrpc-tests.el:
      * test/src/data-tests.el:
      * test/src/json-tests.el: Replace most insignificant backquotes.
      1808d254
  7. 03 Sep, 2018 1 commit
  8. 23 Mar, 2018 1 commit
  9. 01 Jan, 2018 1 commit
  10. 13 Sep, 2017 1 commit
    • Paul Eggert's avatar
      Prefer HTTPS to FTP and HTTP in documentation · bc511a64
      Paul Eggert authored
      Most of this change is to boilerplate commentary such as license URLs.
      This change was prompted by ftp://ftp.gnu.org's going-away party,
      planned for November.  Change these FTP URLs to https://ftp.gnu.org
      instead.  Make similar changes for URLs to other organizations moving
      away from FTP.  Also, change HTTP to HTTPS for URLs to gnu.org and
      fsf.org when this works, as this will further help defend against
      man-in-the-middle attacks (for this part I omitted the MS-DOS and
      MS-Windows sources and the test tarballs to keep the workload down).
      HTTPS is not fully working to lists.gnu.org so I left those URLs alone
      for now.
      bc511a64
  11. 01 Jan, 2017 1 commit
  12. 24 Feb, 2016 1 commit
    • Chris Zheng's avatar
      Minor fixes in calculator.el · 9d0b103a
      Chris Zheng authored
      * lisp/calculator.el (calculator-mode-map): Bind `E' for
      `calculator-exp'.
      (calculator-last-input): Fix a bug with pressing F1.
      (Bug#20764)
      
      Copyright-paperwork-exempt: yes
      9d0b103a
  13. 01 Jan, 2016 1 commit
  14. 07 Dec, 2015 1 commit
  15. 30 Nov, 2015 1 commit
  16. 29 Nov, 2015 5 commits
    • Eli Barzilay's avatar
      * lisp/calculator.el: more improvements and bugfixes. · f248292e
      Eli Barzilay authored
      - Mark `calculator-paste-decimals' as obsolete.  (It wasn't having an
        effect anyway.)
      
      - Simplify `calculator-number-to-string' by throwing most of the work
        onto `number-to-string', leaving just some tweaks for decimal inputs.
        This leads to some minor changes, for example, pasting "1x1" in hex
        mode would warn that "x" is ignored and result in "11" (and it wasn't
        done in decimal mode), whereas now it just ignores everything from the
        "x" and on and result in a "1" just like in decimal input mode.  Also,
        overflows are left for `number-to-string' to deal with.
      
      - `calculator-paste' is very simple as a result.
      
      - Extend the simplified `calculator-paste': with a prefix argument it
        pastes a string as if the characters were entered.  This can be used
        to reduce expressions, but note that it's a simple literal operation,
        so precedence can be messed, a number can be paster while entering a
        number, spaces and newlines matter, etc.
      
      - Fix a minor bug where "e+" in hex mode wouldn't use "+" as an
        operator.
      
      - Fix a bug in `calculator-put-value': avoid grouping in the display
        that is used to construct `calculator-curnum'.  This would trigger
        when pasting or getting a value from a register in some radix mode
        with a large enough value.  Another fix: make the output radix equal
        the input one, otherwise numbers could be converted twice.
      f248292e
    • Eli Barzilay's avatar
      * lisp/calculator.el: Re-do key bindings. · 1b4570bc
      Eli Barzilay authored
      Use a helper function that arranges a parent keymap that binds alternate
      case keys so if some letter key is unbound and it's un/shifted version
      is, it will get used.  This makes the global-map trickery unnecessary.
      
      Also switch to passing strings that name keys through `kbd'.
      1b4570bc
    • Eli Barzilay's avatar
      * lisp/calculator.el: improve radix modes · e875e68b
      Eli Barzilay authored
      Fix prompt for some input radix with decimal output (eg, "BD" instead of
      the incorrect "B="); also, some minor docstring tweaks for these.
      e875e68b
    • Eli Barzilay's avatar
      * lisp/calculator.el: better reading of register names · 5d74a02e
      Eli Barzilay authored
      Use `register-read-with-preview' with a dynamically bound
      `register-alist' and a proper preview function to read register names.
      5d74a02e
    • Eli Barzilay's avatar
      * lisp/calculator.el: General improvements · fb9ed79c
      Eli Barzilay authored
      Use things like `when', `unless', and `push'.
      
      Improve `calculator-last-input' so it doesn't barf when hitting `F1' in
      non-electric mode.
      fb9ed79c
  17. 17 Nov, 2015 1 commit
    • Paul Eggert's avatar
      Fix docstring quoting problems with ‘ '’ · ac16149b
      Paul Eggert authored
      Problem reported by Artur Malabarba in:
      http://lists.gnu.org/archive/html/emacs-devel/2015-11/msg01513.html
      Most of these fixes are to documentation; many involve fixing
      longstanding quoting glitches that are independent of the
      recent substitute-command-keys changes.  The changes to code are:
      * lisp/cedet/mode-local.el (mode-local-augment-function-help)
      (describe-mode-local-overload):
      Substitute docstrings before displaying them.
      * lisp/emacs-lisp/cl-macs.el (cl--transform-lambda):
      Quote the generated docstring for later substitution.
      ac16149b
  18. 03 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Fix some more docstring etc. quoting problems · 26bd978d
      Paul Eggert authored
      Mostly these fixes prevent the transliteration of apostrophes
      that should stay apostrophes.  Also, prefer curved quotes in
      Bahá’í proper names, as that’s the preferred Bahá’í style and
      these names are chock-full of non-ASCII characters anyway.
      * lisp/emacs-lisp/eieio-core.el (eieio-defclass-autoload)
      (eieio-defclass-internal):
      * lisp/emacs-lisp/eieio.el (defclass):
      * lisp/hi-lock.el (hi-lock-mode):
      Don’t transliterate Lisp apostrophes when generating a
      doc string or diagnostic.
      * lisp/international/mule-diag.el (list-coding-systems-1):
      * lisp/international/ogonek.el (ogonek-jak, ogonek-how):
      * lisp/mail/sendmail.el (sendmail-query-user-about-smtp):
      * lisp/vc/ediff-mult.el (ediff-redraw-registry-buffer):
      * lisp/vc/ediff-ptch.el (ediff-fixup-patch-map):
      Substitute quotes before putting them in the help buffer.
      26bd978d
  19. 02 Sep, 2015 1 commit
    • Paul Eggert's avatar
      Escape ` and ' in doc · 19532d14
      Paul Eggert authored
      Escape apostrophes and grave accents in docstrings if they are
      are supposed to stand for themselves and are not quotes.  Remove
      apostrophes from docstring examples like ‘'(calendar-nth-named-day
      -1 0 10 year)’ that confuse source code with data.  Do some other
      minor docstring fixups as well, e.g., insert a missing close
      quote.
      19532d14
  20. 21 Aug, 2015 1 commit
    • Paul Eggert's avatar
      Don't quote symbols 'like-this' in docstrings etc. · 760701eb
      Paul Eggert authored
      * admin/unidata/uvs.el (uvs-insert-fields-as-bytes):
      * lisp/allout-widgets.el (allout-widgets-count-buttons-in-region):
      * lisp/allout.el (allout-add-resumptions, allout-mode):
      * lisp/calculator.el (calculator-operators):
      * lisp/cedet/data-debug.el (dd-propertize):
      * lisp/cedet/ede/proj-prog.el (ede-proj-target-makefile-program):
      * lisp/cedet/semantic/analyze/debug.el:
      (semantic-analyzer-debug-global-miss-text):
      * lisp/cedet/semantic/lex-spp.el:
      (semantic-lex-spp-replace-or-symbol-or-keyword):
      * lisp/cedet/semantic/symref.el:
      (semantic-symref-cleanup-recent-buffers-fcn):
      * lisp/cedet/semantic/tag.el (semantic-tag-class):
      * lisp/cedet/srecode/el.el (srecode-semantic-handle-:el-custom):
      * lisp/gnus/nnmairix.el (nnmairix-propagate-marks-upon-close):
      * lisp/gnus/pop3.el (pop3-authentication-scheme):
      * lisp/help-fns.el (describe-function-orig-buffer):
      * lisp/imenu.el (imenu--history-list):
      * lisp/mail/feedmail.el (feedmail-confirm-outgoing)
      (feedmail-display-full-frame, feedmail-deduce-bcc-where)
      (feedmail-queue-default-file-slug)
      (feedmail-queue-buffer-file-name):
      * lisp/net/mairix.el (mairix-searches-mode-map):
      * lisp/net/newst-backend.el (newsticker-retrieval-method)
      (newsticker-auto-mark-filter-list):
      * lisp/obsolete/vi.el (vi-mode):
      * lisp/progmodes/cc-engine.el (c-literal-type):
      * lisp/progmodes/cpp.el (cpp-face):
      * lisp/progmodes/ebrowse.el (ebrowse-electric-list-looper):
      * lisp/progmodes/elisp-mode.el (elisp--xref-make-xref):
      * lisp/progmodes/pascal.el (pascal-auto-lineup):
      * lisp/progmodes/prog-mode.el (prog-widen):
      * lisp/progmodes/verilog-mode.el (verilog-regexp-words)
      (verilog-auto-lineup, verilog-auto-reset-widths)
      (verilog-auto-arg-format, verilog-auto-inst-template-numbers):
      * lisp/textmodes/flyspell.el (flyspell-maybe-correct-transposition)
      (flyspell-maybe-correct-doubling):
      * lisp/textmodes/table.el (table-justify, table-justify-cell)
      (table-justify-row, table-justify-column, table-insert-sequence)
      (table--justify-cell-contents):
      * lisp/url/url-auth.el (url-get-authentication):
      * lisp/window.el (display-buffer-record-window):
      * lisp/xml.el (xml-parse-file, xml-parse-region):
      * src/gfilenotify.c (Fgfile_add_watch):
      Don't quote symbols with apostrophes in doc strings.
      Use asymmetric quotes instead.
      * lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
      Likewise for symbol in diagnostic.
      * lisp/image.el (image-extension-data):
      * lisp/register.el (frame-configuration-to-register):
      * src/buffer.c (syms_of_buffer):
      Remove bogus apostrophes after symbols.
      * lisp/thumbs.el (thumbs-conversion-program):
      Quote Lisp string values using double-quotes, not apostrophes.
      760701eb
  21. 19 May, 2015 1 commit
  22. 26 Jan, 2015 1 commit
  23. 01 Jan, 2015 2 commits
  24. 24 Jun, 2014 1 commit
  25. 23 Jun, 2014 1 commit
    • Eli Barzilay's avatar
      * calculator.el (calculator-standard-displayer): Fix bug in use of · cc43334a
      Eli Barzilay authored
      `calculator-groupize-number'.
      (calculator-funcall): Fix broken `cl-flet' use by moving it into the
      `eval' code, so it works in v24.3.1 too.
      (calculator-last-input): Comment to clarify purpose.
      
      Also add back a ChangeLog blurb for previous commit 2014-06-15T04:52:34Z!eli@barzilay.org.
      cc43334a
  26. 15 Jun, 2014 1 commit
    • Eli Barzilay's avatar
      * lisp/calculator.el: Lots of revisions · 5335a8ce
      Eli Barzilay authored
      - Kill the calculator buffer after electric mode too.
      - Make decimal mode have "," groups, so it's more fitting for use in
        money calculations.
      - Factorial works with non-integer inputs.
      - Swallow less errors.
      - Lots of other improvements, but no changes to custom variables, or
        other user visible changes (except the above).
      5335a8ce
  27. 03 Feb, 2014 1 commit
    • Glenn Morris's avatar
      Be more consistent in using register-read-with-preview to read registers · 6a6b8e40
      Glenn Morris authored
      * frameset.el (frameset-to-register):
      * kmacro.el (kmacro-to-register):
      * register.el (increment-register):
      * calc/calc-yank.el (calc-copy-to-register, calc-insert-register)
      (calc-append-to-register, calc-prepend-to-register):
      * play/gametree.el (gametree-layout-to-register)
      (gametree-apply-register-layout):
      * textmodes/picture.el (picture-clear-rectangle-to-register)
      (picture-yank-rectangle-from-register):
      * vc/emerge.el (emerge-combine-versions-register):
      Use register-read-with-preview to read registers.
      
      * cedet/semantic/senator.el (senator-copy-tag-to-register):
      Use register-read-with-preview, if available.
      
      * calculator.el, emulation/viper-cmd.el: Comments.
      6a6b8e40
  28. 01 Jan, 2014 1 commit
  29. 28 Dec, 2013 1 commit
    • Glenn Morris's avatar
      Every defcustom should specify its type · 9c5a5c77
      Glenn Morris authored
      * apropos.el (apropos-match-face):
      * calculator.el (calculator-displayer):
      * dabbrev.el (dabbrev-search-these-buffers-only):
      * face-remap.el (buffer-face-mode-face):
      * simple.el (yank-handled-properties):
      * emacs-lisp/testcover.el (testcover-potentially-1value-functions):
      * mail/footnote.el (footnote-mode-line-string, footnote-prefix):
      * mail/hashcash.el (hashcash-accept-resources, hashcash-program)
      (hashcash-double-spend-database):
      * progmodes/ruby-mode.el (ruby-deep-indent-paren)
      (ruby-deep-indent-paren-style):
      * textmodes/flyspell.el (flyspell-auto-correct-binding):
      * textmodes/rst.el (rst-toc-indent, rst-toc-insert-style)
      (rst-toc-insert-number-separator, rst-toc-insert-max-level):
      * vc/pcvs-defs.el (cvs-minor-mode-prefix):
      * erc/erc-log.el (erc-log-file-coding-system):
      * gnus/gnus-sieve.el (gnus-sieve-select-method):
      * gnus/gravatar.el (gravatar-automatic-caching, gravatar-cache-ttl)
      (gravatar-rating, gravatar-size):
      * gnus/message.el (message-minibuffer-local-map):
      * gnus/sieve-manage.el (sieve-manage-authenticators)
      (sieve-manage-authenticator-alist):
      Specify custom types.
      
      * mail/hashcash.el (hashcash-program): Rename from hashcash-path.
      Update callers.
      9c5a5c77
  30. 03 Sep, 2013 1 commit
  31. 29 Aug, 2013 1 commit
    • Stefan Monnier's avatar
      Misc changes to reduce use of `(lambda...); and other cleanups. · 40f7e0e8
      Stefan Monnier authored
      * lisp/cus-edit.el: Use lexical-binding.
      (customize-push-and-save, customize-apropos)
      (custom-buffer-create-internal): Use closures.
      * lisp/progmodes/bat-mode.el (bat-mode-syntax-table): "..." are strings.
      * lisp/progmodes/ada-xref.el: Use setq.
      * lisp/net/tramp.el (with-tramp-progress-reporter): Avoid setq.
      * lisp/dframe.el: Use lexical-binding.
      (dframe-frame-mode): Fix calling convention for hooks.  Use a closure.
      * lisp/speedbar.el (speedbar-frame-mode): Adjust call accordingly.
      * lisp/descr-text.el: Use lexical-binding.
      (describe-text-widget, describe-text-sexp, describe-property-list):
      Use closures.
      * lisp/comint.el (comint-history-isearch-push-state): Use a closure.
      * lisp/calculator.el: Use lexical-binding.
      (calculator-number-to-string): Make it work with lexical-binding.
      (calculator-funcall): Same and use cl-letf.
      40f7e0e8
  32. 10 Aug, 2013 1 commit
    • Juanma Barranquero's avatar
      lisp/*.el: Remove lexical-binding warnings; additional small cleanups. · 45fdb482
      Juanma Barranquero authored
      * calculator.el (calculator): Mark unused argument.
        (calculator-paste, calculator-quit, calculator-integer-p):
        Use ignore-errors.
        (calculator-string-to-number, calculator-decimal, calculator-exp)
        (calculator-op-or-exp): Use string-match-p.
      
      * dired-aux.el (dired-compress): Use ignore-errors.
        (dired-do-chxxx, dired-do-chmod, dired-trample-file-versions)
        (dired-do-async-shell-command, dired-do-shell-command)
        (dired-shell-stuff-it, dired-compress-file, dired-insert-subdir)
        (dired-insert-subdir-validate): Use string-match-p.
        (dired-map-dired-file-lines, dired-subdir-hidden-p): Use looking-at-p.
        (dired-add-entry): Use string-match-p, looking-at-p.
        (dired-insert-subdir-newpos): Remove unused local variable.
      
      * dired.el (dired-buffer-more-recently-used-p): Declare.
        (dired-insert-set-properties, dired-insert-old-subdirs):
        Use ignore-errors.
      
      * filenotify.el (file-notify-callback): Remove unused local variable.
      
      * filesets.el (filesets-error): Mark unused argument.
        (filesets-which-command-p, filesets-filter-dir-names)
        (filesets-directory-files, filesets-get-external-viewer)
        (filesets-ingroup-get-data): Use string-match-p.
      
      * find-file.el (ff-other-file-name, ff-other-file-name)
        (ff-find-the-other-file, ff-cc-hh-converter):
        Remove unused local variables.
        (ff-get-file-name): Use string-match-p.
        (ff-all-dirs-under): Use ignore-errors.
      
      * follow.el (follow-comint-scroll-to-bottom): Mark unused argument.
        (follow-select-if-visible): Remove unused local variable.
      
      * forms.el (read-file-filter): Move declaration.
        (forms--make-format, forms--make-parser, forms-insert-record):
        Quote function with #'.
        (forms--update): Use string-match-p.  Quote function with #'.
      
      * help-mode.el (help-dir-local-var-def): Mark unused argument.
        (help-make-xrefs): Use looking-at-p.
        (help-xref-on-pp): Use looking-at-p, ignore-errors.
      
      * ibuffer.el (ibuffer-ext-visible-p): Declare.
        (ibuffer-confirm-operation-on): Use string-match-p.
      
      * msb.el (msb-item-handler, msb-dired-item-handler):
        Mark unused arguments.
      
      * ses.el (ses-decode-cell-symbol)
        (ses-kill-override): Remove unused local variable.
        (ses-create-cell-variable, ses-relocate-formula): Use string-match-p.
        (ses-load): Use ignore-errors, looking-at-p.
        (ses-jump-safe): Use ignore-errors.
        (ses-export-tsv, ses-export-tsf, ses-unsafe): Mark unused arguments.
      
      * tabify.el (untabify, tabify): Mark unused arguments.
      
        * thingatpt.el (thing-at-point--bounds-of-well-formed-url):
        Mark unused argument.
        (bounds-of-thing-at-point, thing-at-point-bounds-of-list-at-point)
        (thing-at-point-newsgroup-p, form-at-point): Use ignore-errors.
      45fdb482
  33. 21 May, 2013 1 commit
    • Glenn Morris's avatar
      Silence some compiler warnings · f440830d
      Glenn Morris authored
      * calculator.el (electric, ehelp): No need to load when compiling.
      (Electric-command-loop, electric-describe-mode): Declare.
      
      * doc-view.el (doc-view-current-converter-processes): Move before use.
      
      * files.el (dired-unmark):
      * progmodes/gud.el (gdb-input): Update declarations.
      
      * emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
      Move MODE-set-explicitly definition before use.
      
      * erc/erc-log.el (erc-network-name): Declare.
      
      * erc/erc-notify.el (pcomplete--here): Declare.
      (pcomplete/erc-mode/NOTIFY): Require pcomplete.
      
      * international/mule-diag.el (mule-diag):
      Don't use obsolete window-system-version.
      
      * mail/feedmail.el (smtpmail): No need to load when compiling.
      (smtpmail-via-smtp, smtpmail-smtp-server): Declare.
      
      * mail/mail-utils.el (rfc822): No need to load when compiling.
      (rfc822-addresses): Autoload it.
      (mail-strip-quoted-names): Trivial simplification.
      
      * mail/rmail.el (rmail-mime-message-p, rmail-mime-toggle-raw): Declare.
      (rmail-retry-failure): Don't assume that rmail-mime-feature == rmailmm.
      
      * net/snmp-mode.el (tempo): Don't duplicate requires.
      
      * progmodes/prolog.el (info): No need to load when compiling.
      (comint): Require before shell requires it.
      (Info-goto-node): Autoload it.
      (Info-follow-nearest-node): Declare.
      (prolog-help-info, prolog-goto-predicate-info): No need to require info.
      
      * textmodes/artist.el (picture-mode-exit): Declare.
      
      * textmodes/reftex-parse.el (reftex-parse-from-file):
      Trivial rewrite so the compiler can parse it better.
      
      * url/url-dav.el (url-http): Require it.
      (url-http-head-file-attributes): Don't autoload it.
      
      * url/url-proxy.el (url-http): Autoload it.
      f440830d
  34. 01 Jan, 2013 1 commit