summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-05-26Adapt group bar to be updated on group number or name change.cr/implement_gnumber-with_winliststylecos
2013-05-26Remove redundant check for NULL.cos
Since add_command() for cmd_gnumber is forcing one (or two) numerical argument, command() will never allow calling the cmd_gnumber() with arg[0] set to NULL.
2013-05-26Added user documentation for gnumber command.cos
2013-05-26Add initial cmd_gnumber implementation.cos
2013-05-26Make group_add_new_group() sort groups numerically.cos
2013-05-26draw_string: only call rp_text_width when neededJérémie Courrèges-Anglas
2013-05-26draw_string: more cleanup and clarificationsJérémie Courrèges-Anglas
rename "update" to "print_reason" and use #defined flags instead of magic numbers
2013-05-26draw_string: document variablesJérémie Courrèges-Anglas
2013-05-26feed draw_partial_string with a string and a lengthJérémie Courrèges-Anglas
makes it easier to call along with rp_text_width
2013-05-26draw_string: indentationJérémie Courrèges-Anglas
2013-05-26fix draw_string when winliststyle is "row"Jérémie Courrèges-Anglas
bug introduced in 14beabe
2013-05-26sync comment with realityJérémie Courrèges-Anglas
2013-05-15Update my contact info.cr/remove_cos_obsolete_emailcos
The email address listed for me have not existed for a few years.
2013-04-27avoid get_wmname spammingJérémie Courrèges-Anglas
This should be a PRINT_DEBUG, not a PRINT_ERROR.
2013-04-15Support UTF-8 in the input barJérémie Courrèges-Anglas
* introduce RP_IS_UTF8_{CHAR,CONT,START} macros. Those yield non-zero only if the locale is UTF-8. * use those macros in editor.c to properly handle UTF-8 multibyte characters. * use them also in input.c:update_input_window, to draw the cursor Reviewing and comments are welcome. Patches for generic support of multibyte encodings are welcome too. UTF-8 was chosen because of its processing simplicity and its wide use, not because of any political opinion or religious belief. ;)
2013-04-13read_rc_file: use getline(3) instead of emulating itJérémie Courrèges-Anglas
2013-04-13Make our fallback getline implementation re-usableJérémie Courrèges-Anglas
2013-04-13get_more_input: use a proper while loop and a switch statementJérémie Courrèges-Anglas
2013-04-13get_more_input: remove useless variableJérémie Courrèges-Anglas
2013-04-10destroy_window: frame could be NULLJérémie Courrèges-Anglas
* don't dereference it if NULL, as in unmap_notify
2013-04-10free_bar: make this function reusableJérémie Courrèges-Anglas
* set last_msg to NULL after freeing it * no need to test for last_msg being NULL before freeing it (likewise in update_last_message)
2013-04-10main: in case XOpenDisplay fails, use exit not returnJérémie Courrèges-Anglas
* this is consistent with surrounding code, and helps code analyzers not to barf about possible memory leaks
2013-04-10strtok_ws: account for erroneous usageJérémie Courrèges-Anglas
* if s and last are both NULL then we'll get a fatal error; instead of waiting for the segfault, display an error message and call abort()
2013-04-10main: free display and alt_rcfileJérémie Courrèges-Anglas
* otherwise specifying -d or -f more than once would lead to a memory leak
2013-04-10history_add: make 2nd parameter constJérémie Courrèges-Anglas
2013-04-10Get rid of several unused variablesJérémie Courrèges-Anglas
* cmd_definekey: actually use cmd * cmd_meta: remove ev1 * cmd_resize: remove nbytes * cmd_ratrelwarp: remove s * draw_string: remove lgv, lgc, mask; lgc wasn't XFreeGC'ed * get_more_input: remove nbytes * cleanup_frame: remove last_win * get_window_list: remove other_window Patch from Bernhard R. Link
2013-04-10Refactor cmd_promptJérémie Courrèges-Anglas
* use a local variable instead of using ARG_STRING(0) ten times * minimize scope of local variables * use a struct sbuf instead of playing with xmalloc and strncpy * correct indentation
2013-04-10Refactor cmd_timeJérémie Courrèges-Anglas
* instead of playing with xmalloc, strlen and strncpy, use xstrdup to do the copying and strcspn to delete the newline
2013-04-10cmd_prompt: handle NULL outputJérémie Courrèges-Anglas
* if the user aborted we receive a NULL pointer; don't attempt to dereference it, and treat this case as a failure. Matches the behaviour of cmd_colon and cmd_select
2013-04-07oops, actually bump to 1.4.7-betaJérémie Courrèges-Anglas
2013-04-07Make git ignore .xz archives and HTML documentationJérémie Courrèges-Anglas
2013-04-07Bump to 1.4.7-betaJérémie Courrèges-Anglas
2013-04-07Here comes ratpoison 1.4.6v1.4.6Jérémie Courrèges-Anglas
Thanks a lot to Shawn Betts, Bernhard R. Link and all of you folks who provided advices, bugreports and feedback. Long live ratpoison! Death to the rodent!
2013-04-07More ChangeLog and NEWS entries for upcoming releaseJérémie Courrèges-Anglas
2013-04-07In strtok_ws() use "last", not "pointer" for the static variableJérémie Courrèges-Anglas
* since X11/Xdefs.h may define it too. Found by -Wshadow. Bonus: "last" carries more meaning.
2013-04-07Don't use a flexible array member in struct history_itemJérémie Courrèges-Anglas
* They are a c99 feature, which makes it impossible to build ratpoison on some platforms. GCC supports zero-sized arrays, more conservative approaches say to use foo[1], but as brlink says a compiler with aggressive optimization turned on might play nasty tricks. Just use a traditional struct.
2013-04-01bump to 1.4.6-rc1Jérémie Courrèges-Anglas
* add NEWS and ChangeLog bits
2013-04-01a .dir-locals.el file for contributors using EmacsJérémie Courrèges-Anglas
2013-02-22receive_command_result() fixupJérémie Courrèges-Anglas
* forgot a break statement when moving things around * braino in comment: '1' is RET_SUCCESS, '0' is RET_FAILURE
2013-02-22fixup return values of several commandsJérémie Courrèges-Anglas
* in cmd_select(), consistently set the return value for all cases we deal with * in cmd_unmanage(), don't attempt to use a NULL pointer if the unmanaged windows list is empty; just report success * in cmd_kill, only report failure if XKillClient() actually failed * in command(), remove a useless test: cmd can't be NULL * in cmd_gravity, don't call current_window() twice
2013-02-22make ratpoison -c provide a useful exit statusJérémie Courrèges-Anglas
* properly define the way the wm may give feedback to ratpoison -c; see communications.c:receive_command_result() * follow this protocol in events.c:receive_command() * modify receive_command_result() to return an int (which is the mirror of the struct cmdret "success" member used on the wm side) * pass that error status back to main.c; exit with an error status if any of the commands we sent failed
2013-02-18silence minor compilation warning in src/manage.cJérémie Courrèges-Anglas
2013-02-18more correct cmd_help()Jérémie Courrèges-Anglas
* only print the "Command key: ..." bits if we're dealing with the root kmap * don't read (and print) uninitialized data (foomap->actions[foomap->actions_last] shouldn't be accessed) It seems like keymap actions and other things like aliases use arrays because they were implemented before linkedlist.[ch] were introduced. Perhaps should we just switch them to more fool-proof linked lists?
2013-02-13move xa_string initialisation before first useBernhard R. Link
otherwise ratpoison -c no longer works
2013-02-12readd AM_MAINTAINER_MODE, but enable maintainer mode by defaultBernhard R. Link
Using AM_MAINTAINER_MODE([enable]) means you get the maintainer-specific parts enabled by default like without AM_MAINTAINER_MODE, while people still can do --disable-maintainer-mode to avoid any pitfalls.
2013-02-11get rid of AM_MAINTAINER_MODEJérémie Courrèges-Anglas
* this one has bitten me too many times as an end user ; here it annoys me as a maintainer - version.texi not being installed. bye bye. See info "(automake) maintainer-mode".
2013-02-11update Shawn's email address in documentationJérémie Courrèges-Anglas
* while here, s/EMACS/Emacs/ in the Info manual
2013-02-10texinfo manual updateJérémie Courrèges-Anglas
* fdl.texi: update to a newer version (not to a newer licence version!) * ratpoison.texi: update to build printed manuals, get rid of annoying @node references, and move GFDL to the last section. use automake support for version.texi, so that manuals don't ship with an outdated version * .gitignore: match update
2013-02-08add myself (as current maintainer) to AUTHORSJérémie Courrèges-Anglas
2013-02-08update FAQ urlJérémie Courrèges-Anglas