Re: -Wlto-type-mismatch warning in error()

2022-12-07 Thread Arsen Arsenović
ote: type mismatch in parameter 1 > 218 | error (const char *fmt, ...) > | ^ > install-info.c:218:1: note: ‘error’ was previously declared here This appears to be a result of error in install-info.c being non-static. It could be static, and avoid a potential symbol coll

Re: namespacing issues with Gnulib

2022-12-08 Thread Arsen Arsenović
Bruno Haible writes: > Any other ideas? The one that pops to mind is prefixing everything with ``gl_'', and exposing aliases maybe. The former is unergonomic and latter is fragile, though. -- Arsen Arsenović signature.asc Description: PGP signature

Re: -Wlto-type-mismatch warning in error()

2022-12-08 Thread Arsen Arsenović
o an application is in its > full rights when it defines its own 'error' that is not compatible > with that from libc. Indeed, and if Gnulib is considered part of the said application, and it usually acts mostly as if it were, this application (ginstall-info) would have two conflicting ideas of what ``error'' means, and hence getting this warning. Have a lovely day. [[ PS: I wrote this draft hours ago, and I only got to send it now. ]] [[ Something came up in the meanwhile. Sentences written based on ]] [[ Memory are marked with these brackets. They could be wrong. ]] -- Arsen Arsenović signature.asc Description: PGP signature

[PATCH] Re-enable copyable anchors in HTML output

2022-12-24 Thread Arsen Arsenović
ts/test_scripts/indices_index_entries_relate_to_item.sh diff --git a/ChangeLog b/ChangeLog index a2afc49c78..d7f42c22a3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,29 @@ +2022-12-24 Arsen Arsenović + + Re-enable copyable anchors in HTML output + + * tp/Texinfo/Commo

Stand-alone Info and info-mode inconsistency: end of buffer behavior

2023-01-06 Thread Arsen Arsenović
better experience for the the end user, switching pages can feel accidental to newcomers to the stand-alone info viewer. What do you think? Thanks in advance, have a great night. -- Arsen Arsenović signature.asc Description: PGP signature

Re: Stand-alone Info and info-mode inconsistency: end of buffer behavior

2023-01-06 Thread Arsen Arsenović
;s important to get an experience as close as possible to what the person completely new to GNU would expect. Thanks, have a wonderful evening. -- Arsen Arsenović signature.asc Description: PGP signature

Re: Stand-alone Info and info-mode inconsistency: end of buffer behavior

2023-01-06 Thread Arsen Arsenović
> The (info)Top node on my system has a next node ("(info)Getting > Started"), which pure ``n'' and (Info-next) take me to, but none of the > in-buffer navigation commands (including /) do. Aha! also does, DEL also goes back. -- Arsen Arsenović signature.asc Description: PGP signature

Re: Stand-alone Info and info-mode inconsistency: end of buffer behavior

2023-01-07 Thread Arsen Arsenović
> started. Indeed - missing the welcome message seems a common phenomena (I tested this on a few folk around me, all of whom missed it), which is quite strange... I'd like to redirect this discussion to Alex' thread on help-texinfo, though. I hope we can collect some constructive criticism. Thanks, have a great evening. -- Arsen Arsenović signature.asc Description: PGP signature

Re: Stand-alone Info and info-mode inconsistency: end of buffer behavior

2023-01-11 Thread Arsen Arsenović
x27;t really make any less than anecdotal statements about usability without getting a bunch of people to try something, so I think we should just sync up the two viewers again and consider this resolved. Thanks, have a wonderful evening. -- Arsen Arsenović signature.asc Description: PGP signature

Re: Crash in info 7.0.1

2023-01-16 Thread Arsen Arsenović
as a fix for info since Texinfo 7.0.1 so this may have resolved > this problem. Hopefully we can make a Texinfo 7.0.2 release soon that > will include this fix. -- Arsen Arsenović signature.asc Description: PGP signature

[PATCH] ParserNonXS: Fix minor Perl error

2023-01-25 Thread Arsen Arsenović
+++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8153b2e3b8..feb1f7c11c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-01-25 Arsen Arsenović + + ParserNonXS: Fix minor Perl error + + * tp/Texinfo/ParserNonXS.pm

Re: [PATCH v2] HTML: Enable generating copiable anchors on heading commands

2023-01-26 Thread Arsen Arsenović
ogies. Still learning about the testsuite ;) > Lastly, for consistency, I think that it is better to use only " for the > attributes, I can do it too. -- Arsen Arsenović signature.asc Description: PGP signature

Re: [PATCH v2] HTML: Enable generating copiable anchors on heading commands

2023-01-26 Thread Arsen Arsenović
chors... > I'll change it anyway. Sure, thanks :) Have a great evening. -- Arsen Arsenović signature.asc Description: PGP signature

Re: @defblock and @defline in texi2any

2023-02-23 Thread Arsen Arsenović
you intend this to be done via macros? I also saw that you were concerned about the OOP documentation facilities, but this approach appears to be general enough to handle those too. Am I missing something? > Then we could add tests involving the new commands. It may not > be necessary

[PATCH] install-info: Fix dir file mode being restricted

2023-02-24 Thread Arsen Arsenović
x86_64-pc-linux-gnu. ChangeLog | 13 + install-info/install-info.c | 10 ++ 2 files changed, 23 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4ae80e4dc7..de0d88666a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2023-02-24 Arsen Arsenović

Re: [PATCH] install-info: Fix dir file mode being restricted

2023-02-24 Thread Arsen Arsenović
is problem out in a stable release? If so, I'll need to backport it in Gentoo, too, but I haven't seen any reports of similar issues. -- Arsen Arsenović signature.asc Description: PGP signature

Re: [PATCH] install-info: Fix dir file mode being restricted

2023-02-24 Thread Arsen Arsenović
Gavin Smith writes: > Ah, no, it isn't in any release. Sorry for the confusion. Sure, thanks. Found it just in time then :) -- Arsen Arsenović signature.asc Description: PGP signature

Re: [PATCH] install-info: Fix dir file mode being restricted

2023-02-26 Thread Arsen Arsenović
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2023-02-26 Arsen Arsenović + + install-info: Relax tempfile mode earlier + * install-info/install-info.c (output_dirfile): Reorder the + tempfile mode relaxation block directly under mkstemp, in order to + not accidentally operate on a closed fi

Re: @defblock and @defline in texi2any

2023-03-01 Thread Arsen Arsenović
Gavin Smith writes: > On Thu, Feb 23, 2023 at 11:50:35AM +0100, Arsen Arsenović wrote: >> I also saw that you were concerned about the OOP documentation >> facilities, but this approach appears to be general enough to handle >> those too. Am I missing something? > &

Re: @defblock and @defline in texi2any

2023-03-01 Thread Arsen Arsenović
Gavin Smith writes: > On Thu, Feb 23, 2023 at 11:50:35AM +0100, Arsen Arsenović wrote: >> I like this. I think that tables are quite ergonomic, and so having >> @defblocks look like them should be okay. >> >> > The next step is to get copiable anchors to work

Re: @defblock and @defline in texi2any

2023-03-01 Thread Arsen Arsenović
Patrice Dumas writes: > On Mon, Feb 27, 2023 at 10:14:17PM +, Gavin Smith wrote: >> On Thu, Feb 23, 2023 at 11:50:35AM +0100, Arsen Arsenović wrote: >> > I like this. I think that tables are quite ergonomic, and so having >> > @defblocks look like them should be

Re: @defblock and @defline in texi2any

2023-03-01 Thread Arsen Arsenović
Patrice Dumas writes: > On Wed, Mar 01, 2023 at 10:24:34PM +0100, Arsen Arsenović wrote: >> d6678a7d0fe739aa010717b4bd0515e6256510f0 seems to be unable to read >> stdin properly - investigating later, posting so that I do not forget. >> try pasting the above into makeinf

Re: @defblock and @defline in texi2any

2023-03-04 Thread Arsen Arsenović
Patrice Dumas writes: > On Thu, Mar 02, 2023 at 12:00:39AM +0100, Arsen Arsenović wrote: >> >> Here's a further simplification (I haven't undertaken an investigation >> yet): >> >> ~/gnu/texinfo$ ./pre-inst-env texi2any > You found a bug:

[PATCH] texi2any: Don't switch to subdir mode if '-' exists

2023-03-08 Thread Arsen Arsenović
ngeLog | 8 tp/texi2any.pl | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 04d3020001..b3f69b6eec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2023-03-08 Arsen Arsenović + + texi2any: Don't switch to subdir mod

Re: [PATCH] texi2any: Don't switch to subdir mode if '-' exists

2023-03-08 Thread Arsen Arsenović
Patrice Dumas writes: > On Wed, Mar 08, 2023 at 11:01:33AM +0100, Arsen Arsenović wrote: >> * tp/texi2any.pl (output|out|o=s): If the filename argument is >> specifically '-', ignore a possible ./- subdirectory. This >> prevents programs that generate info in a

Should @shortcontents come before @contents with CONTENTS_OUTPUT_LOCATION=after_top?

2023-03-11 Thread Arsen Arsenović
contents. Do you think this rationale makes sense, and should we output @shortcontents first with after_top? Alternatively, maybe we could record the relative location of the contents commands in the document and base ordering on that? What do you think? Thanks in advance. -- Arsen Arsenović

Re: formatting of @sc in HTML

2023-03-11 Thread Arsen Arsenović
ere is no CSS, for instance in text-based > browser, the result may not be so good. IMO, it's okay to use that CSS property if it's the best way to achieve the result. We shouldn't optimize for w3m, eww, etc. What are the pros and cons of either approaches? > Ideas, opinions

Re: formatting of @sc in HTML

2023-03-12 Thread Arsen Arsenović
s that do not use it. Ah, this and Eli's note (about @sc expecting lowercase) pose a strong argument for keeping uppercasing logic inside the HTML generator then. -- Arsen Arsenović signature.asc Description: PGP signature

Re: Should @shortcontents come before @contents with CONTENTS_OUTPUT_LOCATION=after_top?

2023-03-12 Thread Arsen Arsenović
Patrice Dumas writes: > On Sun, Mar 12, 2023 at 11:43:27AM +, Gavin Smith wrote: >> On Sun, Mar 12, 2023 at 11:49:38AM +0100, Patrice Dumas wrote: >> > On Sat, Mar 11, 2023 at 12:01:18PM +0100, Arsen Arsenović wrote: >> > > Hi, >> > > >> &

info-stnd and (info) discrepancy: Searching the Autoconf v2.71 manual for AC_CHECK_ALIGNOF in the index fails

2023-03-20 Thread Arsen Arsenović
5d8633b9716c44648ab570fe4e747f1a1ee7c3, Emacs 4234e204ec0e73211e0041d78460b2c51913a517, but the info file was generated with 6.7. It seems that generating the latest development autoconf info file with the Texinfo version above fixes the issue, too, but the discrepancy is still interesting. That fixing the viewer c

Re: info-stnd and (info) discrepancy: Searching the Autoconf v2.71 manual for AC_CHECK_ALIGNOF in the index fails

2023-03-20 Thread Arsen Arsenović
Gavin Smith writes: > On Mon, Mar 20, 2023 at 12:07:03PM +0100, Arsen Arsenović wrote: >> Hi, >> >> I opened the standalone info viewer and pointed it at `autoconf-2.71' >> (which is where Gentoo installs the Autoconf v2.71 manual). >> >> Typing &#

Re: info-stnd and (info) discrepancy: Searching the Autoconf v2.71 manual for AC_CHECK_ALIGNOF in the index fails

2023-03-20 Thread Arsen Arsenović
Gavin Smith writes: > On Mon, Mar 20, 2023 at 08:08:53PM +0100, Arsen Arsenović wrote: >> Hm, I think you're spot on.. the file is mangled by a build script. I >> missed it since it was behind a layer of abstraction[1]. >> >> Sorry for the noise! >> &g

Re: “bug: Nothing closed while a line context remains” with Texinfo 7.0.3

2023-04-19 Thread Arsen Arsenović
it seems like the parser is trying to parse @end as part of @item and getting confused (whereas the unaffected version parses @item first, with no argument, and then @end). I'll try to bisect and come up with a fix. Everyone should feel free to beat me to it, though. Have a lovely day. -- Arsen Arsenović signature.asc Description: PGP signature

Re: “bug: Nothing closed while a line context remains” with Texinfo 7.0.3

2023-04-19 Thread Arsen Arsenović
[CC += Patrice as the author of the original patch] Arsen Arsenović writes: > To my untrained-to-the-parser eyes, it seems like the parser is trying > to parse @end as part of @item and getting confused (whereas the > unaffected version parses @item first, with no argument, and

Re: “bug: Nothing closed while a line context remains” with Texinfo 7.0.3

2023-04-20 Thread Arsen Arsenović
I doubt). > > Distributors (like Debian) would always be free to include the patch > if they wanted to. I agree. I think a simpler patch could solve this issue better. -- Arsen Arsenović signature.asc Description: PGP signature

Re: makeinfo no longer validates the menu structure

2023-06-22 Thread Arsen Arsenović
ll. Regarding the name, it cannot be --validate, as it is > not the reverse of --no-validate. In a world where menus are implicit (which sounds like a nice world to me) unless specified otherwise, I'd agree; but we're not there yet. Have a lovely evening :-) -- Arsen Arsenović signature.asc Description: PGP signature

Re: implementation language [was: library for unicode collation in C for texi2any?]

2023-10-12 Thread Arsen Arsenović
p?view=msvc-170 > > It is much easier to make a large C++ program well-structured and > maintainable: > Classes help immeasurably, as do namespaces. +1. I agree wholeheartedly with this. I do echo that C++ is big and complicated, and so, it takes some practice, but I think the payo

Re: XDG directory compliance?

2023-10-29 Thread Arsen Arsenović
infokey file in XDG_CONFIG_DIRS for > completeness, although it didn't seem as important as XDG_CONFIG_HOME. That's good. That way, the sysadmins can set up defaults. Thanks for doing this. Have a lovely night. -- Arsen Arsenović signature.asc Description: PGP signature

ffmpeg documentation no longer builds after Texinfo 7.1 (due to --init-file=)

2023-11-04 Thread Arsen Arsenović
27;') { $prepended_save = $prepended_text; $prepended_text = ''.$prepended_text.''; } } } else { $prepended_text = ''; } if ($caption and $caption_text eq '') { $caption_text = $self->convert_tree_new_formatting_context( $caption->{'args'}->[0], 'float caption'); } if ($prepended_text.$caption_text ne '') { $prepended_text = $self->_attribute_class('div','float-caption'). '>' . $prepended_text; $caption_text .= ''; } my $html_class = ''; if ($prepended_save =~ /NOTE/) { $html_class = 'info'; $prepended_text = ''; $caption_text = ''; } elsif ($prepended_save =~ /IMPORTANT/) { $html_class = 'warning'; $prepended_text = ''; $caption_text = ''; } return $self->_attribute_class('div', $html_class). '>' . "\n" . $prepended_text . $caption_text . $content . ''; } texinfo_register_command_formatting('float', \&ffmpeg_float); 1; Are these API changes intended? How could this file be fixed? Adding a 'texinfo_' prefix to the set_from_init_file invocations didn't seem to be sufficient as a fix, and I don't know much about the init files, so I didn't know where to look further. Any help and/or pointers are appreciated. Downstream bug report: https://bugs.gentoo.org/916268 TIA, have a lovely day :-) -- Arsen Arsenović signature.asc Description: PGP signature

Re: ffmpeg documentation no longer builds after Texinfo 7.1 (due to --init-file=)

2023-11-05 Thread Arsen Arsenović
Patrice Dumas writes: > On Sat, Nov 04, 2023 at 02:39:32PM +0100, Arsen Arsenović wrote: >> Afternoon, >> >> Following changes in Texinfo 7.1 (uncertain which commit - haven't >> bisected) FFmpeg documentation no longer builds. This is due to an init >>

Re: ffmpeg documentation no longer builds after Texinfo 7.1 (due to --init-file=)

2023-11-06 Thread Arsen Arsenović
Hi Patrice, Patrice Dumas writes: > On Sun, Nov 05, 2023 at 12:13:00PM +0100, Arsen Arsenović wrote: >> >> Seems that relatively many things changed between 6.x and 7.0. > > 7.0 was the first release with an official HTML customization API. The > API is not stable

Re: INFO command erro

2023-12-23 Thread Arsen Arsenović
it. > error image in attachment > [4. image/jpeg; 352d54f0-e603-42a2-97c4-617f897fbe85.jpeg]... I suspect that Gavin is right. Should that be the case, it'd be best to speak to the Ubuntu developers. Have a lovely day! -- Arsen Arsenović signature.asc Description: PGP signature

Re: Segmentation fault with GNU texinfo 7.1

2024-02-09 Thread Arsen Arsenović
Emacs bug tracker: please try M-x report-emacs-bug if this issue is about the Emacs info. -- Arsen Arsenović signature.asc Description: PGP signature

Re: fun with c23

2024-08-09 Thread Arsen Arsenović
+typedef void VFunction (...); > +#endif > + > typedef char *CFunction (); > > #include "string.h" > > or do so just with the info.h one and just make the changes to the > extern definition in system.h (that works for me (TM)) > > Either way that gets it compiling on my end (with CFLAGS+=" > -std=gnu2x" and gnu23). > > Jeff Cliff Thanks for the report. -- Arsen Arsenović signature.asc Description: PGP signature

Re: -Wlto-type-mismatch warning in error()

2022-12-08 Thread Arsen Arsenović via Bug reports for the GNU Texinfo documentation system
2:13 +0100 Subject: [PATCH] install-info: Make local symbols static * install-info/install-info.c: Make local symbols static. --- ChangeLog | 5 +++ install-info/install-info.c | 62 ++--- 2 files changed, 36 insertions(+), 31 deletions(-) diff