Rostislav Svoboda | 18 Apr 20:45 2015
Picon

[PATCH] Re: new-line chars '\n' not printed?

>> can anybody explain please me why the '\n' char is not printed:
>
> Because the text is filled.
>
>         (fill-region-as-paragraph pt2 (point))
>
> Andreas.

Thx!
I found the list of key-chords printed by help-fns--key-bindings
is separated by the ',' char and it becomes unreadable if one of
the key-chord contains ','. So below is a patch to fix it.
Could you please give me an advice what to do to get it merged
to the upstream?

New help-fns--key-bindings output:
It is bound to:
    C-c , d
    s-d

Old output:
It is bound to C-c , d, s-d.

thx
Bost

PS: And here comes my very first patch for emacs :-)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index e4890e0..4840f41 100644
(Continue reading)

Eric Abrahamsen | 18 Apr 17:34 2015
Picon

fixing an Elpa package

I've got a package (Gnorb) in Elpa that's stagnating because I can't
update it using Git. I'm pretty close to bailing on this, but wanted to
float a question first in case it's easier to resolve than I thought.

I originally incorporated the package into Elpa as a subtree, squashed
into one commit, from a repository elsewhere on my filesystem that is
linked with Github. Since then there are now four commits to this
subtree in Elpa, two of them squashes from the external repository.

In the meantime, my old computer died and I got a new one. So I
re-cloned both the Elpa repository and the Github-based repository onto
the new machine. If I add my Github-based repository as a remote in the
Elpa repository, then fetch and subtree-merge, Git tells me there are no
common commits, and wants to merge in all (317) commits from the
external repository. I guess that makes sense from Git's point of view,
but I don't want to pollute Elpa with all those commits. I'm not sure it
would even work, either.

Granted, it was probably a bad idea to take the subtree approach to
begin with. But there it is, and I've mostly lost patience with the
whole thing. If there's any means of recovering from this -- even if
it's a bit of a pain in the ass -- I would be very happy to do that, and
I hope someone might be willing to share some recipes.

Thanks,
Eric

Rostislav Svoboda | 18 Apr 17:00 2015
Picon

new-line chars '\n' not printed?

Hi,

can anybody explain please me why the '\n' char is not printed:

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index e4890e0..421ec2f 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
 <at>  <at>  -296,7 +296,7  <at>  <at>  suitable file is found, return nil."
           (if (and (eq function 'self-insert-command)
                    (vectorp (car-safe keys))
                    (consp (aref (car keys) 0)))
-              (princ "It is bound to many ordinary text characters.\n")
+              (princ "It is bound to many ===\n=== ordinary text
characters.\n")
             ;; Which non-control non-meta keys run this command?
             (dolist (key keys)
               (if (member (event-modifiers (aref key 0)) '(nil (shift)))

I.e. in the help buffer, after pressing C-h k <SPACE> I get:
It is bound to many === === ordinary text characters.

(self-insert-command N)

instead of:
It is bound to many ===
=== ordinary text characters.

(self-insert-command N)

(Continue reading)

Alan Mackenzie | 18 Apr 12:33 2015
Picon

git question: how do I get a specific git version into my working directory?

Hello, Emacs.

A simple question (I hope):  How do I get a specific SW revision into my
working directory.  I want to do something like this:

   git <command> 7e09ef09a479731d01b1ca46e94ddadd73ac98e3

.  git checkout doesn't seem to be the thing.  Neither does git revert.
What is <command> here?

--

-- 
Alan Mackenzie (Nuremberg, Germany).

Lars Magne Ingebrigtsen | 17 Apr 20:53 2015
Picon

save-excursion and the mark

Code that previously relied on `save-excursion' restoring the mark no
longer works, and that's fine.  But could we have a new form like
`save-mark' (or something) that we could just slap around forms that
previously relied on this form behaving the old way?

I was just bitten by this by the async hashcash code moving the mark
around and me kill/yanking the wrong bits of the text.

--

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no

Oleh Krehel | 17 Apr 11:59 2015
Picon

Questions about the `completing-read-function' interface


Hi all,

I'd like to know, if a function calls `completing-read', should the
members of DEF be inside COLLECTION? I haven't found info on this in the
doc, and `completing-read-default' doesn't seem to handle DEF not being
in COLLECTION.

But, for instance, `magit-completing-read' (and some other functions) do
make that assumption. And `helm-mode' has code to deal with that.  I'm
thinking of adding a similar work-around to `ivy-mode' as well, but
maybe it would be better if it was somehow mandated that DEF should be
in COLLECTION. Because, theoretically, DEF can be a list, and it would
be inefficient for the completion engine to go through the whole
collection just to make sure that DEF isn't there, and then add it
there.

As second question is about this interface:

    (setq completing-read-function 'foo)

We've accumulated a bunch of packages that call this: icomplete-mode,
helm-mode, icy-mode, ivy-mode. If these functions are called in
succession, each of them will think that they are on, however, the
resource (`completing-read-function') will belong only to the last one.

Maybe we could have this type of interface:

    (set-completing-read-function 'foo callback)

(Continue reading)

Gian Uberto Lauri | 17 Apr 09:15 2015
Picon

Volunteering for Emacs documentation

There was a discussion on emacs-devel <at> gnu.org were it was said that
volunteers were velcomed to work on Emacs manual and doc strings.
(http://lists.gnu.org/archive/html/help-gnu-emacs/2015-04/msg00216.html).

What should one of these volunteers do to be useful?

--

-- 
 /\           ___                                    Ubuntu: ancient
/___/\_|_|\_|__|___Gian Uberto Lauri_____               African word
  //--\| | \|  |   Integralista GNUslamico            meaning "I can
\/                 coltivatore diretto di software       not install
     giĆ  sistemista a tempo (altrui) perso...                Debian"

Warning: gnome-config-daemon considered more dangerous than GOTO

Douglas Lewan | 16 Apr 21:08 2015
Picon

Proposal: cpio-mode

All,

A cpio mode has been in the emacs TODO file for as long as I've looked there.

I'd like to write that. Is there really still interest?

Thanks.
 
,Doug
Douglas Lewan
(908) 720-7908

My problem lies in reconciling my gross habits with my net income. -- Errol Flynn
Paul Nathan | 15 Apr 18:48 2015

Unable to build from git on emacs-24.5 (866501efe0)

Hi,

I have a recently upgraded OSX Yosemite (10.10) system I am attempting to build emacs on.  I have attempted to update my Xcode, command-line tools, brew, etc, prior to performing a build.

I begin by running git checkout emacs-24.5

After running autogen.sh, then ./configure --with-ns, then invoking make, I receive this information.

make[1]: Circular bootstrap-emacs <- temacs dependency dropped.
cd ../lisp; /Applications/Xcode.app/Contents/Developer/usr/bin/make  update-subdirs
for file in `find . -type d -print`; do case $file in .*/cedet* | .*/leim* ) ;; *) wins="$wins${wins:+ }$file" ;; esac; done; \
    for file in $wins; do \
       ./../build-aux/update-subdirs $file; \
    done;
if test "no" = "yes"; then \
      rm -f bootstrap-emacs; \
      ln temacs bootstrap-emacs; \
    else \
      ./temacs --batch --load loadup bootstrap || exit 1; \
      test "X" = X ||  -zex emacs; \
      mv -f emacs bootstrap-emacs; \
    fi
/bin/sh: ./temacs: No such file or directory
make[1]: *** [bootstrap-emacs] Error 1
make: *** [src] Error 2

Make has the right of it:  find . | grep temacs from the repository root returns nothing.

I perfectly am willing to believe that my system is misconfigured and the issue lies solely in the computer and the user, however, I am not sure exactly where to start the hunt to find the misconfiguration.

Please advise.

Thank you for your time,
Paul
Eric Abrahamsen | 15 Apr 14:42 2015
Picon

recent eieio changes -- 5de342720?

I ought to have my head examined for updating Emacs git every couple of
days, but...

Some recent commit (I suspect 5de342720) changed things in EIEIO so that
(in my particular case) both Helm and the Gnus registry are blowing up
with:

eieio--class-slot-initarg: Wrong type argument: eieio--class,
[cl-struct-eieio--class registry-db nil ([cl-struct-eieio--class
eieio-persistent "This special class enables persistence through save
files...

Followed by the entire definition of eieio-persistent.

I've done a bootstrap or two and recompiled everything, and the problem
remains. I've put some things in the registry that I don't want to lose,
so I'd prefer not to roll back. So I'll just leave this here and then,
you know, sit tight and hope someone's watching...

Thanks,
Eric

Eli Zaretskii | 15 Apr 04:41 2015
Picon

Re: Displaying scrollable images in a grid-layout

> From: Andreas Politz <politza <at> hochschule-trier.de>
> Date: Tue, 14 Apr 2015 21:29:04 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> Try this:
> >> 
> >>      (defun show-data-dir-images (&optional ncolumns)
> >> [...]
> 
> > After running this function, this works for me:
> >
> >    (set-window-vscroll nil N t)
> >
> > as long as (a) point is not on the first screen line shown in the
> > window, and (b) N is no more than 24, which AFAICS is the pixel size
> > of the small images created by the above function.
> 
> Yes but the whole point is to display only half of an image at the top.

Like I said: it works for me under the conditions described above.

> This recipe is not ideal. In the real application I would have 2 images
> (pages of a PDF) side by side, filling e.g 3/4 of the windows vertical
> space.  Below these images are another 2 which are only 1/4-way visible.
> Now I want to scroll these 4 images up by let's say the equivalent of
> next-screen-context-lines in pixels.

Can you explain why such a partial scroll is a good idea?  We can show
the entire line, and yet you want us to show only part of it?

> Would this be a feature supported by Emacs ?

Like I said, it goes against the current redisplay strategy to show
full lines whenever possible.  So it would be possible to support that
under some option, but it would need a lot of non-trivial changes.


Gmane